forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding VS-Code development container
- Loading branch information
1 parent
c08cb4e
commit 72d717c
Showing
4 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM ubuntu:bionic | ||
|
||
|
||
ARG USERNAME=vscode | ||
ARG USER_UID=1000 | ||
ARG USER_GID=$USER_UID | ||
ENV LANG en_US.utf8 | ||
|
||
RUN apt-get update | ||
RUN apt-get update && apt-get install -y locales && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 | ||
RUN apt-get -fy install git vim emacs sudo \ | ||
apt-utils dialog \ | ||
iproute2 procps lsb-release \ | ||
build-essential cmake cppcheck valgrind \ | ||
make automake g++ libtool llvm-9-dev llvm-9-tools llvm-9 llvm-9-runtime \ | ||
curl \ | ||
wget \ | ||
jq \ | ||
clang-9 \ | ||
clang-format-9 \ | ||
clang-tidy-9 \ | ||
lcov \ | ||
shellcheck | ||
|
||
RUN groupadd --gid $USER_GID $USERNAME | ||
RUN useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME | ||
RUN echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME | ||
RUN chmod 0440 /etc/sudoers.d/$USERNAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "CHIP Ubuntu Development Environment", | ||
"dockerFile": "Dockerfile", | ||
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"], | ||
|
||
"remoteUser": "vscode", | ||
|
||
// Add the IDs of extensions you want installed when the container is created in the array below. | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"ms-azuretools.vscode-docker", | ||
"xaver.clang-format" | ||
], | ||
// Use 'settings' to set *default* container specific settings.json values on container create. | ||
// You can edit these settings after create using File > Preferences > Settings > Remote. | ||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Build Main", | ||
"type": "shell", | ||
"command": "make -f Makefile-Standalone", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"label": "Bootstrap", | ||
"type": "shell", | ||
"command": "./bootstrap", | ||
"group": "none" | ||
} | ||
] | ||
} |