Commit graph

47 commits

Author SHA1 Message Date
Thomas Citharel a731a96b58
Remove HEX_MIRROR uses
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-18 15:01:32 +02:00
Thomas Citharel 5bb1247f37
Put env directly when building docker images
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-07 14:46:34 +02:00
Thomas Citharel d01bbcad98
Use JSDeliver mirror when building Docker images as well
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-07 13:59:15 +02:00
Thomas Citharel 9b7cd5831a
Add g++ to the Docker image
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-03-31 16:08:53 +02:00
setop e401050ca6 add requirements for export 2022-01-24 12:01:47 +00:00
Thomas Citharel bd6f8206a7
Use Elixir 1.13 in Docker builds
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-12-15 14:55:47 +01:00
Thomas Citharel f437eb842c
Download tz_world data for Docker image directly
Closes #960

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-29 10:39:21 +01:00
Thomas Citharel 541d2f49c8
Add tzworld to the Docker image
Closes #947

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-26 09:45:55 +01:00
Thomas Citharel 89bbafb44c
Don't digest release files
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-10 20:44:50 +01:00
Thomas Citharel 6d9fe639d6
Add option to yarn in CI to avoid network timeouts
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-09 10:39:04 +01:00
Thomas Citharel 7e15b5fb7a
Set tzworld default dir in config
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-09 09:15:32 +01:00
Thomas Citharel e7662d3c77
Add necessary dependencies for exports into Docker image
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-09 09:15:31 +01:00
Thomas Citharel 3e74982ec4
Don't install Cypress in production Docker image building
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-11-02 19:50:25 +01:00
Thomas Citharel 3ca4c178bc
Add ca-certificates to the Docker production image
Closes #762

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-08-05 11:04:13 +02:00
Thomas Citharel c5005ccdae Revert "Merge branch 'setop-patch-dockerbuild' into 'master'"
This reverts merge request !978
2021-07-22 15:57:31 +02:00
setop c408c04bb0 make build faster using buildlkit
- use annotation for buildkit
- cache yarn packages
- compile before copying assets to allow parallel build of phases

to use it, run
`DOCKER_BUILDKIT=1 docker image build -f docker/production/Dockerfile .`
2021-07-04 21:19:16 +00:00
Shlee a401d90f98 Added imagemagick to dockerfile 2021-06-30 09:45:58 +00:00
Thomas Citharel 78ec74d253
Add libgcc libstdc++ libraries to the Docker image
See https://elixirforum.com/t/docker-run-error-loading-shared-library-libstdc-so-6-and-libgcc-s-so-1/40496

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-29 14:22:42 +02:00
Thomas Citharel 2c12138f00
Fix Docker build
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-17 10:40:21 +02:00
Thomas Citharel ef358bef6e
Fix docker build by doing the asset building in a subfolder
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-16 17:08:49 +02:00
Thomas Citharel bda7401943
Add a legacy test config
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-07 17:21:41 +02:00
Thomas Citharel 9b9b274079
Rename python to python3 in alpine Docker build dependency
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-05-19 14:39:19 +02:00
Thomas Citharel e1cbfa98af
Upgrade dockerfiles to use node 16 and refresh CI image
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-05-19 11:35:19 +02:00
Thomas Citharel 18279f964b
Fix building Docker images on master
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-04-23 19:12:52 +02:00
Thomas Citharel c023ba63fe
Add org.opencontainers.image.source annotation to the Docker image
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-04-23 19:12:42 +02:00
Thomas Citharel bdbc473715
Add support/ in Docker image
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-04-22 17:28:03 +02:00
Thomas Citharel 730e2748d5
Fix Docker releases not starting anymore
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-03-30 14:36:29 +02:00
Thomas Citharel 23a94a1124
Fix docker build (again)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-03-15 14:57:08 +01:00
Thomas Citharel 4d47b73de2
Fix docker build
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-03-15 12:52:38 +01:00
Thomas Citharel 239457a219
Releases fixes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-03-15 10:34:03 +01:00
Thomas Citharel 496debd6f3
Change everything for releases
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-02-10 14:39:09 +01:00
Thomas Citharel 4d87541d96
Stick to stable version of the Docker base images
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-02-05 15:19:17 +01:00
Thomas Parisot 27bd5e8e6f fix: adjust to System.get_env signature (get_env(String.t(), String.t() | nil)) 2021-01-19 10:19:22 +01:00
Thomas Parisot f2c2a64975 Configure Instance PORT via an environment variable. 2021-01-16 18:42:59 +01:00
Thomas Citharel 5d30ba9380
Fix Docker build
Add webp support to the Docker build and remove scripty

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-12-13 14:38:04 +01:00
Ivan Vandot 13fb242c82 set permissions for /app/uploads for volume mount 2020-11-16 23:28:29 +01:00
Thomas Citharel 030f548f16
Integrate extensions creation in entry point
Requires postgresql-client to be added to the image

Closes #503

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-11-14 20:47:08 +01:00
Thomas Citharel 74fa9dca8c
Build docker from CI and move docker-compose config in another repo
https://framagit.org/framasoft/joinmobilizon/docker

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-11-09 10:04:55 +01:00
Thomas Citharel 7c7df4eaed
Remove README.md (see Documentation) and move to framasoft/mobilizon
image

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-31 12:12:43 +01:00
prichier 320c17a29d Fix overlay & enoent error on image uploads 2020-10-31 02:42:06 +01:00
Thomas Citharel 005470ba5b Introduce the mobilizon_ctl wrapper to easily call tasks inside releases
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-31 02:42:06 +01:00
Thomas Citharel af6ed8a3c2 Make sure only "true" value is accepted to enable registrations
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-31 02:42:06 +01:00
prichier f3cfc2e2ef Fix MOBILIZON_INSTANCE_HOST in env.template 2020-10-31 02:42:06 +01:00
prichier fccdadb95a Fix MR649 threads about env.template, pg port 2020-10-31 02:42:06 +01:00
prichier 751b72a434 Fix Mix.env use in prod app & MR threads 2020-10-31 02:42:06 +01:00
prichier 1acff2dd8a Mutli-stage build for production 2020-10-31 02:42:06 +01:00
prichier e945f48665 Add dockerfile and compose for production 2020-10-31 02:42:06 +01:00