This repository was archived by the owner on Nov 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +40
-42
lines changed
docker-compose/.devcontainer
docker-existing-docker-compose/.devcontainer
docker-existing-dockerfile/.devcontainer Expand file tree Collapse file tree 9 files changed +40
-42
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,16 @@ FROM debian:9
8
8
9
9
# Install git
10
10
RUN apt-get update \
11
- && apt-get install -y git
11
+ && apt-get install -y git procps lsb-release
12
12
13
13
# Install Docker CE CLI
14
- RUN apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common \
14
+ RUN apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common lsb-release \
15
15
&& curl -fsSL https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]' )/gpg | apt-key add - \
16
16
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable" \
17
17
&& apt-get update \
18
18
&& apt-get install -y docker-ce-cli
19
19
20
-
21
20
# Clean up
22
21
RUN apt-get autoremove -y \
23
22
&& apt-get clean -y \
24
- && rm -rf /var/lib/apt/lists/*
25
-
23
+ && rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change 1
1
{
2
+ // "See https://aka.ms/vscode-remote/devcontainer.json for format details."
2
3
"name" : " Dev Container Editing" ,
3
4
"dockerFile" : " Dockerfile" ,
4
5
"extensions" : [
Original file line number Diff line number Diff line change 11
11
# Debian and Ubuntu based images are supported. Alpine images are not yet supported.
12
12
FROM debian:9
13
13
14
- # Install git, process tools
15
- RUN apt-get update && apt-get -y install git procps
14
+ # Install git, process tools, lsb-release (common in install instructions for CLIs)
15
+ RUN apt-get update && apt-get -y install git procps lsb-release
16
16
17
17
# *****************************************************
18
18
# * Add steps for installing needed dependencies here *
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " Dev Container Definition Template - Docker Compose" ,
2
+ // "See https://aka.ms/vscode-remote/devcontainer.json for format details."
3
+ "name" : " Dev Container Definition Template - Docker Compose" ,
3
4
"dockerComposeFile" : " docker-compose.yml" ,
4
5
"service" : " your-service-name-here" ,
5
6
"workspaceFolder" : " /workspace" ,
6
7
"shutdownAction" : " stopCompose" ,
7
- "extensions" : [
8
- " mutantdino.resourcemonitor"
8
+ "extensions" : [
9
+ " mutantdino.resourcemonitor"
9
10
]
10
11
}
Original file line number Diff line number Diff line change 6
6
# Debian and Ubuntu based images are supported. Alpine images are not yet supported.
7
7
FROM debian:9
8
8
9
- # Install git, process tools
10
- RUN apt-get update && apt-get -y install git procps
9
+ # Install git, process tools, lsb-release (common in install instructions for CLIs)
10
+ RUN apt-get update && apt-get -y install git procps lsb-release
11
11
12
12
# *****************************************************
13
13
# * Add steps for installing needed dependencies here *
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " Dev Container Definition Template - Dockerfile" ,
3
- "dockerFile" : " Dockerfile" ,
4
- "appPort" : 3000 ,
5
- "extensions" : [
6
- " mutantdino.resourcemonitor"
2
+ // "See https://aka.ms/vscode-remote/devcontainer.json for format details."
3
+ "name" : " Dev Container Definition Template - Dockerfile" ,
4
+ "dockerFile" : " Dockerfile" ,
5
+ "appPort" : 3000 ,
6
+ "extensions" : [
7
+ " mutantdino.resourcemonitor"
7
8
],
8
- "runArgs" : []
9
+ "runArgs" : []
9
10
}
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " Dev Container Definition Template - Container Image" ,
3
- "image" : " ubuntu:bionic" ,
4
- "appPort" : 3000 ,
5
- "extensions" : [
6
- " mutantdino.resourcemonitor"
2
+ // "See https://aka.ms/vscode-remote/devcontainer.json for format details."
3
+ "name" : " Dev Container Definition Template - Container Image" ,
4
+ "image" : " ubuntu:bionic" ,
5
+ "appPort" : 3000 ,
6
+ "extensions" : [
7
+ " mutantdino.resourcemonitor"
7
8
],
8
- "runArgs" : []
9
+ "runArgs" : []
9
10
}
Original file line number Diff line number Diff line change 1
1
{
2
+ // "See https://aka.ms/vscode-remote/devcontainer.json for format details."
2
3
"name" : " Existing Docker Compose (Extend)" ,
3
4
4
- "// Update the 'dockerComposeFile' list if you have more compose files or use different names." :" " ,
5
- "// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make." :" " ,
6
-
5
+ // "Update the 'dockerComposeFile' list if you have more compose files or use different names."
6
+ // "The .devcontainer/docker-compose.yml file contains any overrides you need/want to make."
7
7
"dockerComposeFile" : [
8
8
" ../docker-compose.yml" ,
9
9
" docker-compose.yml"
10
10
],
11
11
12
- "// The 'service' property is the name of the service for the container that VS Code should" :" " ,
13
- "// use. Update this value and .devcontainer/docker-compose.yml to the real service name." :" " ,
14
-
12
+ // "The 'service' property is the name of the service for the container that VS Code should"
13
+ // "use. Update this value and .devcontainer/docker-compose.yml to the real service name."
15
14
"service" : " your-service-name-here" ,
16
15
17
- "// The optional 'workspaceFolder' property is the path VS Code should open by default when" :" " ,
18
- "// connected. This is typically a file mount in .devcontainer/docker-compose.yml" :" " ,
19
-
16
+ // "The optional 'workspaceFolder' property is the path VS Code should open by default when"
17
+ // "connected. This is typically a file mount in .devcontainer/docker-compose.yml"
20
18
"workspaceFolder" : " /workspace"
21
19
}
Original file line number Diff line number Diff line change 1
1
{
2
+ // "See https://aka.ms/vscode-remote/devcontainer.json for format details."
2
3
"name" : " Existing Dockerfile" ,
3
4
4
- "// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename." :" " ,
5
-
5
+ // "Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename."
6
6
"dockerFile" : " ../Dockerfile" ,
7
7
8
- "// Use the optional 'appPort' property to expose ports not already in your Dockerfile" :" " ,
9
-
8
+ // "Use the optional 'appPort' property to expose ports not already in your Dockerfile"
10
9
"appPort" : [],
11
10
12
- "// The optional 'runArgs' property can be used to specify Docker CLI arguments to use when the container." :" " ,
13
- "// is started. If you install the Docker CE CLI in your container, the runArgs list below will lets you interact" :" " ,
14
- "// with your host's Docker service from inside the container. See the docker-in-docker and docker-in-docker-compose" :" " ,
15
- "// definitions for details." :" " ,
16
-
11
+ // "The optional 'runArgs' property can be used to specify Docker CLI arguments to use when the container."
12
+ // "is started. If you install the Docker CE CLI in your container, the runArgs list below will lets you interact"
13
+ // "with your host's Docker service from inside the container. See the docker-in-docker and docker-in-docker-compose"
14
+ // "definitions for details."
17
15
"runArgs" : [" -v" ," /var/run/docker.sock:/var/run/docker.sock" ]
18
16
}
You can’t perform that action at this time.
0 commit comments