Inject $WORKSPACE_DIR into container
This permits users to check ZMK out into arbitrarily-named directories
This commit is contained in:
parent
db40fbad59
commit
63ad5b7c08
2 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
export LS_OPTIONS='-F --color=auto'
|
export LS_OPTIONS='-F --color=auto'
|
||||||
eval "`dircolors`"
|
eval "`dircolors`"
|
||||||
alias ls='ls $LS_OPTIONS'
|
alias ls='ls $LS_OPTIONS'
|
||||||
if [ -f /workspaces/zmk/zephyr/zephyr-env.sh ]; then
|
if [ -f "$WORKSPACE_DIR/zephyr/zephyr-env.sh" ]; then
|
||||||
source /workspaces/zmk/zephyr/zephyr-env.sh
|
source "$WORKSPACE_DIR/zephyr/zephyr-env.sh"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
"name": "ZMK Development",
|
"name": "ZMK Development",
|
||||||
"dockerFile": "Dockerfile",
|
"dockerFile": "Dockerfile",
|
||||||
"extensions": ["ms-vscode.cpptools"],
|
"extensions": ["ms-vscode.cpptools"],
|
||||||
"runArgs": ["--security-opt", "label=disable"]
|
"runArgs": ["--security-opt", "label=disable"],
|
||||||
|
"containerEnv": {"WORKSPACE_DIR": "${containerWorkspaceFolder}"}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue