Skip to content

Commit 712d165

Browse files
committed
updated to v2.4.0, added build script and .devcontainer
1 parent 37ac30c commit 712d165

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.194.3/containers/cpp/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Debian / Ubuntu version: debian-11, debian-10, debian-9, ubuntu-20.04, ubuntu-18.04
4+
ARG VARIANT="buster"
5+
FROM mcr.microsoft.com/vscode/devcontainers/cpp:0-${VARIANT}
6+
7+
# [Optional] Uncomment this section to install additional packages.
8+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9+
# && apt-get -y install --no-install-recommends <your-package-list-here>

.devcontainer/devcontainer.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.194.3/containers/cpp
3+
{
4+
"name": "C++",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
// Update 'VARIANT' to pick an Debian / Ubuntu OS version: debian-11, debian-10, debian-9, ubuntu-20.04, ubuntu-18.04
8+
"args": { "VARIANT": "debian-10" }
9+
},
10+
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
11+
12+
// Set *default* container specific settings.json values on container create.
13+
"settings": {},
14+
15+
// Add the IDs of extensions you want installed when the container is created.
16+
"extensions": [
17+
"ms-vscode.cpptools"
18+
],
19+
20+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
21+
// "forwardPorts": [],
22+
23+
// Use 'postCreateCommand' to run commands after the container is created.
24+
// "postCreateCommand": "gcc -v",
25+
26+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
27+
"remoteUser": "vscode"
28+
}

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
#rm -rf build
3+
mkdir -p build
4+
(cd build && cmake ..)
5+
(cd build && make VERBOSE=1 -j ${nprocs})

0 commit comments

Comments
 (0)