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.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
80 changed files
with
743 additions
and
283 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[*.json] | ||
indent_style = tab | ||
|
||
[Dockerfile] | ||
indent_style = spaces | ||
indent_size = 4 | ||
|
||
[*.{yml,yaml}] | ||
indent_style = spaces | ||
indent_size = 2 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* text=auto eol=lf | ||
*.{cmd,[cC][mM][dD]} text eol=crlf | ||
*.{bat,[bB][aA][tT]} text eol=crlf |
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
32 changes: 23 additions & 9 deletions
32
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,25 @@ | ||
{ | ||
// "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" | ||
] | ||
// 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", | ||
|
||
// 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", | ||
|
||
// Add any extensions you want auto-installed here. | ||
"extensions": [], | ||
|
||
// Update the value of this line to 'none' if you want to keep your containers running after VS Code shuts down. | ||
"shutdownAction": "stopCompose", | ||
|
||
// Uncomment the next line to run commands after the container is created. | ||
// "postCreateCommand": ["uname -a"] | ||
|
||
} |
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: 24 additions & 8 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,26 @@ | ||
{ | ||
// "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 publish any ports you want to access. | ||
"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 want to use Docker from the container. See the docker-in-docker definition for details. | ||
// "-v","/var/run/docker.sock:/var/run/docker.sock", | ||
|
||
// Uncomment the next two lines if you will use a ptrace-based debugger like C++, Go, and Rust | ||
// "--cap-add=SYS_PTRACE", | ||
// "--security-opt", "seccomp=unconfined" | ||
], | ||
|
||
// Uncomment the next line to run commands after the container is created. | ||
// "postCreateCommand": ["uname -a"] | ||
} |
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,26 @@ | ||
{ | ||
// "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": [] | ||
// 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", | ||
|
||
// Use the optional 'appPort' property to publish any ports you want to access. | ||
"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 want to use Docker from the container. See the docker-in-docker definition for details. | ||
// "-v","/var/run/docker.sock:/var/run/docker.sock", | ||
|
||
// Uncomment the next two lines if you will use a ptrace-based debugger like C++, Go, and Rust. | ||
// "--cap-add=SYS_PTRACE", | ||
// "--security-opt", "seccomp=unconfined" | ||
], | ||
|
||
// Uncomment the next line to run commands after the container is created. | ||
// "postCreateCommand": ["uname -a"] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#------------------------------------------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. | ||
#------------------------------------------------------------------------------------------------------------- | ||
|
||
# Pick any base image, but if you select node, skip installing node. 😊 | ||
FROM debian:9 | ||
|
||
# Configure apt | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update \ | ||
&& apt-get -y install --no-install-recommends apt-utils 2>&1 | ||
|
||
# Install git, required tools | ||
RUN apt-get install -y \ | ||
git \ | ||
curl \ | ||
procps \ | ||
unzip \ | ||
apt-transport-https \ | ||
ca-certificates \ | ||
gnupg-agent \ | ||
software-properties-common \ | ||
lsb-release 2>&1 | ||
|
||
# [Optional] Install Node.js for Azure Cloud Shell support | ||
# Change the "lts/*" in the two lines below to pick a different version | ||
RUN curl -so- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash 2>&1 \ | ||
&& /bin/bash -c "source $HOME/.nvm/nvm.sh \ | ||
&& nvm install lts/* \ | ||
&& nvm alias default lts/*" 2>&1 | ||
|
||
# [Optional] For local testing instead of cloud shell | ||
# Install Docker CE CLI. | ||
RUN curl -fsSL https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/gpg | apt-key add - 2>/dev/null \ | ||
&& 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 | ||
|
||
# [Optional] For local testing instead of cloud shell | ||
# Install the Azure CLI | ||
RUN echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \ | ||
&& curl -sL https://packages.microsoft.com/keys/microsoft.asc | apt-key add - 2>/dev/null \ | ||
&& apt-get update \ | ||
&& apt-get install -y azure-cli | ||
|
||
# Install Ansible | ||
RUN apt-get install -y libssl-dev libffi-dev python-dev python-pip \ | ||
&& pip install ansible[azure] | ||
|
||
# Clean up | ||
RUN apt-get autoremove -y \ | ||
&& apt-get clean -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
ENV DEBIAN_FRONTEND=dialog |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "Azure Ansible", | ||
"dockerFile": "Dockerfile", | ||
"extensions": [ | ||
"vscoss.vscode-ansible", | ||
"redhat.vscode-yaml", | ||
"ms-vscode.azurecli" | ||
], | ||
"runArgs": [ | ||
"-v", | ||
"/var/run/docker.sock:/var/run/docker.sock" | ||
], | ||
// Uncomment the next line if you want to publish any ports. | ||
// "appPort": [], | ||
// Uncomment the next line to run commands after the container is created. | ||
// "postCreateCommand": "ansible --version" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
README.md | ||
test-project | ||
.vscode | ||
.npmignore |
Oops, something went wrong.