Add comments for options, community definitions (#526)

This commit is contained in:
Chuck Lantz 2020-08-28 18:59:00 -07:00 коммит произвёл GitHub
Родитель 313fe95c4b
Коммит 26246453d1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
51 изменённых файлов: 135 добавлений и 92 удалений

Просмотреть файл

@ -26,6 +26,6 @@
"scriptLibraryFolderNameInDefinition": "library-scripts",
"definitionBuildConfigFile": "definition-manifest.json",
"devContainerJsonPreamble": "For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:\n// ",
"devContainerJsonPreamble": "For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:\n// ",
"dockerFilePreamble": "See here for image contents: "
}

Просмотреть файл

@ -223,6 +223,9 @@ function pushCommand(argv) {
argv.stubRegistryPath, argv.push, argv.prepOnly, argv.skip, argv.page, argv.pageTotal, argv.replaceImages, argv.devcontainer)
.catch((reason) => {
console.error(`(!) Push failed - ${reason}`);
if(reason.stack) {
console.error(` ${reason.stack}`);
}
process.exit(1);
});
}
@ -232,6 +235,9 @@ function packCommand(argv) {
argv.stubRegistry, argv.stubRegistryPath, argv.prepAndPackageOnly, argv.packageOnly, argv.clean, argv.skipPush)
.catch((reason) => {
console.error(`(!) Packaging failed - ${reason}`);
if(reason.stack) {
console.error(` ${reason.stack}`);
}
process.exit(1);
});
}
@ -240,6 +246,9 @@ function updateScriptSourcesCommand(argv) {
prep.updateAllScriptSourcesInRepo(argv.githubRepo, argv.release, argv.updateSha)
.catch((reason) => {
console.error(`(!) Failed to update script sources - ${reason}`);
if(reason.stack) {
console.error(` ${reason.stack}`);
}
process.exit(1);
});
}
@ -248,6 +257,9 @@ function copyLibraryScriptsCommand() {
prep.copyLibraryScriptsForAllDefinitions()
.catch((reason) => {
console.error(`(!) Failed to copy library scripts to definitions - ${reason}`);
if(reason.stack) {
console.error(` ${reason.stack}`);
}
process.exit(1);
});
}
@ -257,6 +269,9 @@ function cgCommand(argv) {
generateComponentGovernanceManifest(argv.githubRepo, argv.release, argv.registry, argv.registryPath, argv.build, argv.prune, argv.devcontainer)
.catch((reason) => {
console.error(`(!) Component governance manifest generation failed - ${reason}`);
if(reason.stack) {
console.error(` ${reason.stack}`);
}
process.exit(1);
});
}
@ -266,12 +281,18 @@ function patchCommand(argv) {
patch.patchAll(argv.registry, argv.registryPath)
.catch((reason) => {
console.error(`(!) Patching failed - ${reason}`);
if(reason.stack) {
console.error(` ${reason.stack}`);
}
process.exit(1);
});
} else {
patch.patch(argv.patchPath, argv.registry, argv.registryPath)
.catch((reason) => {
console.error(`(!) Patching failed - ${reason}`);
if(reason.stack) {
console.error(` ${reason.stack}`);
}
process.exit(1);
});
}

Просмотреть файл

@ -6,7 +6,7 @@
// 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",
"service": "app",
// 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
@ -20,9 +20,6 @@
// Add the IDs of extensions you want installed when the container is created.
"extensions": []
// Uncomment the next line if you want start specific services in your Docker Compose config.
// "runServices": [],
// Uncomment the next line if you want to keep your containers running after VS Code shuts down.
// "shutdownAction": "none",
@ -30,6 +27,5 @@
// "postCreateCommand": "uname -a",
// Uncomment the next line to connect as a non-root user.
// See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode"
}

Просмотреть файл

