Add a development container.
This commit is contained in:
parent
302095d982
commit
2dbe30888d
2 changed files with 27 additions and 0 deletions
15
.devcontainer/Containerfile
Normal file
15
.devcontainer/Containerfile
Normal 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
|
||||
12
.devcontainer/devcontainer.json
Normal file
12
.devcontainer/devcontainer.json
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"build": {
|
||||
"dockerfile": "Containerfile"
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"JakeBecker.elixir-ls"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue