diff --git a/.devcontainer/Containerfile b/.devcontainer/Containerfile new file mode 100644 index 0000000..c7e382b --- /dev/null +++ b/.devcontainer/Containerfile @@ -0,0 +1,15 @@ +FROM mcr.microsoft.com/devcontainers/base:debian-12 + +RUN apt-get -y update && apt-get -y install curl git unzip build-essential autoconf m4 libncurses-dev libwxgtk3.2-dev libwxgtk-webview3.2-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils openjdk-17-jdk stow + +USER vscode +RUN git clone https://github.com/asdf-vm/asdf.git "$HOME/.asdf" --branch v0.14.0 +RUN export ASDF_DIR="$HOME/.asdf" && \ + echo ". \$HOME/.asdf/asdf.sh" >> "$HOME/.bashrc" && \ + . "$HOME/.asdf/asdf.sh" && \ + asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git && \ + asdf plugin add elixir https://github.com/asdf-vm/asdf-elixir.git && \ + asdf install erlang 27.0 && \ + asdf install elixir 1.17.2 && \ + asdf global erlang 27.0 && \ + asdf global elixir 1.17.2 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..fbc7abe --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,15 @@ +{ + "build": { + "dockerfile": "Containerfile" + }, + "customizations": { + "vscode": { + "extensions": [ + "JakeBecker.elixir-ls" + ], + "settings": { + "elixirLS.projectDir": "poker_ex" + } + } + } +} \ No newline at end of file