setup vscode dev container config / implementation similar to the ardux qmk one
This commit is contained in:
parent
5d762816cb
commit
26bb0b9534
4 changed files with 29 additions and 0 deletions
4
.devcontainer/Dockerfile
Normal file
4
.devcontainer/Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
FROM docker.io/zmkfirmware/zmk-dev-arm:stable
|
||||||
|
|
||||||
|
COPY bashrc tmp
|
||||||
|
RUN mv /tmp/bashrc ~/.bashrc
|
8
.devcontainer/bashrc
Normal file
8
.devcontainer/bashrc
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
export LS_OPTIONS='-F --color=auto'
|
||||||
|
alias ls='ls $LS_OPTIONS'
|
||||||
|
if [ "${CODESPACES}" = "true" ]; then
|
||||||
|
export WORKSPACE_DIR="$HOME/workspace/zmk"
|
||||||
|
fi
|
||||||
|
if [ -f "$WORKSPACE_DIR/zephyr/zephyr-env.sh" ]; then
|
||||||
|
source "$WORKSPACE_DIR/zephyr/zephyr-env.sh"
|
||||||
|
fi
|
16
.devcontainer/devcontainer.json
Normal file
16
.devcontainer/devcontainer.json
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"name": "ARDUX ZMK Development",
|
||||||
|
"dockerFile": "Dockerfile",
|
||||||
|
"runArgs": ["--security-opt", "label=disable"],
|
||||||
|
"extensions": ["ms-vscode.cpptools"],
|
||||||
|
"settings": {
|
||||||
|
"terminal.integrated.shell.linux": "/bin/bash"
|
||||||
|
},
|
||||||
|
"forwardPorts": [3000],
|
||||||
|
"workspaceMount": "type=volume,source=zmk-src,target=/workspaces/zmk",
|
||||||
|
"workspaceFolder": "/workspaces",
|
||||||
|
"mounts": [
|
||||||
|
"type=bind,source=${localWorkspaceFolder},target=/workspaces/zmk-ardux",
|
||||||
|
"type=bind,source=${localWorkspaceFolder}/.build,target=/workspaces/zmk/app/build"
|
||||||
|
]
|
||||||
|
}
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.build/
|
Loading…
Reference in a new issue