This repository has been archived by the owner on Nov 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ptrace runArgs into samples, docker-in-docker
- Loading branch information
Showing
12 changed files
with
143 additions
and
55 deletions.
There are no files selected for viewing
24 changes: 17 additions & 7 deletions
24
container-templates/docker-compose/.devcontainer/devcontainer.json
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 |
---|---|---|
@@ -1,11 +1,21 @@ | ||
{ | ||
// "See https://aka.ms/vscode-remote/devcontainer.json for format details." | ||
// See https://aka.ms/vscode-remote/devcontainer.json for format details. | ||
"name": "Dev Container Definition Template - Docker Compose", | ||
|
||
// Update the 'dockerComposeFile' list if you have more compose files or use different names. | ||
"dockerComposeFile": "docker-compose.yml", | ||
"service": "your-service-name-here", | ||
|
||
// The 'service' property is the name of the service for the container that VS Code should | ||
// use. Update this value and .devcontainer/docker-compose.yml to the real service name. | ||
"service": "your-service-name-here", | ||
|
||
// The optional 'workspaceFolder' property is the path VS Code should open by default when | ||
// connected. This is typically a volume mount in .devcontainer/docker-compose.yml | ||
"workspaceFolder": "/workspace", | ||
"shutdownAction": "stopCompose", | ||
"extensions": [ | ||
"mutantdino.resourcemonitor" | ||
] | ||
} | ||
|
||
// Add any extensions you want auto-installed here. | ||
"extensions": [], | ||
|
||
// Update the value of this line like to 'none' if you want to keep your containers running after VS Code shuts down. | ||
"shutdownAction": "stopCompose" | ||
} |
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
32 changes: 23 additions & 9 deletions
32
container-templates/dockerfile/.devcontainer/devcontainer.json
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 |
---|---|---|
@@ -1,10 +1,24 @@ | ||
{ | ||
// "See https://aka.ms/vscode-remote/devcontainer.json for format details." | ||
"name": "Dev Container Definition Template - Dockerfile", | ||
"dockerFile": "Dockerfile", | ||
"appPort": 3000, | ||
"extensions": [ | ||
"mutantdino.resourcemonitor" | ||
], | ||
"runArgs": [] | ||
} | ||
// See https://aka.ms/vscode-remote/devcontainer.json for format details. | ||
"name": "Dev Container Definition Template - Dockerfile", | ||
|
||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | ||
"dockerFile": "Dockerfile", | ||
|
||
// Use the optional 'appPort' property to expose ports not already in your Dockerfile | ||
"appPort": [], | ||
|
||
// Add any extensions you want auto-installed here. | ||
"extensions": [], | ||
|
||
// The optional 'runArgs' property can be used to specify additional runtime arguments. | ||
"runArgs": [ | ||
// Uncomment the next line if you plan to install the Docker CLI. See the Docker in Docker definition for details | ||
// "-v","/var/run/docker.sock:/var/run/docker.sock", | ||
|
||
// Uncomment the next three lines if you will be using a ptrace-based debuggers like C++, Go, and Rust. | ||
// "--cap-add=SYS_PTRACE", | ||
// "--security-opt", | ||
/// "seccomp=unconfined" | ||
] | ||
} |
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 |
---|---|---|
@@ -1,10 +1,25 @@ | ||
{ | ||
// "See https://aka.ms/vscode-remote/devcontainer.json for format details." | ||
// See https://aka.ms/vscode-remote/devcontainer.json for format details. | ||
"name": "Dev Container Definition Template - Container Image", | ||
|
||
// Update the 'image' property with your Docker image name. | ||
"image": "ubuntu:bionic", | ||
"appPort": 3000, | ||
"extensions": [ | ||
"mutantdino.resourcemonitor" | ||
], | ||
"runArgs": [] | ||
} | ||
|
||
// Use the optional 'appPort' property to expose ports not already in your Dockerfile | ||
"appPort": [], | ||
|
||
// Add any extensions you want auto-installed here. | ||
"extensions": [], | ||
|
||
// The optional 'runArgs' property can be used to specify additional runtime arguments. | ||
"runArgs": [ | ||
// Uncomment the next line if you plan to install the Docker CLI. See the Docker in Docker definition for details | ||
// "-v","/var/run/docker.sock:/var/run/docker.sock", | ||
|
||
// Uncomment the next three lines if you will be using a ptrace-based debuggers like C++, Go, and Rust. | ||
// "--cap-add=SYS_PTRACE", | ||
// "--security-opt", | ||
/// "seccomp=unconfined" | ||
] | ||
|
||
} |
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 |
---|---|---|
@@ -1,5 +1,14 @@ | ||
{ | ||
"name": "Debian 9 & Git", | ||
"dockerFile": "Dockerfile", | ||
"appPort": [] | ||
"appPort": [], | ||
"runArgs": [ | ||
// Uncomment the next line if you plan to install the Docker CLI. See the Docker in Docker definition for details | ||
// "-v","/var/run/docker.sock:/var/run/docker.sock", | ||
|
||
// Uncomment the next three lines if you will be using a ptrace-based debuggers like C++, Go, and Rust. | ||
// "--cap-add=SYS_PTRACE", | ||
// "--security-opt", | ||
/// "seccomp=unconfined" | ||
] | ||
} |
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
27 changes: 16 additions & 11 deletions
27
containers/docker-existing-dockerfile/.devcontainer/devcontainer.json
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 |
---|---|---|
@@ -1,22 +1,27 @@ | ||
{ | ||
// "See https://aka.ms/vscode-remote/devcontainer.json for format details." | ||
// See https://aka.ms/vscode-remote/devcontainer.json for format details. | ||
"name": "Existing Dockerfile", | ||
|
||
// "Sets the run context to one level up instead of the .devcontainer folder. | ||
// Sets the run context to one level up instead of the .devcontainer folder. | ||
"context": "..", | ||
|
||
// "Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename." | ||
"dockerFile": "Dockerfile", | ||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | ||
"dockerFile": "Dockerfile", | ||
|
||
// "Use the optional 'appPort' property to expose ports not already in your Dockerfile" | ||
// Use the optional 'appPort' property to expose ports not already in your Dockerfile | ||
"appPort": [], | ||
|
||
// "Add any extensions you want auto-installed here." | ||
// Add any extensions you want auto-installed here. | ||
"extensions": [], | ||
|
||
// "The optional 'runArgs' property can be used to specify Docker CLI arguments to use when the container." | ||
// "is started. If you install the Docker CE CLI in your container, the runArgs list below will lets you interact" | ||
// "with your host's Docker service from inside the container. See the docker-in-docker and docker-in-docker" | ||
// "definitions for details." | ||
"runArgs": ["-v","/var/run/docker.sock:/var/run/docker.sock"] | ||
// The optional 'runArgs' property can be used to specify additional runtime arguments. | ||
"runArgs": [ | ||
// Uncomment the next line if you plan to install the Docker CLI. See the Docker in Docker definition for details | ||
// "-v","/var/run/docker.sock:/var/run/docker.sock", | ||
|
||
// Uncomment the next three lines if you will be using a ptrace-based debuggers like C++, Go, and Rust. | ||
// "--cap-add=SYS_PTRACE", | ||
// "--security-opt", | ||
/// "seccomp=unconfined" | ||
] | ||
} |
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
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
11 changes: 10 additions & 1 deletion
11
containers/ubuntu-18.04-git/.devcontainer/devcontainer.json
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 |
---|---|---|
@@ -1,5 +1,14 @@ | ||
{ | ||
"name": "Ubuntu 18.04 & Git", | ||
"dockerFile": "Dockerfile", | ||
"appPort": [] | ||
"appPort": [], | ||
"runArgs": [ | ||
// Uncomment the next line if you plan to install the Docker CLI. See the Docker in Docker definition for details | ||
// "-v","/var/run/docker.sock:/var/run/docker.sock", | ||
|
||
// Uncomment the next three lines if you will be using a ptrace-based debuggers like C++, Go, and Rust. | ||
// "--cap-add=SYS_PTRACE", | ||
// "--security-opt", | ||
/// "seccomp=unconfined" | ||
] | ||
} |