Skip to content

Commit

Permalink
Mises à jour Elixir (1.17), OTP (27), NodeJS (#59)
Browse files Browse the repository at this point in the history
* Bump Elixir to 1.17.2 and OTP to 27.0.1

* Fix warning

* Fix deprecation warning

* Upgrade NVM to latest

* Bump Node to current LTS
  • Loading branch information
thbar authored Sep 17, 2024
1 parent 102f24c commit 837a440
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
TEST_TAG: ${{ github.repository }}:test
TEST_EXPECTED_NODE_OUTPUT: "v20.11.1"
TEST_EXPECTED_ELIXIR_OUTPUT: "Elixir 1.16.2 (compiled with Erlang/OTP 25)"
TEST_EXPECTED_ERLANG_OUTPUT: "25.3.2.10"
TEST_EXPECTED_NODE_OUTPUT: "v20.17.0"
TEST_EXPECTED_ELIXIR_OUTPUT: "Elixir 1.17.2 (compiled with Erlang/OTP 27)"
TEST_EXPECTED_ERLANG_OUTPUT: "27.0.1"
jobs:
build-and-push-image:
runs-on: ubuntu-latest
Expand Down
14 changes: 7 additions & 7 deletions transport-site/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# We are interested in the binaries compiled on that container:
FROM ghcr.io/etalab/transport-tools:v1.0.7 as transport-tools
FROM ghcr.io/etalab/transport-tools:v1.0.7 AS transport-tools

# We leverage the base images published by hexpm at:
#
Expand All @@ -21,7 +21,7 @@ FROM ghcr.io/etalab/transport-tools:v1.0.7 as transport-tools
# So again, to upgrade this, check out :
#
# https://hub.docker.com/r/hexpm/elixir
FROM hexpm/elixir:1.16.2-erlang-25.3.2.10-ubuntu-focal-20240216
FROM hexpm/elixir:1.17.2-erlang-27.0.1-ubuntu-focal-20240530

ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris
Expand Down Expand Up @@ -72,9 +72,9 @@ RUN uname --all
RUN cat /etc/os-release
RUN cat /etc/lsb-release

ENV NVM_VERSION v0.39.7
ENV NODE_VERSION 20.11.1
ENV NVM_DIR $HOME/.nvm
ENV NVM_VERSION=v0.40.1
ENV NODE_VERSION=20.17.0
ENV NVM_DIR=$HOME/.nvm

RUN mkdir $NVM_DIR

Expand All @@ -85,8 +85,8 @@ RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/${NVM_VERSION}/ins
RUN . $NVM_DIR/nvm.sh && nvm install $NODE_VERSION && nvm use --delete-prefix $NODE_VERSION

# add to path
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
ENV NODE_PATH=$NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH=$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH

RUN npm install -g yarn

Expand Down

0 comments on commit 837a440

Please sign in to comment.