Skip to content

Instantly share code, notes, and snippets.

@ikeyasu
Created June 30, 2018 11:35
Show Gist options
  • Save ikeyasu/9b9cee4564d06a2c50d4f3d850818a20 to your computer and use it in GitHub Desktop.
Save ikeyasu/9b9cee4564d06a2c50d4f3d850818a20 to your computer and use it in GitHub Desktop.
FROM erlang:20.2.2
LABEL maintainer "ikeyasu <ikeyasu@gmail.com>"
RUN echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
RUN apt-get update && apt-get install -y unzip locales inotify-tools
RUN echo 'export LANG=en_US.UTF-8' >> ~/.bashrc
RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.5.0
RUN echo '\n. $HOME/.asdf/asdf.sh' >> $HOME/.bashrc
COPY install_antikythera.sh /tmp/
RUN bash /tmp/install_antikythera.sh
. $HOME/.asdf/asdf.sh
asdf plugin-add elixir
asdf plugin-add nodejs
asdf plugin-add ruby
asdf install elixir 1.5.3
asdf global elixir 1.5.3
mkdir /antikythera
cd /antikythera
git clone https://github.com/access-company/antikythera_instance_example.git
cd antikythera_instance_example
mix local.hex --force
mix local.rebar --force
mix deps.get
mix deps.get
mix compile
cd /antikythera
git clone https://github.com/access-company/testgear.git
cd testgear
export ANTIKYTHERA_INSTANCE_DEP='{:antikythera_instance_example, [git: "https://github.com/access-company/antikythera_instance_example.git"]}'
mix deps.get
mix deps.get
echo "127.0.0.1 testgear.localhost $(hostname).local" >> /etc/hosts
mix compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment