Switched templates to use comments given jsonc support
This commit is contained in:
Родитель
1f7120786d
Коммит
0c9e7ccc2f
|
@ -8,18 +8,16 @@ FROM debian:9
|
|||
|
||||
# Install git
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y git
|
||||
&& apt-get install -y git procps lsb-release
|
||||
|
||||
# Install Docker CE CLI
|
||||
RUN apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common \
|
||||
RUN apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common lsb-release \
|
||||
&& curl -fsSL https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/gpg | apt-key add - \
|
||||
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable" \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y docker-ce-cli
|
||||
|
||||
|
||||
# Clean up
|
||||
RUN apt-get autoremove -y \
|
||||
&& apt-get clean -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
&& rm -rf /var/lib/apt/lists/*
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
// "See https://aka.ms/vscode-remote/devcontainer.json for format details."
|
||||
"name": "Dev Container Editing",
|
||||
"dockerFile": "Dockerfile",
|
||||
"extensions": [
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
# Debian and Ubuntu based images are supported. Alpine images are not yet supported.
|
||||
FROM debian:9
|
||||
|
||||
# Install git, process tools
|
||||
RUN apt-get update && apt-get -y install git procps
|
||||
# Install git, process tools, lsb-release (common in install instructions for CLIs)
|
||||
RUN apt-get update && apt-get -y install git procps lsb-release
|
||||
|
||||
# *****************************************************
|
||||
# * Add steps for installing needed dependencies here *
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
{
|
||||
"name": "Dev Container Definition Template - Docker Compose",
|
||||
// "See https://aka.ms/vscode-remote/devcontainer.json for format details."
|
||||
"name": "Dev Container Definition Template - Docker Compose",
|
||||
"dockerComposeFile": "docker-compose.yml",
|
||||
"service": "your-service-name-here",
|
||||
"workspaceFolder": "/workspace",
|
||||
"shutdownAction": "stopCompose",
|
||||
"extensions": [
|
||||
"mutantdino.resourcemonitor"
|
||||
"extensions": [
|
||||
"mutantdino.resourcemonitor"
|
||||
]
|
||||
}
|
|
@ -6,8 +6,8 @@
|
|||
# Debian and Ubuntu based images are supported. Alpine images are not yet supported.
|
||||
FROM debian:9
|
||||
|
||||
# Install git, process tools
|
||||
RUN apt-get update && apt-get -y install git procps
|
||||
# Install git, process tools, lsb-release (common in install instructions for CLIs)
|
||||
RUN apt-get update && apt-get -y install git procps lsb-release
|
||||
|
||||
# *****************************************************
|
||||
# * Add steps for installing needed dependencies here *
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
{
|
||||
"name": "Dev Container Definition Template - Dockerfile",
|
||||
"dockerFile": "Dockerfile",
|
||||
"appPort": 3000,
|
||||
"extensions": [
|
||||
"mutantdino.resourcemonitor"
|
||||
// "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": []
|
||||
"runArgs": []
|
||||
}
|
|
@ -1,9 +1,10 @@
|
|||
{
|
||||
"name": "Dev Container Definition Template - Container Image",
|
||||
"image": "ubuntu:bionic",
|
||||
"appPort": 3000,
|
||||
"extensions": [
|
||||
"mutantdino.resourcemonitor"
|
||||
// "See https://aka.ms/vscode-remote/devcontainer.json for format details."
|
||||
"name": "Dev Container Definition Template - Container Image",
|
||||
"image": "ubuntu:bionic",
|
||||
"appPort": 3000,
|
||||
"extensions": [
|
||||
"mutantdino.resourcemonitor"
|
||||
],
|
||||
"runArgs": []
|
||||
"runArgs": []
|
||||
}
|
|
@ -1,21 +1,19 @@
|
|||
{
|
||||
// "See https://aka.ms/vscode-remote/devcontainer.json for format details."
|
||||
"name": "Existing Docker Compose (Extend)",
|
||||
|
||||
"// Update the 'dockerComposeFile' list if you have more compose files or use different names.":"",
|
||||
"// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.":"",
|
||||
|
||||
// "Update the 'dockerComposeFile' list if you have more compose files or use different names."
|
||||
// "The .devcontainer/docker-compose.yml file contains any overrides you need/want to make."
|
||||
"dockerComposeFile": [
|
||||
"../docker-compose.yml",
|
||||
"docker-compose.yml"
|
||||
],
|
||||
|
||||
"// 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.":"",
|
||||
|
||||
// "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 file mount in .devcontainer/docker-compose.yml":"",
|
||||
|
||||
// "The optional 'workspaceFolder' property is the path VS Code should open by default when"
|
||||
// "connected. This is typically a file mount in .devcontainer/docker-compose.yml"
|
||||
"workspaceFolder": "/workspace"
|
||||
}
|
||||
|
|
|
@ -1,18 +1,16 @@
|
|||
{
|
||||
// "See https://aka.ms/vscode-remote/devcontainer.json for format details."
|
||||
"name": "Existing Dockerfile",
|
||||
|
||||
"// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.":"",
|
||||
|
||||
// "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": [],
|
||||
|
||||
"// 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-compose":"",
|
||||
"// definitions for details.":"",
|
||||
|
||||
// "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-compose"
|
||||
// "definitions for details."
|
||||
"runArgs": ["-v","/var/run/docker.sock:/var/run/docker.sock"]
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче