From 90d5b677d305079b8099557faf21aedc4ee9bd3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibaut=20Barr=C3=A8re?= Date: Tue, 1 Dec 2020 18:15:14 +0100 Subject: [PATCH 1/3] Document how to verify the running version of Node/Elixir/Erlang --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 55ee6bb..b261f98 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,15 @@ The _Transport Site_ project is tested with CircleCI in a Docker container that When updating that Dockerfile, push a git tag in the format `a.b.c` and the image will be built by Dockerhub : https://hub.docker.com/r/betagouv/transport/ Then update https://github.com/etalab/transport-site/blob/master/.circleci/config.yml to match the new version. + +## Useful tricks when upgrading + +Before creating a tag, the following commands can be used to verify the versions: + +``` +cd transport-site +docker build . -t test:latest +docker run -it --rm test:latest /bin/bash -c 'node --version' +docker run -it --rm test:latest /bin/bash -c 'elixir --version' +docker run -it --rm test:latest /bin/bash -c "erl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'init:stop()' +``` From c44d16e40f1acb803fd8b1f6d831ab26c436e379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibaut=20Barr=C3=A8re?= Date: Tue, 1 Dec 2020 18:28:06 +0100 Subject: [PATCH 2/3] Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b261f98..3bca0e3 100644 --- a/README.md +++ b/README.md @@ -32,5 +32,5 @@ cd transport-site docker build . -t test:latest docker run -it --rm test:latest /bin/bash -c 'node --version' docker run -it --rm test:latest /bin/bash -c 'elixir --version' -docker run -it --rm test:latest /bin/bash -c "erl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'init:stop()' +docker run -it --rm test:latest /bin/bash -c "erl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'init:stop()'" ``` From d001bceccc77a53f8487dc0e56c6c34cf7244e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibaut=20Barr=C3=A8re?= Date: Tue, 1 Dec 2020 18:28:33 +0100 Subject: [PATCH 3/3] Update Elixir to 1.10.4 The target is to run https://github.com/etalab/transport-site/pull/1363 on this. --- transport-site/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transport-site/Dockerfile b/transport-site/Dockerfile index 6319785..5a94c37 100644 --- a/transport-site/Dockerfile +++ b/transport-site/Dockerfile @@ -1,4 +1,5 @@ -FROM elixir:1.8-alpine +# see https://hub.docker.com/_/elixir +FROM elixir:1.10.4-alpine RUN apk add nodejs-npm curl yarn bash build-base wget libtool