trying to fiw devcontainer to works with 42 chips
This commit is contained in:
@@ -7,6 +7,8 @@ RUN apt-get update && apt-get install -y \
|
|||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
vim \
|
vim \
|
||||||
|
avr-libc gcc-avr binutils-avr \
|
||||||
|
avrdude \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Set the working directory to /workspace (VSCode will mount your local folder here)
|
# Set the working directory to /workspace (VSCode will mount your local folder here)
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
"dockerFile": "Dockerfile", // Reference to your Dockerfile
|
"dockerFile": "Dockerfile", // Reference to your Dockerfile
|
||||||
"context": ".", // The context is the root of your project
|
"context": ".", // The context is the root of your project
|
||||||
"workspaceFolder": "/workspace", // Where VSCode will mount your current folder inside the container
|
"workspaceFolder": "/workspace", // Where VSCode will mount your current folder inside the container
|
||||||
"mounts": ["source=${localWorkspaceFolder},target=/workspace,type=bind"],
|
"mounts": [
|
||||||
|
"source=${localWorkspaceFolder},target=/workspace,type=bind",
|
||||||
|
"source=/dev/tty.usbserial-310,target=/dev/ttyUSB0,type=bind"
|
||||||
|
],
|
||||||
"postCreateCommand": "echo 'Devcontainer setup complete!'"
|
"postCreateCommand": "echo 'Devcontainer setup complete!'"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
name: 42chips
|
|
||||||
|
|
||||||
# Services
|
|
||||||
services:
|
|
||||||
42chips:
|
|
||||||
container_name: 42chips
|
|
||||||
user: vscode
|
|
||||||
build:
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
context: .
|
|
||||||
volumes:
|
|
||||||
- ..:/workspace
|
|
||||||
- 42chips-home:/home
|
|
||||||
networks:
|
|
||||||
- 42chips-net
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
42chips-home:
|
|
||||||
name: 42chips-home
|
|
||||||
networks:
|
|
||||||
42chips-net:
|
|
||||||
name: 42chips-net
|
|
||||||
Reference in New Issue
Block a user