Skip to content

Instantly share code, notes, and snippets.

@nicholasjhenry
Last active December 15, 2022 00:12
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicholasjhenry/efe53db0cbba2c815571e3cbfda655de to your computer and use it in GitHub Desktop.
Save nicholasjhenry/efe53db0cbba2c815571e3cbfda655de to your computer and use it in GitHub Desktop.
Gitpod (don't do this, use asdf)
FROM gitpod/workspace-full
USER gitpod
# Erlang: https://computingforgeeks.com/how-to-install-latest-erlang-on-ubuntu-linux/
RUN wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
RUN echo "deb https://packages.erlang-solutions.com/ubuntu focal contrib" | sudo tee /etc/apt/sources.list.d/rabbitmq.list
RUN sudo apt-get update && \
sudo apt-get install inotify-tools -y && \
sudo DEBIAN_FRONTEND=noninteractive apt-get install erlang=1:22.2.7+dfsg-1 -y && \
sudo apt-get install elixir=1.9.1.dfsg-1.3 -y && \
sudo apt-get clean && \
sudo rm -rf /var/cache/apt/* && \
sudo rm -rf /var/lib/apt/lists/* && \
sudo rm -rf /tmp/*
RUN mix local.hex --force \
&& mix local.rebar --force
FROM gitpod/workspace-full
USER gitpod
RUN brew install asdf
RUN asdf plugin add erlang && \
asdf plugin add elixir && \
asdf plugin add postgres
# install everything in .tool-versions
RUN asdf install
RUN echo 'export PATH=$PATH:/$HOME/.asdf/shims' >> .bashrc
# Success. You can now start the database server using:
# /home/gitpod/.asdf/installs/postgres/11.4/bin/pg_ctl -D /home/gitpod/.asdf/installs/postgres/11.4/data -l logfile start
RUN mix local.hex --force && \
mix local.rebar --force
FROM gitpod/workspace-full
USER gitpod
# Erlang/OTP 23.3.3
RUN brew install erlang -v
# Elixir 1.11.4
RUN brew install elixir
RUN mix local.hex --force && \
mix local.rebar --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment