Skip to content

Commit

Permalink
Improve dev container to not rely on flakey features
Browse files Browse the repository at this point in the history
  • Loading branch information
xarantolus committed Feb 18, 2024
1 parent 9588fb0 commit 660f9c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
8 changes: 8 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM rust:1-buster

COPY Makefile /tmp/Makefile

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl \
python3 python3-pip nodejs npm make gcc

RUN make -f /tmp/Makefile dependencies
13 changes: 4 additions & 9 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@
{
"name": "Dev Container",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/rust:0-1-bullseye",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/rust:1": {},
"ghcr.io/devcontainers/features/python:1": {},
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
"packages": "make,gcc"
}
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
// Features to add to the dev container. More info: https://containers.dev/features.
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
5173
Expand Down

0 comments on commit 660f9c9

Please sign in to comment.