trying to fiw devcontainer to works with 42 chips

This commit is contained in:
hugo LAMY
2025-03-06 02:00:56 +01:00
parent 8a28799aac
commit c650ff1157
3 changed files with 6 additions and 23 deletions

View File

@@ -7,6 +7,8 @@ RUN apt-get update && apt-get install -y \
curl \
git \
vim \
avr-libc gcc-avr binutils-avr \
avrdude \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory to /workspace (VSCode will mount your local folder here)

View File

@@ -3,6 +3,9 @@
"dockerFile": "Dockerfile", // Reference to your Dockerfile
"context": ".", // The context is the root of your project
"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!'"
}

View File

@@ -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