Add a development container.

This commit is contained in:
Hans Goor 2024-08-16 20:32:11 +00:00
parent 302095d982
commit 337219ebf3
No known key found for this signature in database
2 changed files with 30 additions and 0 deletions

View file

@ -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

View file

@ -0,0 +1,15 @@
{
"build": {
"dockerfile": "Containerfile"
},
"customizations": {
"vscode": {
"extensions": [
"JakeBecker.elixir-ls"
],
"settings": {
"elixirLS.projectDir": "poker_ex"
}
}
}
}