1
0
Fork 0

setup vscode dev container config / implementation similar to the ardux qmk one

This commit is contained in:
KemoNine 2022-05-01 13:30:57 -04:00
parent 5d762816cb
commit 26bb0b9534
4 changed files with 29 additions and 0 deletions

4
.devcontainer/Dockerfile Normal file
View 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
View 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

View 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
View File

@ -0,0 +1 @@
.build/