Skip to content

Commit 35601ad

Browse files
committed
fixup! feat: add devcontainer
1 parent ae7c923 commit 35601ad

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
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": {},

.devcontainer/install-asdf.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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

0 commit comments

Comments
 (0)