Skip to content

Commit

Permalink
Merge pull request #16 from etalab/upgrade-elixir-erlang
Browse files Browse the repository at this point in the history
Mise à jour Elixir, Erlang et NodeJS
  • Loading branch information
thbar committed Dec 2, 2020
2 parents 71892a0 + d001bce commit e324d47
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()'"
```
3 changes: 2 additions & 1 deletion transport-site/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit e324d47

Please sign in to comment.