Commit Graph

29 Commits

Author SHA1 Message Date
su-ex
fc931c82da * Security release with updated version of Olm to fix https://matrix.org/blog/2021/12/03/pre-disclosure-upcoming-security-release-of-libolm-and-matrix-js-sdk
* Fix a crash on logout
 -----BEGIN PGP SIGNATURE-----
 
 iQJFBAABCAAvFiEE6Vt2megLaKnq2aGaK6qbhVK9kEcFAmG3aVQRHHJlbGVhc2Vz
 QHJpb3QuaW0ACgkQK6qbhVK9kEeWtw/+LZj8MwHznasjbMIP/xgt+CXYxZFepaiu
 r51yWSLFit6r3s6RKrN0TfwUUYR91w7Q3ZugefPIrSGcKvOVgUUVpfoEjbplfz1/
 2BuAidNiQazecDFW6yFFyVs7dyhxbswakHLAV+To5GbgeDdS66ajikpKi6t47han
 kUvjAFOp1aR1fYsSWqi6vCNqC5eQqZCuQkiqu0gG9s53/lOuMPRJyq7a+WQZp9+Z
 DpAfw8hSCpLdOSaqJKjYT5Lu/UQXcPnKT9ZamDcmOODdCGKdYdy2JPdrrTpT18ss
 +YmhX0hX16K7zZ8tubIg57DGpfvlG+zGPk+3WOrspv8UsD4beLDQ88GP4K/gK3/0
 /WrRTtpVUpZUZNyG44bmQbcMvWuB8S8jaE/ofbD+LDb6AWgDx48djk+WdlYBlEvG
 ImZVoSgJRHs7TCm2JPrzk0QjCtPINlO7wzdTt3Of5OQdWSo0P4PN5EH6OFmNRjS1
 aTU5CK4mAitWuH1SY+Vhzhj85y8/jdWseJw6bBhjLCyl++L4+KGc3ATGF5YP8z7V
 f4GU75ElWb1x3h0aNT5qaIGhgoIaZSIhSWli95D6sIofMXMe2pydBq3qD6YBcvEw
 0YzAeVaUUh8UryAB7y4XRqZYJh2QyqD3wHVlbcOUjtVSQ3HYgSNKjV634ZjgAQWx
 zy+yVPgVkB4=
 =ceq2
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iHUEABYIAB0WIQR6emmsWm8pV5k1AY7p6fZkQRCUPgUCYbdqngAKCRDp6fZkQRCU
 PkCDAQDbyk+Tx5VqPmgczSd0gt9s71+MJHAe9xIMx1c8ZbiJfgEA2AQrPTHOJccU
 XadauysgA9HLXaNcUuMrZyP/jtoH5wk=
 =6IqA
 -----END PGP SIGNATURE-----

Merge tag 'v1.9.7' into sc

* Security release with updated version of Olm to fix https://matrix.org/blog/2021/12/03/pre-disclosure-upcoming-security-release-of-libolm-and-matrix-js-sdk
* Fix a crash on logout
2021-12-13 16:45:27 +01:00
James Salter
159f1962a1
Fix Docker build versioning (#20077) (#20078)
* Centralise version scripts and fix Docker version
* Refactor generation of a git-hash-based version into get-version-from-git
* Refactor normalization of versions (stripping leading v) into normalize-version.sh
* Call get-version-from-git from ci_package.sh, call normalize-version from package.sh
* Refactor docker-write-version.sh into docker-package.sh, which both writes the
  version file and invokes yarn build passing VERSION
* Normalize the version received from the server
2021-12-07 15:35:23 +11:00
su-ex
a3259cc139
Merge remote-tracking branch 'upstream/master' into sc 2021-10-14 17:48:33 +02:00
James Salter
212138b017 Fix path 2021-09-28 13:24:44 +01:00
James Salter
a3c4fac375 Use custom nginx conf 2021-09-28 12:15:34 +01:00
su-ex
f008fecccf
Merge remote-tracking branch 'upstream/master' into sc 2021-07-20 19:09:51 +02:00
Michael Telatynski
12b93c1696
Revert "Don't run nginx as root in docker" 2021-07-14 09:40:46 +01:00
Michael Telatynski
503995270c
Merge pull request #17927 from JuniorJPDJ/patch-1 2021-07-14 09:08:09 +01:00
J. Ryan Stinnett
3c10bc54ba Remove canvas native dependencies from Dockerfile
As of https://github.com/vector-im/element-web/pull/17967, `canvas` is no longer
used, so we don't need install these native deps for building it on arm64.
2021-07-13 09:59:02 +01:00
JuniorJPDJ
09d8ac1622 Don't run nginx as root in docker
Signed-off-by: Jacek Pruciak <git@juniorjpdj.pl>
2021-07-10 06:12:59 +02:00
sploenix
6c6ee98eb9
Add docker workflow 2021-07-09 04:26:15 +02:00
Jason Robinson
26380719a1 Fix whitespace in Dockerfile
Upstreamed whitespace fix from a fork, to be aligned with the other indented line :)
2021-06-23 15:42:30 +03:00
Travis Ralston
dfa70b0637
Revert "Docker image: serve pre-compressed assets using gzip_static" 2021-03-31 17:59:39 -06:00
Martin Häger
b8b8a5ee85 Docker image: serve pre-compressed assets using gzip_static
Signed-off-by: Martin Häger <martin.haeger@gmail.com>
2021-03-16 22:41:43 +01:00
J. Ryan Stinnett
b2a93c3b64 Move to newer base image for Docker builds
This updates to Node 14 (current LTS) as well as moving from Debian Stretch to
Buster for the base OS. The Debian upgrade brings along a newer Python 3.8,
which is actively supported.
2021-01-25 12:58:39 +00:00
J. Ryan Stinnett
d64639c70a Rename Docker repo in docs
We now have a Docker repo named `element-web`, so this updates docs to match.