@ -1,10 +1,7 @@
version: '3'
services:
your-service-name-here:
# Uncomment the next line to use a non-root user for all processes.
# See https://aka.ms/vscode-remote/containers/non-root for details.
# user: vscode
services:
app:
# Using a Dockerfile is optional, but included for completeness.
build:
context: .
@ -13,13 +10,14 @@ services:
args:
VARIANT: buster
# Uncomment to expose one or more ports
# ports:
# - "3000:3000"
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
# Uncomment the next line to use a non-root user for all processes - See https://aka.ms/vscode-remote/containers/non-root for details.
# user: vscode
volumes:
# This is where VS Code should expect to find your project's source code
# and the value of "workspaceFolder" in .devcontainer/devcontainer.json
# This is where VS Code should expect to find your project's source code and the value of "workspaceFolder" in .devcontainer/devcontainer.json
- ..:/workspace:cached
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker-compose for details.
@ -34,3 +32,11 @@ services:
# Overrides default command so things don't shut down after the process ends.
command: /bin/sh -c "while sleep 1000; do :; done"
# You can include other services not opened by VS Code as well
another-service:
image: debian:latest
restart: unless-stopped
# This causes the service to run on the same network as the app container, allows "forwardPorts" in devcontainer.json function.
network_mode: service:your-service-name-here

Просмотреть файл

@ -27,6 +27,14 @@ args:
VARIANT: buster
```
### Adding another service
You can add other services to your `docker-compose.yml` file [as described in Docker's documentaiton](https://docs.docker.com/compose/compose-file/#service-configuration-reference). However, if you want anything running in this service to be available in the container on localhost, or want to forward the service locally, be sure to add this line to the service config:
```yaml
# Runs the service on the same network as the app container, allows "forwardPorts" in devcontainer.json function.
network_mode: service:app
### Adding the definition to your project
1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started) to set up your machine.

Просмотреть файл

