Created
February 14, 2022 07:27
-
-
Save kuboon/1fb658f0f67659ace98b6b8a30816523 to your computer and use it in GitHub Desktop.
.devcontainer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"name": "Ubuntu asdf", | |
"runArgs": ["--init"], | |
"build": { | |
"dockerfile": "Dockerfile" | |
}, | |
"settings": { | |
"deno.enable": true, | |
"deno.lint": true, | |
"editor.defaultFormatter": "denoland.vscode-deno" | |
}, | |
"extensions": [ | |
"denoland.vscode-deno" | |
], | |
"remoteUser": "vscode", | |
"features": { | |
"git": "latest", | |
"github-cli": "latest" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://hub.docker.com/_/microsoft-vscode-devcontainers | |
FROM mcr.microsoft.com/vscode/devcontainers/base:0-ubuntu-21.04 | |
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | |
&& apt-get -y install --no-install-recommends fish | |
RUN chsh -s /usr/bin/fish vscode | |
USER vscode | |
SHELL ["/usr/bin/fish", "-l", "-c"] | |
# http://asdf-vm.com/guide/getting-started.html#_3-install-asdf | |
RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.9.0 \ | |
&& mkdir -p ~/.config/fish/completions; and ln -s ~/.asdf/completions/asdf.fish ~/.config/fish/completions \ | |
&& echo "source ~/.asdf/asdf.fish" >> $HOME/.config/fish/config.fish | |
RUN asdf plugin add deno && asdf install deno latest && asdf global deno latest | |
RUN deno install -A -f -n land https://deno.land/x/land@v0.7.0/cli.ts | |
RUN asdf plugin add golang && asdf install golang latest && asdf global golang latest | |
RUN asdf plugin add rust && asdf install rust latest && asdf global rust latest | |
RUN asdf reshim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment