diff options
author | Mubeen Khan <mubeen@mubeen.co> | 2020-10-10 16:32:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 16:32:16 -0500 |
commit | 4fd6c14ae93ab1b2db1a6a4fac5df4a595a041bf (patch) | |
tree | 064f9890c09322b432cf104d080b0385bbaf1c43 /.devcontainer | |
parent | 16df1522c282343c3350402360db918a9a1b66e5 (diff) | |
parent | fc6c01fd6941ec795710d66ead9e17d5dfbaa19d (diff) |
Merge pull request #4 from zmkfirmware/main
make even with main
Diffstat (limited to '.devcontainer')
-rw-r--r-- | .devcontainer/.bashrc | 6 | ||||
-rw-r--r-- | .devcontainer/Dockerfile | 11 | ||||
-rw-r--r-- | .devcontainer/devcontainer.json | 8 |
3 files changed, 25 insertions, 0 deletions
diff --git a/.devcontainer/.bashrc b/.devcontainer/.bashrc new file mode 100644 index 0000000..855ea75 --- /dev/null +++ b/.devcontainer/.bashrc @@ -0,0 +1,6 @@ +export LS_OPTIONS='-F --color=auto' +eval "`dircolors`" +alias ls='ls $LS_OPTIONS' +if [ -f "$WORKSPACE_DIR/zephyr/zephyr-env.sh" ]; then + source "$WORKSPACE_DIR/zephyr/zephyr-env.sh" +fi diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..184aae9 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,11 @@ +FROM zmkfirmware/zephyr-west-action-arm + +RUN apt-get -y update && \ + apt-get -y upgrade && \ + apt-get install --no-install-recommends -y \ + ssh \ + gpg && \ + rm -rf /var/lib/apt/lists/* + +COPY .bashrc tmp +RUN mv /tmp/.bashrc ~/.bashrc diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..940b78b --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,8 @@ +{ + "name": "ZMK Development", + "dockerFile": "Dockerfile", + "extensions": ["ms-vscode.cpptools"], + "runArgs": ["--security-opt", "label=disable"], + "containerEnv": {"WORKSPACE_DIR": "${containerWorkspaceFolder}"} +} + |