Skip to content

Commit 2b879fd

Browse files
authored
Merge pull request #52 from FaBjE/feature/updateDevEnvironment
Update dev environment
2 parents cc4d6ff + a32bef7 commit 2b879fd

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ ARG deps="\
99
libxcb-keysyms1 \
1010
libxcb-shape0 \
1111
libxkbcommon-x11-0 \
12+
libusb-1.0-0 \
13+
usbutils \
1214
"
1315
RUN apt-get update \
1416
&& apt-get install -y ${deps} \

.devcontainer/devcontainer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@
4343
"-e",
4444
"XAUTHORITY=/tmp/.Xauthority",
4545
"-v",
46-
"${localEnv:HOME}/.Xauthority:/tmp/.Xauthority"
46+
"${localEnv:HOME}/.Xauthority:/tmp/.Xauthority",
47+
// Share USB devices to container (https://binary-manu.github.io/binary-is-better/docker/access-usb-devices-from-unprivileged-docker-containers)
48+
"-v",
49+
"/dev/bus/usb:/dev/bus/usb",
50+
"--device-cgroup-rule",
51+
"c 189:* rw"
4752
],
4853
"features": {
4954
"ghcr.io/devcontainers/features/github-cli:1": {}

.vscode/launch.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,27 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "CLI",
8+
"name": "CLI (Console preview)",
99
"type": "debugpy",
1010
"request": "launch",
1111
"module": "labelle.cli.cli",
1212
"args": [
13-
"--preview",
13+
"--output=console",
14+
"--verbose",
15+
"--tape-size-mm=12",
16+
"hi",
17+
],
18+
"justMyCode": false,
19+
},
20+
{
21+
"name": "CLI (Printer)",
22+
"type": "debugpy",
23+
"request": "launch",
24+
"module": "labelle.cli.cli",
25+
"args": [
26+
"--output=printer",
27+
"--verbose",
28+
"--tape-size-mm=12",
1429
"hi",
1530
],
1631
"justMyCode": false,

0 commit comments

Comments
 (0)