-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from etalab/upgrade-otp-23
Passage à OTP 23 et amélioration de l'image transport
- Loading branch information
Showing
3 changed files
with
35 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
task :get_image_version do | ||
version = IO.read("transport-site/Dockerfile")[/FROM (hexpm\/elixir.*)/, 1] | ||
version = version.gsub('hexpm/elixir:','elixir-') | ||
fail "Unexpected FROM format, script must be verified" unless version =~ /\Aelixir\-[^\-]+\-erlang\-[^\-]+\-alpine\-[^\-]+\z/ | ||
puts version | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
# see https://hub.docker.com/_/elixir | ||
FROM elixir:1.11.3-alpine | ||
# see https://hub.docker.com/r/hexpm/elixir | ||
FROM hexpm/elixir:1.10.4-erlang-23.2.7.2-alpine-3.13.3 | ||
|
||
RUN apk add nodejs-npm curl yarn bash build-base wget libtool git | ||
# TODO: iconv could probably be removed later | ||
# https://github.com/etalab/transport-site/issues/1591 | ||
RUN apk add curl bash build-base wget libtool git gnu-libiconv | ||
|
||
# To be removed in favor of multistage build with deterministic version numbers, | ||
# e.g. https://dev.to/quatermain/comment/njf7 | ||
RUN apk add nodejs-npm yarn | ||
|
||
# Install app dependencies | ||
RUN mix local.hex --force | ||
RUN mix local.rebar --force | ||
|
||
# NOTE: development at https://git.savannah.gnu.org/gitweb/?p=libiconv.git | ||
# and publication at https://ftp.gnu.org/pub/gnu/libiconv | ||
RUN wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz | ||
RUN tar -xf libiconv-1.16.tar.gz | ||
RUN cd libiconv-1.16 && ./configure --prefix= && make && make install | ||
RUN libtool --finish /lib | ||
RUN rm libiconv-1.16.tar.gz | ||
RUN rm -r libiconv-1.16 |