File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 44 "name" : " Ubuntu" ,
55 // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
66 "image" : " mcr.microsoft.com/devcontainers/base:jammy" ,
7- "features" : {
8- "ghcr.io/devcontainer-community/devcontainer-features/asdf-vm.com:1" : {}
9- }
7+ "postCreateCommand" : " sudo bash .devcontainer/install-asdf.sh" ,
108
119 // Features to add to the dev container. More info: https://containers.dev/features.
1210 // "features": {},
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -e
3+
4+ export ASDF_VERSION=v0.18.0
5+
6+ # Download and install asdf binary
7+ rm /tmp/asdf.tar.gz || true
8+
9+ curl -L https://github.com/asdf-vm/asdf/releases/download/${ASDF_VERSION} /asdf-${ASDF_VERSION} -linux-amd64.tar.gz -o /tmp/asdf.tar.gz
10+
11+ mkdir -p /opt/asdf
12+
13+ tar -xzf /tmp/asdf.tar.gz -C /opt/asdf
14+
15+ ln -s -f /opt/asdf/asdf /usr/local/bin/asdf
16+
17+ rm /tmp/asdf.tar.gz
You can’t perform that action at this time.
0 commit comments