Skip to content

Commit 9510eb1

Browse files
committed
use prebuilt image with tools
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
1 parent eb41b5e commit 9510eb1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
FROM ghcr.io/hyperlight-dev/hyperlight-wasm-devcontainer:latest
2-
RUN cargo install wac-cli
1+
FROM docker.io/jsturtevant/hl-wasm:latest
32
RUN cargo install --git https://github.com/hyperlight-dev/hyperlight-wasm hyperlight-wasm-aot
4-
RUN cargo install cargo-component --locked

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
"runArgs": [
2020
"--device=/dev/kvm"
2121
],
22-
"postStartCommand": "bash .devcontainer/setup.sh",
22+
"postStartCommand": "bash .devcontainer/setup.sh"
2323
}

.devcontainer/setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
# Change device ownership
44
sudo chown -R $REMOTE_USER:$REMOTE_GROUP $DEVICE
5+
# resolves a npm bug related to these being set to root
6+
sudo chown -R vscode "/home/vscode/.npm"

0 commit comments

Comments
 (0)