@ -17,9 +17,11 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# Install Ansible
RUN pip3 install ansible[azure]
# Optional installs. Use a separate RUN statement to add your own dependencies.
# [Option] Install Azure CLI
ARG INSTALL_AZURE_CLI="true"
# [Option] Install Docker CLI
ARG INSTALL_DOCKER="true"
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="lts/*"
ENV NVM_DIR=/usr/local/share/nvm

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Azure Ansible",
"name": "Azure Ansible (Community)",
"build": {
"dockerfile": "Dockerfile",
"args": {

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Azure Blockchain",
"name": "Azure Blockchain (Community)",
"dockerFile": "Dockerfile",
// Set *default* container specific settings.json values on container create.

Просмотреть файл

@ -14,9 +14,11 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y graphviz \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
# Optional installs. Use a separate RUN statement to add your own dependencies.
# [Option] Install Azure CLI
ARG INSTALL_AZURE_CLI="true"
# [Option] Install Docker CLI
ARG INSTALL_DOCKER="true"
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="lts/*"
ENV NVM_DIR=/usr/local/share/nvm

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Azure Terraform",
"name": "Azure Terraform (Community)",
"build": {
"dockerfile": "Dockerfile",
"args": {

Просмотреть файл

@ -1,24 +1,24 @@
{
"name": "Bash",
"name": "Bash (Community)",
"dockerfile": "Dockerfile",
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"mads-hartmann.bash-ide-vscode",
"rogalmic.bash-debug"
],
// 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": "uname -a",
// Uncomment to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker.
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
"dockerFile": "Dockerfile"
"remoteUser": "vscode"
}

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Bazel",
"name": "Bazel (Community)",
"build": {
"dockerfile": "Dockerfile",
"args": {

Просмотреть файл

@ -1,7 +1,8 @@
FROM mcr.microsoft.com/vscode/devcontainers/universal:linux
# [Optional] Install Docker
USER root
# [Option] Install Docker CLI
ARG INSTALL_DOCKER="false"
COPY library-scripts/docker-debian.sh /tmp/library-scripts/
RUN if [ "${INSTALL_DOCKER}" = "true" ]; then \
@ -10,6 +11,7 @@ RUN if [ "${INSTALL_DOCKER}" = "true" ]; then \
echo '#!/bin/bash\nexec "$@"' > /usr/local/share/docker-init.sh && chmod +x /usr/local/share/docker-init.sh; \
fi \
&& rm -rf /var/lib/apt/lists/* /tmp/library-scripts/
USER codespace
# ** [Optional] Uncomment this section to install additional packages. **

Просмотреть файл

@ -86,7 +86,7 @@ ENV CARGO_HOME="/usr/local/cargo" \
RUSTUP_HOME="/usr/local/rustup"
ENV PATH="${CARGO_HOME}/bin:${PATH}"
COPY library-scripts/rust-debian.sh /tmp/scripts/
RUN bash /tmp/scripts/rust-debian.sh "${CARGO_HOME}" "${RUSTUP_HOME}" "${USERNAME}" "false" \
RUN bash /tmp/scripts/rust-debian.sh "${CARGO_HOME}" "${RUSTUP_HOME}" "${USERNAME}" "true" \
&& apt-get clean -y && rm -rf /tmp/scripts
# Install Go
@ -109,7 +109,7 @@ ENV PIPX_HOME="/usr/local/py-utils" \
PIPX_BIN_DIR="/usr/local/py-utils/bin"
ENV PATH="${PATH}:${PIPX_BIN_DIR}"
COPY library-scripts/python-debian.sh /tmp/scripts/
RUN bash /tmp/scripts/python-debian.sh "stable" "/opt/python/stable" "${PIPX_HOME}" "${USERNAME}" "false" \
RUN bash /tmp/scripts/python-debian.sh "stable" "/opt/python/stable" "${PIPX_HOME}" "${USERNAME}" "true" \
&& apt-get clean -y && rm -rf /tmp/scripts
# Install xdebug, link composer
@ -121,7 +121,7 @@ RUN yes | pecl install xdebug \
&& rm -rf /tmp/pear \
&& ln -s $(which composer.phar) /usr/local/bin/composer
# [Optional] Install Docker - Not in resulting image by default
# [Option] Install Docker CLI
ARG INSTALL_DOCKER="false"
COPY library-scripts/docker-debian.sh /tmp/scripts/
RUN if [ "${INSTALL_DOCKER}" = "true" ]; then \

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Codespaces",
"name": "GitHub Codespaces (Default)",
"build": {
"dockerfile": "Dockerfile",
"args": {

Просмотреть файл

@ -58,5 +58,5 @@ fi
# Install gradle
su ${USERNAME} -c "source ${SDKMAN_DIR}/bin/sdkman-init.sh && sdk install gradle ${GRADLE_VERSION} && sdk flush archives && sdk flush temp"
updaterc "export GRADLER_USER_HOME=\${HOME}/.gradle"
updaterc "export GRADLE_USER_HOME=\${HOME}/.gradle"
echo "Done!"

Просмотреть файл

@ -1,12 +1,12 @@
# Visual Studio Codespaces (Linux Universal)
# GitHub Codespaces (Default Linux Universal)
## Summary
*Use or extend the large, universal, multi-language development container for Visual Studio Codespaces.*
*Use or extend the default large, multi-language "universal" container for GitHub Codespaces.*
| Metadata | Value |
|----------|-------|
| *Contributors* | The VS / GitHub Codespaces and VS Code teams |
| *Contributors* | The GitHub Codespaces and VS Code teams |
| *Definition type* | Dockerfile |
| *Published image* | mcr.microsoft.com/vscode/devcontainers/universal:linux |
| *Published image architecture(s)* | x86-64 |
@ -16,9 +16,9 @@
## Description
While language specific development containers can be useful, in some cases you may want to use more than one in a project without having to set them all up. In other cases you may be looking to create a general "sandbox" container you intend to use with multiple projects or repositories. The large container image generated here (`mcr.microsoft.com/vscode/devcontainers/universal:linux`) includes a number of runtime versions for popular languages lke Python, Node, PHP, Java, Go, C++, and .NET Core/C# - many of which are [inherited from the Oryx build image](https://github.com/microsoft/oryx#supported-platforms) it is based on.
While language specific development containers can be useful, in some cases you may want to use more than one in a project without having to set them all up. In other cases you may be looking to create a general "sandbox" container you intend to use with multiple projects or repositories. The large container image generated here (`mcr.microsoft.com/vscode/devcontainers/universal:linux`) includes a number of runtime versions for popular languages lke Python, Node, PHP, Java, Go, C++, Ruby, Go, Rust and .NET Core/C# - many of which are [inherited from the Oryx build image](https://github.com/microsoft/oryx#supported-platforms) it is based on.
If you use Visual Studio Codespaces or GitHub Codespaces, this is the "universal" image that is used by default if no custom Dockerfile or image is specified. If you like what you see but want to make a few additions or changes, you can use a custom Dockerfile to extend it and add whatever you need.
If you use GitHub Codespaces, this is the "universal" image that is used by default if no custom Dockerfile or image is specified. If you like what you see but want to make a few additions or changes, you can use a custom Dockerfile to extend it and add whatever you need.
The container includes the `zsh` (and Oh My Zsh!) and `fish` shells that you can opt into using instead of the default `bash`. It also includes [nvm](https://github.com/nvm-sh/nvm) and [nvs](https://github.com/jasongin/nvs) if you need to install a different version of Node.js than those that are in the container by default.
@ -26,7 +26,7 @@ The container includes the `zsh` (and Oh My Zsh!) and `fish` shells that you can
While the definition itself works unmodified, you can also directly reference pre-built versions of `.devcontainer/Dockerfile` by using the `image` property in `.devcontainer/devcontainer.json` or updating the `FROM` statement in your own `Dockerfile` to:
` mcr.microsoft.com/vscode/devcontainers/universal:linux`
`mcr.microsoft.com/vscode/devcontainers/universal:linux`
Alternatively, you can use the contents of the `Dockerfile` to fully customize your container's contents or to build it for a container host architecture not supported by the image.

Просмотреть файл

@ -13,7 +13,7 @@ ENV NVM_DIR=/home/vscode/.nvm
ENV NVM_SYMLINK_CURRENT=true
ENV PATH=${NVM_DIR}/current/bin:${PATH}
# [Optional] Install the Azure CLI
# [Optional] Install Azure CLI
ARG INSTALL_AZURE_CLI="false"
# Docker Compose version
@ -71,7 +71,7 @@ RUN apt-get update \
&& apt-get -y install --no-install-recommends yarn; \
fi \
#
# [Optional] Install the Azure CLI
# [Optional] Install Azure CLI
&& if [ "$INSTALL_AZURE_CLI" = "true" ]; then \
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 \

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Dapr with C# (.NET Core 3.1)",
"name": "Dapr with C# (Community)",
"dockerComposeFile": "docker-compose.yml",
"service": "docker-from-docker",
"workspaceFolder": "/workspace",

Просмотреть файл

@ -47,17 +47,21 @@ Only the integrated terminal is supported by the Remote - Containers extension.
### Installing Node.js or the Azure CLI
Given how frequently ASP.NET applications use Node.js for front end code, this container also includes Node.js. You can change the version of Node.js installed or disable its installation by updating these lines in `.devcontainer/Dockerfile`.
Given how frequently ASP.NET applications use Node.js for front end code, this container also includes Node.js. You can change the version of Node.js installed or disable its installation by updating these lines in `.devcontainer/docker-compose.yml`.
```Dockerfile
ARG INSTALL_NODE="true"
ARG NODE_VERSION="10"
```yaml
arg:
INSTALL_NODE: "true"
ARG NODE_VERSION: "10"
```
If you would like to install the Azure CLI update this line in `.devcontainer/Dockerfile`:
If you would like to install the Azure CLI update this line in `.devcontainer/docker-compose.yml`:
```Dockerfile
ARG INSTALL_AZURE_CLI="true"
```yaml
arg:
INSTALL_AZURE_CLI: "true"
INSTALL_NODE: "true"
ARG NODE_VERSION: "10"
```
If you've already opened your folder in a container, rebuild the container using the **Remote-Containers: Rebuild Container** command from the Command Palette (<kbd>F1</kbd>) so the settings take effect.

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Dapr with Node.js 12 & TypeScript",
"name": "Dapr with Node.js & TypeScript (Community)",
"dockerComposeFile": "docker-compose.yml",
"service": "docker-from-docker",
"workspaceFolder": "/workspace",

Просмотреть файл

@ -12,7 +12,7 @@ ARG USER_GID=$USER_UID
# Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies.
COPY library-scripts/*.sh /tmp/library-scripts/
RUN bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \

Просмотреть файл

@ -1,12 +1,12 @@
ARG VARIANT=3.1
FROM mcr.microsoft.com/vscode/devcontainers/dotnetcore:dev-${VARIANT}
# [Optional] Install a version of Node.js using nvm for front end dev
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="lts/*"
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
# [Optional] Install the Azure CLI - update the INSTALL_AZURE_CLI arg in devcontainer.json to enable.
# [Option] Install Azure CLI
ARG INSTALL_AZURE_CLI="false"
COPY library-scripts/azcli-debian.sh /tmp/library-scripts/
RUN if [ "$INSTALL_AZURE_CLI" = "true" ]; then bash /tmp/library-scripts/azcli-debian.sh; fi \

Просмотреть файл

@ -100,7 +100,7 @@ Given how frequently ASP.NET applications use Node.js for front end code, this c
```json
"args": {
"VARIANT": "3.1-bionic",
"VARIANT": "3.1",
"INSTALL_NODE": "true",
"NODE_VERSION": "10",
}
@ -110,7 +110,7 @@ If you would like to install the Azure CLI update you can set the `INSTALL_AZURE
```Dockerfile
"args": {
"VARIANT": "3.1-bionic",
"VARIANT": "3.1",
"INSTALL_NODE": "true",
"NODE_VERSION": "10",
"INSTALL_AZURE_CLI": "true"

Просмотреть файл

@ -1,12 +1,12 @@
ARG VARIANT=3.1
FROM mcr.microsoft.com/vscode/devcontainers/dotnetcore:${VARIANT}
# [Optional] Install a version of Node.js using nvm for front end dev
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="lts/*"
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
# [Optional] Install the Azure CLI - update the INSTALL_AZURE_CLI arg in devcontainer.json to enable.
# [Option] Install Azure CLI
ARG INSTALL_AZURE_CLI="false"
COPY library-scripts/azcli-debian.sh /tmp/library-scripts/
RUN if [ "$INSTALL_AZURE_CLI" = "true" ]; then bash /tmp/library-scripts/azcli-debian.sh; fi \

Просмотреть файл

@ -14,7 +14,7 @@ COPY library-scripts/common-debian.sh /tmp/library-scripts/
RUN bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
# [Optional] Install Node.js for use with web applications - update the INSTALL_NODE arg in devcontainer.json to enable.
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="none"
ENV NVM_DIR=/usr/local/share/nvm
@ -24,7 +24,7 @@ COPY library-scripts/node-debian.sh /tmp/library-scripts/
RUN if [ "$INSTALL_NODE" = "true" ]; then bash /tmp/library-scripts/node-debian.sh "${NVM_DIR}" "${NODE_VERSION}" "${USERNAME}"; fi \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
# [Optional] Install the Azure CLI - update the INSTALL_AZURE_CLI arg in devcontainer.json to enable.
# [Option] Install Azure CLI
ARG INSTALL_AZURE_CLI="false"
COPY library-scripts/azcli-debian.sh /tmp/library-scripts/
RUN if [ "$INSTALL_AZURE_CLI" = "true" ]; then bash /tmp/library-scripts/azcli-debian.sh; fi \

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Elm",
"name": "Elm (Community)",
"dockerFile": "Dockerfile",
// Set *default* container specific settings.json values on container create.

Просмотреть файл

@ -1,7 +1,7 @@
ARG VARIANT=1
FROM mcr.microsoft.com/vscode/devcontainers/go:${VARIANT}
# [Optional] Install a version of Node.js using nvm for front end dev
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="lts/*"
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

Просмотреть файл

@ -56,7 +56,7 @@ RUN mkdir -p /tmp/gotools \
ENV GO111MODULE=auto
# [Optional] Install Node.js - update the INSTALL_NODE arg in devcontainer.json to enable.
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="none"
ENV NVM_DIR=/usr/local/share/nvm

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Hugo",
"name": "Hugo (Community)",
"build": {
"dockerfile": "Dockerfile",
"args": {

Просмотреть файл

@ -1,14 +1,15 @@
FROM mcr.microsoft.com/vscode/devcontainers/java:dev-8
# [Optional] Install Maven or Gradle - version of "" installs latest
# [Option] Install Maven
ARG INSTALL_MAVEN="false"
ARG MAVEN_VERSION=""
# [Option] Install Gradle
ARG INSTALL_GRADLE="false"
ARG GRADLE_VERSION=""
RUN if [ "${INSTALL_MAVEN}" = "true" ]; then su vscode -c "source /usr/local/sdkman/bin/sdkman-init.sh && sdk install maven \"${MAVEN_VERSION}\""; fi \
&& if [ "${INSTALL_GRADLE}" = "true" ]; then su vscode -c "source /usr/local/sdkman/bin/sdkman-init.sh && sdk install gradle \"${GRADLE_VERSION}\""; fi
# [Optional] Install a version of Node.js using nvm for front end dev
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="lts/*"
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

Просмотреть файл

@ -1,4 +1,4 @@
# Java
# Java 8
## Summary

Просмотреть файл

@ -1,15 +1,16 @@
ARG VARIANT=11
FROM mcr.microsoft.com/vscode/devcontainers/java:${VARIANT}
# [Optional] Install Maven or Gradle - version of "" installs latest
# [Option] Install Maven
ARG INSTALL_MAVEN="false"
ARG MAVEN_VERSION=""
# [Option] Install Gradle
ARG INSTALL_GRADLE="false"
ARG GRADLE_VERSION=""
RUN if [ "${INSTALL_MAVEN}" = "true" ]; then su vscode -c "source /usr/local/sdkman/bin/sdkman-init.sh && sdk install maven \"${MAVEN_VERSION}\""; fi \
&& if [ "${INSTALL_GRADLE}" = "true" ]; then su vscode -c "source /usr/local/sdkman/bin/sdkman-init.sh && sdk install gradle \"${GRADLE_VERSION}\""; fi
# [Optional] Install a version of Node.js using nvm for front end dev
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="lts/*"
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

Просмотреть файл

@ -13,9 +13,10 @@ RUN bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "$
&& if [ ! -d "/docker-java-home" ]; then ln -s "${JAVA_HOME}" /docker-java-home; fi \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
# Install SDKMAN and optionally Maven and Gradle - version of "" installs latest
# [Option] Install Maven
ARG INSTALL_MAVEN="false"
ARG MAVEN_VERSION=""
# [Option] Install Gradle
ARG INSTALL_GRADLE="false"
ARG GRADLE_VERSION=""
ENV SDKMAN_DIR="/usr/local/sdkman"
@ -26,7 +27,7 @@ RUN bash /tmp/library-scripts/java-debian.sh "none" "${SDKMAN_DIR}" "${USERNAME}
&& if [ "${INSTALL_GRADLE}" = "true" ]; then bash /tmp/library-scripts/gradle-debian.sh "${GRADLE_VERSION:-latest}" "${SDKMAN_DIR}" ${USERNAME} "true"; fi \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
# [Optional] Install Node.js for use with web applications - update the INSTALL_NODE arg in devcontainer.json to enable.
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="none"
ENV NVM_DIR=/usr/local/share/nvm

Просмотреть файл

@ -11,7 +11,7 @@ ENV LANG=en_US.UTF-8 \
# Install jekyll
RUN gem install bundler jekyll
# Install a version of Node.js using nvm for dynamic front end content
# [Option] Install Node.js
ARG NODE_VERSION="lts/*"
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Jekyll",
"name": "Jekyll (Community)",
"build": {
"dockerfile": "Dockerfile",
"args": {

Просмотреть файл

@ -8,7 +8,7 @@
|----------|-------|
| *Contributors* | The VS Code team and Phetsinorath William |
| *Definition type* | Dockerfile |
| *Works in Codespaces* | Yes |
| *Works in Codespaces* | No |
| *Container host OS support* | Linux, macOS, Windows |
| *Languages, platforms* | Any |

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Perl",
"name": "Perl (Community)",
"build": {
"dockerfile": "Dockerfile",
// Update VARIANT to pick a Perl version

Просмотреть файл

@ -1,7 +1,7 @@
ARG VARIANT=7
FROM mcr.microsoft.com/vscode/devcontainers/php:${VARIANT}
# [Optional] Install a version of Node.js using nvm for front end dev
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="lts/*"
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

Просмотреть файл

@ -26,7 +26,7 @@ RUN curl -sSL https://getcomposer.org/installer | php \
&& chmod +x composer.phar \
&& mv composer.phar /usr/local/bin/composer
# [Optional] Install Node.js for use with web applications - update the INSTALL_NODE arg in devcontainer.json to enable.
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="none"
ENV NVM_DIR=/usr/local/share/nvm

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Puppet Development Kit - Dockerfile",
"name": "Puppet Development Kit (Community)",
"dockerFile": "Dockerfile",
// Set *default* container specific settings.json values on container create.

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Python 3 & Device Simulator Express",
"name": "Python 3 & Device Simulator Express (Community)",
"build": {
"dockerfile": "Dockerfile",
"context": "..",

Просмотреть файл

@ -1,7 +1,7 @@
ARG VARIANT=3
FROM mcr.microsoft.com/vscode/devcontainers/python:${VARIANT}
# [Optional] Install a version of Node.js using nvm for front end dev
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="lts/*"
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

Просмотреть файл

@ -40,7 +40,7 @@ RUN mkdir -p ${PIPX_BIN_DIR} \
&& chown -R ${USER_UID}:${USER_GID} ${PIPX_HOME} \
&& rm -rf /tmp/pip-tmp
# [Optional] Install Node.js for use with web applications - update the INSTALL_NODE arg in devcontainer.json to enable.
# [Option] Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="none"
ENV NVM_DIR=/usr/local/share/nvm

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "R",
"name": "R (Community)",
"build": {
"dockerfile": "Dockerfile",
},

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "ReasonML",
"name": "ReasonML (Community)",
"dockerFile": "Dockerfile",
// Set *default* container specific settings.json values on container create.

Просмотреть файл

@ -4,7 +4,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/ruby:${VARIANT}
# Install Rails
RUN gem install rails webdrivers
# Install a version of Node.js using nvm for dynamic front end content
# [Option] Install Node.js
ARG NODE_VERSION="lts/*"
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"

Просмотреть файл

@ -4,7 +4,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/ruby:${VARIANT}
# Install Sinatra
RUN gem install sinatra sinatra-reloader thin data_mapper dm-sqlite-adapter
# Install a version of Node.js using nvm for dynamic front end content
# [Option] Install Node.js
ARG NODE_VERSION="lts/*"
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"

Просмотреть файл

@ -1,5 +1,5 @@
{
"name": "Salesforce Project",
"name": "Salesforce Project (Community)",
"dockerFile": "Dockerfile",
"extensions": [
"salesforce.salesforcedx-vscode",

Просмотреть файл

@ -22,7 +22,7 @@ RUN git clone https://github.com/vknabel/sourcekite \
&& ln -s /usr/lib/libsourcekitdInProc.so /usr/lib/sourcekitdInProc \
&& cd sourcekite && make install PREFIX=/usr/local -j2
# [Optional] Install Node.js for use with web applications - update the INSTALL_NODE arg in devcontainer.json to enable.
# [Option] Install Node.js
ARG INSTALL_NODE="false"
ARG NODE_VERSION="lts/*"
ENV NVM_DIR=/usr/local/share/nvm

Просмотреть файл

@ -1,10 +1,9 @@
{
"name": "Vue",
"name": "Vue (Community)",
"build": {
"dockerfile": "Dockerfile",
"context": "..",
// Update 'VARIANT' to pick a Node version. Rebuild the container
// if it already exists to update. Available variants: 10, 12, 14
// Update 'VARIANT' to pick a Node version: 10, 12, 14
"args": { "VARIANT": "14" }
},