Browse Source

Merge pull request #15525 from GordonSmith/DEVCONTAINERS

HPCC-26753 Enable building with hpccsystems/platform-build-base in VSCode

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 3 năm trước cách đây
mục cha
commit
211e3ff03d

+ 3 - 0
.devcontainer/Dockerfile

@@ -0,0 +1,3 @@
+ARG BASE_VER=8.6 
+
+FROM hpccsystems/platform-build-base:${BASE_VER}

+ 32 - 0
.devcontainer/devcontainer.json

@@ -0,0 +1,32 @@
+// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
+// https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/cpp
+{
+	"name": "C++",
+	"build": {
+		"dockerfile": "Dockerfile",
+		"args": {
+			"BASE_VER": "8.6"
+		}
+	},
+	"runArgs": [
+		"--cap-add=SYS_PTRACE",
+		"--security-opt",
+		"seccomp=unconfined"
+	],
+	// "postCreateCommand": "git config oh-my-zsh.hide-info 1",
+	// Set *default* container specific settings.json values on container create.
+	"settings": {},
+	// Add the IDs of extensions you want installed when the container is created.
+	"extensions": [
+		"ms-vscode.cpptools",
+		"ms-vscode.cmake-tools",
+		"twxs.cmake"
+	],
+	// Use 'forwardPorts' to make a list of ports inside the container available locally.
+	// "forwardPorts": [],
+	// Use 'postCreateCommand' to run commands after the container is created.
+	// "postCreateCommand": "gcc -v",
+	"initializeCommand": "git submodule update --init --recursive"
+	// Comment out this line to run as root instead.
+	// "remoteUser": "vscode"
+}

+ 1 - 0
.gitignore

@@ -1,4 +1,5 @@
 build/
 build/
+node_modules/
 vcpkg/
 vcpkg/
 externals/
 externals/
 .project
 .project

+ 0 - 3
package-lock.json

@@ -1,3 +0,0 @@
-{
-  "lockfileVersion": 1
-}