File tree 2 files changed +21
-7
lines changed
2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,23 @@ USER root
6
6
# Dazzle does not rebuild a layer until one of its lines are changed. Increase this counter to rebuild this layer.
7
7
ENV TRIGGER_REBUILD=1
8
8
9
- RUN cd /tmp \
10
- && wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb \
11
- && dpkg -i erlang-solutions_2.0_all.deb \
12
- && install-packages elixir
13
-
14
9
USER gitpod
10
+
11
+ # Install asdf to make it easier to manage elixir versions
12
+ #
13
+ # Why?
14
+ # 1. At the time of this writing, `apt-get install elixir` was installing
15
+ # a version that was not compatible with glibc in Ubuntu Focal.
16
+ # 2. This makes it explicit as to what versions we're installing.
17
+ # 3. It'll give users the ability to easily make changes at runtime to experiment
18
+ RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.1
19
+ RUN echo ". " $HOME/.asdf/asdf.sh"" >> /home/gitpod/.bashrc.d/100-asdf
20
+ RUN echo ". " $HOME/.asdf/completions/asdf.bash"" >> /home/gitpod/.bashrc.d/100-asdf
21
+ ENV PATH=/home/gitpod/.asdf/bin:/home/gitpod/.asdf/shims:${PATH}
22
+
23
+ RUN asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git
24
+ RUN asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
25
+ RUN asdf install erlang 25.2.2
26
+ RUN asdf install elixir 1.13.4-otp-25
27
+ RUN asdf global erlang 25.2.2
28
+ RUN asdf global elixir 1.13.4-otp-25
Original file line number Diff line number Diff line change 2
2
command : [elixir,--version]
3
3
assert :
4
4
- status == 0
5
- - stdout.indexOf("Erlang/OTP 2 ") != -1
6
- - stdout.indexOf("Elixir 1.13.") != -1
5
+ - stdout.indexOf("Erlang/OTP 25 ") != -1
6
+ - stdout.indexOf("Elixir 1.13.4 ") != -1
You can’t perform that action at this time.
0 commit comments