Fixes https://github.com/vector-im/element-web/issues/14930
2020-10-28 14:32:25 +00:00
Matt Cengia
86185e8186 Document packages for installing Canvas via Docker
Signed-off-by: Matt Cengia <mattcen@mattcen.com>
2020-07-31 22:27:16 +10:00
Matt Cengia
fb79373a6d Bump node build version
When trying to build the Docker image, I kept receiving an out-of-memory
error from Webpack. This issue is apparently explained at
https://github.com/webpack/webpack/issues/1914.
Several comments in the issue suggested using Node 12 or above. Doing so
resolved this issue for me.

Signed-off-by: Matt Cengia <mattcen@mattcen.com>
2020-07-16 16:21:00 +10:00
Matt Cengia
846cebe9ff Add build dependencies for 'canvas' to Dockerfile
When building the Docker image on amd64, canvas can be installed
from a pre-built binary. When building on an another architecture,
however, such as arm (e.g. on a Raspberry Pi), these binaries need to be
built locally, as per https://www.npmjs.com/package/canvas#compiling.
These added dependencies facilitate this. See also, issue #14400.

Signed-off-by: Matt Cengia <mattcen@mattcen.com>
2020-07-16 16:21:00 +10:00
J. Ryan Stinnett
b6963d0e5c Use bash in Docker scripts
Our Docker scripts use Bash-style conditionals that aren't supported by the
default Debian shell.
2020-01-22 17:45:22 +00:00
Travis Ralston
51a97571a0 Use debian to build the Docker image
Fixes not having certain OS capabilities to build some packages.
2020-01-22 09:08:05 -07:00
Will Hunt
625c21a8af
@babolivier showed me the way 2020-01-15 17:07:38 +00:00
Half-Shot
d515bad46f Support application/wasm in docker
Signed-off-by: Half-Shot <will@half-shot.uk>
2020-01-15 13:13:03 +00:00
Travis Ralston
726bf35b76 Fix Docker build for develop and publish a /version file
Fixes https://github.com/vector-im/riot-web/issues/10426
2019-12-02 16:58:50 -07:00
Slavi Pantaleev
4e63e3b0de Base Docker image on nginx:alpine, not the larger nginx:latest
`nginx:latest` is based on Debian Stretch and is listed as being 45MB,
while `nginx:alpine` is based on Alpine 3.9 and is just 7MB.

Basing the riot-web Docker image on `nginx:alpine` should
make it 38MB smaller compared to the current situation.

The nginx version seems to be "latest mainline" on both (currently 1.15.12),
judging by each Dockerfile:
- e5123eea0d/mainline/stretch/Dockerfile
- e5123eea0d/mainline/alpine/Dockerfile
2019-05-27 11:57:37 +03:00
Travis Ralston
3123b429f7 Increase timeout for yarn install in Docker builds
Otherwise we run into problems where Docker Hub's limited machines timeout trying to download our dependencies
2019-05-15 16:24:25 -06:00
Travis Ralston
1bb70930fa Support custom SDKs and use yarn 2019-04-10 15:47:02 -06:00
kaiyou
e47fae034a Add some layers to cache installed dependencies at build time 2018-12-06 10:00:20 +01:00
kaiyou
045b0b9889 Add a two-stages Dockerfile for building Riot 2018-12-04 16:51:37 +01:00