Commit Graph

63 Commits

Author SHA1 Message Date
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
ef1e4124de
Allow release and Docker multiarch building
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-22 16:29:58 +02:00
Thomas Citharel
9621caf661
Bump required version to Elixir 1.12 and remove legacy tests
Drops support for OTP < 22

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-11 18:46:16 +02:00
Thomas Citharel
e606090f17
Fix legacy tests missing the python deps
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-11 18:28:42 +02:00
Thomas Citharel
0c667b13ae
Export participants to different formats
* CSV
* PDF (requires Python dependency `weasyprint`)
* ODS (requires Python dependency `pyexcel_ods3`)

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-10-05 10:52:55 +02: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
cd70fd692a
Bump CI to node14
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-04-30 09:25:13 +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
c6efc8dacc
Refresh CI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-02-10 14:39:23 +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
Thomas Citharel
02becb14bd
Add exiftool to Docker image for CI
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-26 08:21:29 +01:00
Thomas Citharel
d965997c78
Move docs to separate repo
See https://framagit.org/framasoft/joinmobilizon/documentation

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-22 12:12:17 +02:00
Thomas Citharel
f3566430a3
Introduce multi-lingual docs
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-10-21 09:04:42 +02:00
Thomas Citharel
040aa56763
Update deps
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-08-10 16:09:03 +02:00
Thomas Citharel
681737bf36
Fix mkdocs build
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-03 16:01:33 +02:00
Thomas Citharel
4144e9ffd0
Introduce group basic federation, event new page and notifications
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2020-06-03 16:01:26 +02:00
Thomas Citharel
c16ab0c9a0
Refresh docker image for final mkdocs-git-revision-date-localized-plugin issue
https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/issues/2#issuecomment-566199712

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-12-17 09:21:03 +01:00
Thomas Citharel
0750f06484
Remove mkdocs-git-revision-date-localized-plugin hack in CI
And rebuild docker image with new version

See https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/issues/3

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-12-16 16:49:39 +01:00
Thomas Citharel
de261cf334
Add a default limit participations of 10, fix dockerfile and lint some things
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-12-15 22:42:38 +01:00