diff --git a/container-templates/docker-compose/.devcontainer/Dockerfile b/container-templates/docker-compose/.devcontainer/Dockerfile index fdb56b6beb..7404669802 100644 --- a/container-templates/docker-compose/.devcontainer/Dockerfile +++ b/container-templates/docker-compose/.devcontainer/Dockerfile @@ -11,8 +11,13 @@ # Debian and Ubuntu based images are supported. Alpine images are not yet supported. 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, process tools, lsb-release (common in install instructions for CLIs) -RUN apt-get update && apt-get -y install git procps lsb-release +RUN apt-get -y install git procps lsb-release # ***************************************************** # * Add steps for installing needed dependencies here * @@ -22,4 +27,5 @@ RUN apt-get update && apt-get -y install git procps lsb-release RUN apt-get autoremove -y \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* +ENV DEBIAN_FRONTEND=dialog diff --git a/container-templates/dockerfile/.devcontainer/Dockerfile b/container-templates/dockerfile/.devcontainer/Dockerfile index 23cf3faa90..f6fe8d71e4 100644 --- a/container-templates/dockerfile/.devcontainer/Dockerfile +++ b/container-templates/dockerfile/.devcontainer/Dockerfile @@ -6,8 +6,13 @@ # Debian and Ubuntu based images are supported. Alpine images are not yet supported. 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, process tools, lsb-release (common in install instructions for CLIs) -RUN apt-get update && apt-get -y install git procps lsb-release +RUN apt-get -y install git procps lsb-release # ***************************************************** # * Add steps for installing needed dependencies here * @@ -17,4 +22,4 @@ RUN apt-get update && apt-get -y install git procps lsb-release RUN apt-get autoremove -y \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* - +ENV DEBIAN_FRONTEND=dialog diff --git a/containers/azure-cli/.devcontainer/Dockerfile b/containers/azure-cli/.devcontainer/Dockerfile index bb3dc58a3f..bc85d74bb3 100644 --- a/containers/azure-cli/.devcontainer/Dockerfile +++ b/containers/azure-cli/.devcontainer/Dockerfile @@ -5,13 +5,18 @@ 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, process tools -RUN apt-get update && apt-get -y install git procps +RUN apt-get -y install git procps # Install the Azure CLI RUN apt-get install -y apt-transport-https curl gnupg2 lsb-release \ && echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \ - && curl -L https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ + && curl -sL https://packages.microsoft.com/keys/microsoft.asc | apt-key add - 2>/dev/null \ && apt-get update \ && apt-get install -y azure-cli @@ -19,4 +24,6 @@ RUN apt-get install -y apt-transport-https curl gnupg2 lsb-release \ RUN apt-get autoremove -y \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* +ENV DEBIAN_FRONTEND=dialog + diff --git a/containers/azure-cli/README.md b/containers/azure-cli/README.md index 49d064c5fe..0f96cab892 100644 --- a/containers/azure-cli/README.md +++ b/containers/azure-cli/README.md @@ -10,16 +10,40 @@ | *Definition type* | Dockerfile | | *Languages, platforms* | Any | -## Usage +## Using this definition with an existing folder -[See here for information on using this definition with an existing project](../../README.md#using-a-definition). +This definition requires an Azure subscription to use. You can create a [free account here](https://azure.microsoft.com/en-us/free/). Once you have an Azure account, follow these steps: -If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own 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. -If you want to try out the test project instead, open a cloned copy of this entire folder **Remote-Container: Open Folder in Container...** in VS Code and select a cloned copy of the entire folder and use the content in `test-project` to try things out. +2. To use VS Code's copy of this definition: + 1. Start VS Code and open your project folder. + 2. Press F1 select and **Remote-Containers: Create Container Configuration File...** from the command palette. + 3. Select the Azure CLI definition. + +3. To use latest-and-greatest copy of this definition from the repository: + 1. Clone this repository. + 2. Copy the contents of `containers/azure-cli/.devcontainer` to the root of your project folder. + 3. Start VS Code and open your project folder. + +4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs. + +5. Finally, press F1 and run **Remote-Containers: Reopen Folder in Container** to start using the definition. + +## Testing the definition + +This definition includes some test code that will help you verify it is working as expected on your system. Follow these steps: + +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. +2. Clone this repository. +3. Start VS Code, press F1, and select **Remote-Containers: Open Folder in Container...** +4. Select the `containers/azure-cli` folder. +5. After the folder has opened in the container, press ctrl+shift+` to start a new terminal. +6. Open `test-project/scripting.azcli` +7. Right click on one of the lines and select Run Line in Terminal ## License Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). \ No newline at end of file diff --git a/containers/azure-functions-dotnetcore-2.1/README.md b/containers/azure-functions-dotnetcore-2.1/README.md index 49d5476045..189fba425b 100644 --- a/containers/azure-functions-dotnetcore-2.1/README.md +++ b/containers/azure-functions-dotnetcore-2.1/README.md @@ -8,16 +8,31 @@ |----------|-------| | *Contributors* | The VS Code Team | | *Definition type* | Dockerfile | -| *Languages, platforms* | Azure Functions, Node.js, JavaScript | +| *Languages, platforms* | Azure Functions, .NET Core, C# | -## Usage +## Using this definition with an existing folder -[See here for information on using this definition with an existing project](../../README.md#using-a-definition). +This definition requires an Azure subscription to use. You can create a [free account here](https://azure.microsoft.com/en-us/free/serverless/) and learn more about using [Azure Functions with VS Code here](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-vs-code). Once you have an Azure account, follow these steps: -If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own 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. + +2. To use VS Code's copy of this definition: + 1. Start VS Code and open your project folder. + 2. Press F1 select and **Remote-Containers: Create Container Configuration File...** from the command palette. + 3. Select the Azure Functions & C# (.NET Core 2.1) definition. + +3. To use latest-and-greatest copy of this definition from the repository: + 1. Clone this repository. + 2. Copy the contents of `containers/azure-functions-dotnetcore-2.1/.devcontainer` to the root of your project folder. + 3. Start VS Code and open your project folder. + +4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs. + +5. Finally, press F1 and run **Remote-Containers: Reopen Folder in Container** to start using the definition. ## License Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/azure-functions-dotnetcore-latest/README.md b/containers/azure-functions-dotnetcore-latest/README.md index b4271f7c20..62bb62b904 100644 --- a/containers/azure-functions-dotnetcore-latest/README.md +++ b/containers/azure-functions-dotnetcore-latest/README.md @@ -2,22 +2,36 @@ ## Summary -*Develop Azure Functions in C#. Includes NET Core (latest), the Azure Functions SDK, and related extensions and dependencies.* +*Develop Azure Functions in C#. Includes NET Core (Latest), the Azure Functions SDK, and related extensions and dependencies.* | Metadata | Value | |----------|-------| | *Contributors* | The VS Code Team | | *Definition type* | Dockerfile | -| *Languages, platforms* | Azure Functions, Node.js, JavaScript | +| *Languages, platforms* | Azure Functions, .NET Core, C# | -## Usage +## Using this definition with an existing folder -[See here for information on using this definition with an existing project](../../README.md#using-a-definition). +This definition requires an Azure subscription to use. You can create a [free account here](https://azure.microsoft.com/en-us/free/serverless/) and learn more about using [Azure Functions with VS Code here](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-vs-code). Once you have an Azure account, follow these steps: -If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own 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. + +2. To use VS Code's copy of this definition: + 1. Start VS Code and open your project folder. + 2. Press F1 select and **Remote-Containers: Create Container Configuration File...** from the command palette. + 3. Select the Azure Functions & C# (.NET Core Latest) definition. + +3. To use latest-and-greatest copy of this definition from the repository: + 1. Clone this repository. + 2. Copy the contents of `containers/azure-functions-dotnetcore-latest/.devcontainer` to the root of your project folder. + 3. Start VS Code and open your project folder. + +4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs. + +5. Finally, press F1 and run **Remote-Containers: Reopen Folder in Container** to start using the definition. ## License Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/azure-functions-node-8/README.md b/containers/azure-functions-node-8/README.md index 09c361d410..9ff5b84f7c 100644 --- a/containers/azure-functions-node-8/README.md +++ b/containers/azure-functions-node-8/README.md @@ -10,14 +10,28 @@ | *Definition type* | Dockerfile | | *Languages, platforms* | Azure Functions, Node.js, JavaScript | -## Usage +## Using this definition with an existing folder -[See here for information on using this definition with an existing project](../../README.md#using-a-definition). +This definition requires an Azure subscription to use. You can create a [free account here](https://azure.microsoft.com/en-us/free/serverless/) and learn more about using [Azure Functions with VS Code here](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-vs-code). Once you have an Azure account, follow these steps: -If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own 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. + +2. To use VS Code's copy of this definition: + 1. Start VS Code and open your project folder. + 2. Press F1 select and **Remote-Containers: Create Container Configuration File...** from the command palette. + 3. Select the Azure Functions & Node.js 8 definition. + +3. To use latest-and-greatest copy of this definition from the repository: + 1. Clone this repository. + 2. Copy the contents of `containers/azure-functions-node-8/.devcontainer` to the root of your project folder. + 3. Start VS Code and open your project folder. + +4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs. + +5. Finally, press F1 and run **Remote-Containers: Reopen Folder in Container** to start using the definition. ## License Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/azure-functions-node-lts/README.md b/containers/azure-functions-node-lts/README.md index abc4c2a1e1..9ad796551c 100644 --- a/containers/azure-functions-node-lts/README.md +++ b/containers/azure-functions-node-lts/README.md @@ -10,14 +10,28 @@ | *Definition type* | Dockerfile | | *Languages, platforms* | Azure Functions, Node.js, JavaScript | -## Usage +## Using this definition with an existing folder -[See here for information on using this definition with an existing project](../../README.md#using-a-definition). +This definition requires an Azure subscription to use. You can create a [free account here](https://azure.microsoft.com/en-us/free/serverless/) and learn more about using [Azure Functions with VS Code here](https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-vs-code). Once you have an Azure account, follow these steps: -If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own 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. + +2. To use VS Code's copy of this definition: + 1. Start VS Code and open your project folder. + 2. Press F1 select and **Remote-Containers: Create Container Configuration File...** from the command palette. + 3. Select the Azure Functions & Node.js (latest LTS) definition. + +3. To use latest-and-greatest copy of this definition from the repository: + 1. Clone this repository. + 2. Copy the contents of `containers/azure-functions-node-lts/.devcontainer` to the root of your project folder. + 3. Start VS Code and open your project folder. + +4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs. + +5. Finally, press F1 and run **Remote-Containers: Reopen Folder in Container** to start using the definition. ## License Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/azure-hdinsight-python-3/README.md b/containers/azure-hdinsight-python-3/README.md index 870c867a33..eb6828c9cf 100644 --- a/containers/azure-hdinsight-python-3/README.md +++ b/containers/azure-hdinsight-python-3/README.md @@ -10,14 +10,28 @@ | *Definition type* | Dockerfile | | *Languages, platforms* | Azure HDInsight, Python | -## Usage +## Using this definition with an existing folder -[See here for information on using this definition with an existing project](../../README.md#using-a-definition). +This definition requires an Azure subscription to use. You can create a [free trial account here](https://azure.microsoft.com/en-us/free/) and learn more about using [Azure HDInsight with VS Code here](https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-for-vscode#open-hdinsight-work-folder). Once you have an Azure account, follow these steps: -If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own 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. + +2. To use VS Code's copy of this definition: + 1. Start VS Code and open your project folder. + 2. Press F1 select and **Remote-Containers: Create Container Configuration File...** from the command palette. + 3. Select the Azure HDInsight definition. + +3. To use latest-and-greatest copy of this definition from the repository: + 1. Clone this repository. + 2. Copy the contents of `containers/azure-hdinsight-python-3/.devcontainer` to the root of your project folder. + 3. Start VS Code and open your project folder. + +4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs. + +5. Finally, press F1 and run **Remote-Containers: Reopen Folder in Container** to start using the definition. ## License Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/azure-machine-learning-python-3/README.md b/containers/azure-machine-learning-python-3/README.md index 0a0c12b2de..af7ed7ee52 100644 --- a/containers/azure-machine-learning-python-3/README.md +++ b/containers/azure-machine-learning-python-3/README.md @@ -10,14 +10,28 @@ | *Definition type* | Dockerfile | | *Languages, platforms* | Azure Machine Learning, Python | -## Usage +## Using this definition with an existing folder -[See here for information on using this definition with an existing project](../../README.md#using-a-definition). +This definition requires an Azure subscription to use. You can create a [free account here](https://account.azure.com/signup?offer=ms-azr-0044p&appId=102&ref=azureplat-generic&redirectURL=https%3a%2f%2fazure.microsoft.com%2fen-us%2fget-started%2fwelcome-to-azure%2f&l=en-us&correlationId=15FE63BE1C4960F42D1B6EFB18496296) and learn more about using [Azure Machine Learning with VS Code here](https://docs.microsoft.com/en-us/azure/machine-learning/service/how-to-vscode-tools#get-started-with-azure-machine-learning). Once you have an Azure account, follow these steps: -If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own 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. + +2. To use VS Code's copy of this definition: + 1. Start VS Code and open your project folder. + 2. Press F1 select and **Remote-Containers: Create Container Configuration File...** from the command palette. + 3. Select the Azure Machine Learning definition. + +3. To use latest-and-greatest copy of this definition from the repository: + 1. Clone this repository. + 2. Copy the contents of `containers/azure-machine-learning-python-3/.devcontainer` to the root of your project folder. + 3. Start VS Code and open your project folder. + +4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs. + +5. Finally, press F1 and run **Remote-Containers: Reopen Folder in Container** to start using the definition. ## License Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/azure-terraform/.devcontainer/Dockerfile b/containers/azure-terraform/.devcontainer/Dockerfile index 6263a8784c..5443a475ad 100644 --- a/containers/azure-terraform/.devcontainer/Dockerfile +++ b/containers/azure-terraform/.devcontainer/Dockerfile @@ -6,9 +6,13 @@ # Pick any base image, but if you select node, skip installing node. 😊 FROM debian:9 -# Install git, required tools +# Configure apt +ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ - && apt-get install -y \ + && apt-get -y install --no-install-recommends apt-utils 2>&1 + +# Install git, required tools +RUN apt-get install -y \ git \ curl \ procps \ @@ -17,30 +21,30 @@ RUN apt-get update \ ca-certificates \ gnupg-agent \ software-properties-common \ - lsb-release + 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 -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash \ +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/*" + && 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 - \ +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 -L https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ +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 Terraform and tflint +# Install Terraform, tflint, and graphviz RUN mkdir -p /tmp/docker-downloads \ && curl -sSL -o /tmp/docker-downloads/terraform.zip https://releases.hashicorp.com/terraform/0.11.13/terraform_0.11.13_linux_amd64.zip \ && unzip /tmp/docker-downloads/terraform.zip \ @@ -55,4 +59,5 @@ RUN mkdir -p /tmp/docker-downloads \ # Clean up RUN apt-get autoremove -y \ && apt-get clean -y \ - && rm -rf /var/lib/apt/lists/* \ No newline at end of file + && rm -rf /var/lib/apt/lists/* +ENV DEBIAN_FRONTEND=dialog \ No newline at end of file diff --git a/containers/azure-terraform/README.md b/containers/azure-terraform/README.md index d734d5a0aa..64bc0cef6a 100644 --- a/containers/azure-terraform/README.md +++ b/containers/azure-terraform/README.md @@ -10,14 +10,30 @@ | *Definition type* | Dockerfile | | *Languages, platforms* | Terraform | -## Usage +## Using this definition with an existing folder -[See here for information on using this definition with an existing project](../../README.md#using-a-definition). +While technically optional, this definition includes the Azure Terraform extension which requires an Azure account to use. You can create a [free trial account here](https://azure.microsoft.com/en-us/free/) and find out more about using [Teraform with Azure here](https://docs.microsoft.com/en-us/azure/terraform/terraform-overview). If you plan to use the Azure Cloud Shell for all of your Terraform operations, you can comment out the installation of the Docker CLI in `.devcontainer/Dockerfile`. Conversely, if you do not plan to use Cloud Shell, you can comment out the installation of Node.js. The definition has been setup so you can do either as it makes sense. -If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own project. +Next, follow these steps: + +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. + +2. To use VS Code's copy of this definition: + 1. Start VS Code and open your project folder. + 2. Press F1 select and **Remote-Containers: Create Container Configuration File...** from the command palette. + 3. Select the Azure Terraform definition. + +3. To use latest-and-greatest copy of this definition from the repository: + 1. Clone this repository. + 2. Copy the contents of `containers/azure-terraform/.devcontainer` to the root of your project folder. + 3. Start VS Code and open your project folder. + +4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs. + +5. Finally, press F1 and run **Remote-Containers: Reopen Folder in Container** to start using the definition. ## License Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/dart/README.md b/containers/dart/README.md index e7b4ddcc02..413fef81c5 100644 --- a/containers/dart/README.md +++ b/containers/dart/README.md @@ -39,7 +39,7 @@ This definition includes some test code that will help you verify it is working 3. Start VS Code, press F1, and select **Remote-Containers: Open Folder in Container...** 4. Select the `containers/dart` folder. 5. After the folder has opened in the container, press F5 to start the project. This will automatically run `pub get` and build the code before starting it. -6. Once the project is running, press F1 and select **Remote-Containers: Forward Port...** +6. Once the project is running, press F1 and select **Remote-Containers: Forward Port from Container...** 7. Select port 8080 and click the "Open Browser" button in the notification that appears. 8. You should see "Hello remote world!" after the page loads. 9. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing. diff --git a/containers/dart/test-project/server.dart b/containers/dart/test-project/server.dart index 2d4a2cb33f..3af5e57ded 100644 --- a/containers/dart/test-project/server.dart +++ b/containers/dart/test-project/server.dart @@ -7,10 +7,10 @@ Future main() async { InternetAddress.loopbackIPv4, 8080, ); - print('**************************************************************'); - print('* Press F1, select "Remote-Containers: Forward Port...", and *'); - print('* select the server port listed below to access server. *'); - print('**************************************************************'); + print('*************************************************************************'); + print('* Press F1, select "Remote-Containers: Forward Port from Container...", *'); + print('* and select the server port listed below to access server. *'); + print('*************************************************************************'); print('Listening on localhost:${server.port}'); await for (HttpRequest request in server) { diff --git a/containers/debian-9-git/.devcontainer/Dockerfile b/containers/debian-9-git/.devcontainer/Dockerfile index f75e9177e8..739a52bceb 100644 --- a/containers/debian-9-git/.devcontainer/Dockerfile +++ b/containers/debian-9-git/.devcontainer/Dockerfile @@ -4,11 +4,16 @@ #----------------------------------------------------------------------------------------- FROM debian:9 -# Install git, process tools -RUN apt-get update && apt-get -y install git procps +# Configure apt +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update \ + && apt-get -y install --no-install-recommends apt-utils 2>&1 + +# Install git, process tools, lsb-release (common in install instructions for CLIs) +RUN apt-get -y install git procps lsb-release # Clean up RUN apt-get autoremove -y \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* - +ENV DEBIAN_FRONTEND=dialog diff --git a/containers/docker-existing-docker-compose/README.md b/containers/docker-existing-docker-compose/README.md index 134bcd1ff9..3f788534c4 100644 --- a/containers/docker-existing-docker-compose/README.md +++ b/containers/docker-existing-docker-compose/README.md @@ -20,11 +20,11 @@ To use the definition with an existing project that contains a `docker-compose.y 2. Modify the `.devcontainer/dev-container.yml` and `devcontainer.json` files as needed (see comments) 3. Reopen the folder in the container (e.g. using the **Remote-Container: Reopen Folder in Container** command in VS Code) to use it unmodified. -[See here for more information on using this definition with an existing project](../../README.md#using-a-definition). +[See here for more information on using this definition with an existing project](https://aka.ms/vscode-remote/containers/getting-started/open). If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own project. ## License Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/docker-existing-dockerfile/README.md b/containers/docker-existing-dockerfile/README.md index 8e0f45686a..82adbd3494 100644 --- a/containers/docker-existing-dockerfile/README.md +++ b/containers/docker-existing-dockerfile/README.md @@ -20,10 +20,10 @@ To use the definition with your own project that contains a `Dockerfile`: 2. Modify the `.devcontainer/devcontainer.json` as needed (see comments) 3. Reopen the folder in the container (e.g. using the **Remote-Container: Reopen Folder in Container** command in VS Code) to use it unmodified. -[See here for more information on using this definition with an existing project](../../README.md#using-a-definition). +[See here for more information on using this definition with an existing project](https://aka.ms/vscode-remote/containers/getting-started/open). ## License Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/docker-in-docker-compose/README.md b/containers/docker-in-docker-compose/README.md index f83b98d15b..ce31d530a8 100644 --- a/containers/docker-in-docker-compose/README.md +++ b/containers/docker-in-docker-compose/README.md @@ -18,7 +18,7 @@ Dev containers can be useful for all types of applications including those that ## Usage -[See here for information on using this definition with an existing project](../../README.md#using-a-definition). +[See here for information on using this definition with an existing project](https://aka.ms/vscode-remote/containers/getting-started/open). If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own project. @@ -55,4 +55,4 @@ That's it! Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/docker-in-docker/README.md b/containers/docker-in-docker/README.md index be255035b6..c4f8a44444 100644 --- a/containers/docker-in-docker/README.md +++ b/containers/docker-in-docker/README.md @@ -18,7 +18,7 @@ Dev containers can be useful for all types of applications including those that ## Usage -[See here for information on using this definition with an existing project](../../README.md#using-a-definition). +[See here for information on using this definition with an existing project](https://aka.ms/vscode-remote/containers/getting-started/open). If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own project. @@ -58,4 +58,4 @@ That's it! Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/dotnetcore-2.1/README.md b/containers/dotnetcore-2.1/README.md index fee7a36fd8..d3fb3fb8d3 100644 --- a/containers/dotnetcore-2.1/README.md +++ b/containers/dotnetcore-2.1/README.md @@ -46,7 +46,7 @@ This definition includes some test code that will help you verify it is working 4. Select the `containers/dotnetcore-2.1` folder. 5. After the folder has opened in the container, if prompted to restore packages in a notification, click "Restore". 6. After packages are restored, press F5 to start the project. -7. Once the project is running, press F1 and select **Remote-Containers: Forward Port...** +7. Once the project is running, press F1 and select **Remote-Containers: Forward Port from Container...** 8. Select port 8090 and click the "Open Browser" button in the notification that appears. 9. You should see "Hello remote world from ASP.NET Core!" after the page loads. 10. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing. diff --git a/containers/dotnetcore-latest/README.md b/containers/dotnetcore-latest/README.md index 5dbe752d5f..265b4009ab 100644 --- a/containers/dotnetcore-latest/README.md +++ b/containers/dotnetcore-latest/README.md @@ -46,7 +46,7 @@ This definition includes some test code that will help you verify it is working 4. Select the `containers/dotnetcore-latest` folder. 5. After the folder has opened in the container, if prompted to restore packages in a notification, click "Restore". 6. After packages are restored, press F5 to start the project. -7. Once the project is running, press F1 and select **Remote-Containers: Forward Port...** +7. Once the project is running, press F1 and select **Remote-Containers: Forward Port from Container...** 8. Select port 8090 and click the "Open Browser" button in the notification that appears. 9. You should see "Hello remote world from ASP.NET Core!" after the page loads. 10. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing. diff --git a/containers/javascript-node-8/README.md b/containers/javascript-node-8/README.md index 91589e050c..54a299837d 100644 --- a/containers/javascript-node-8/README.md +++ b/containers/javascript-node-8/README.md @@ -39,7 +39,7 @@ This definition includes some test code that will help you verify it is working 3. Start VS Code, press F1, and select **Remote-Containers: Open Folder in Container...** 4. Select the `containers/javascript-node-8` folder. 5. After the folder has opened in the container, press F5 to start the project. This will automatically run `npm install` before starting it. -6. Once the project is running, press F1 and select **Remote-Containers: Forward Port...** +6. Once the project is running, press F1 and select **Remote-Containers: Forward Port from Container...** 7. Select port 3000 and click the "Open Browser" button in the notification that appears. 8. You should see "Hello remote world!" after the page loads. 9. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing. diff --git a/containers/javascript-node-lts-mongo/README.md b/containers/javascript-node-lts-mongo/README.md index 4b57eb7308..f7ec600ddb 100644 --- a/containers/javascript-node-lts-mongo/README.md +++ b/containers/javascript-node-lts-mongo/README.md @@ -37,7 +37,7 @@ This definition includes some test code that will help you verify it is working 3. Start VS Code, press F1, and select **Remote-Containers: Open Folder in Container...** 4. Select the `containers/javascript-node-lts-mongo` folder. 5. After the folder has opened in the container, press F5 to start the project. This will automatically run `npm install` before starting it. -6. Once the project is running, press F1 and select **Remote-Containers: Forward Port...** +6. Once the project is running, press F1 and select **Remote-Containers: Forward Port from Container...** 7. Select port 3000 and click the "Open Browser" button in the notification that appears. 8. You should see "Hello remote world! 1 test record(s) found." after the page loads. 9. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing. diff --git a/containers/javascript-node-lts/README.md b/containers/javascript-node-lts/README.md index 117e8407d7..8670146e14 100644 --- a/containers/javascript-node-lts/README.md +++ b/containers/javascript-node-lts/README.md @@ -39,7 +39,7 @@ This definition includes some test code that will help you verify it is working 3. Start VS Code, press F1, and select **Remote-Containers: Open Folder in Container...** 4. Select the `containers/javascript-node-lts` folder. 5. After the folder has opened in the container, press F5 to start the project. This will automatically run `npm install` before starting it. -6. Once the project is running, press F1 and select **Remote-Containers: Forward Port...** +6. Once the project is running, press F1 and select **Remote-Containers: Forward Port from Container...** 7. Select port 3000 and click the "Open Browser" button in the notification that appears. 8. You should see "Hello remote world!" after the page loads. 9. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing. diff --git a/containers/kubernetes-helm/README.md b/containers/kubernetes-helm/README.md index c4d1520ef8..ae4e91555b 100644 --- a/containers/kubernetes-helm/README.md +++ b/containers/kubernetes-helm/README.md @@ -108,4 +108,4 @@ That's it! Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/markdown/README.md b/containers/markdown/README.md index 3329d144d7..a7167f9f70 100644 --- a/containers/markdown/README.md +++ b/containers/markdown/README.md @@ -12,7 +12,7 @@ ## Usage -[See here for information on using this definition with an existing project](../../README.md#using-a-definition). +[See here for information on using this definition with an existing project](https://aka.ms/vscode-remote/containers/getting-started/open). If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own project. @@ -20,4 +20,4 @@ If you prefer, you can also just look through the contents of the `.devcontainer Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](../../LICENSE). +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE). diff --git a/containers/python-2/README.md b/containers/python-2/README.md index 0160f1da24..f5ace89af3 100644 --- a/containers/python-2/README.md +++ b/containers/python-2/README.md @@ -52,4 +52,4 @@ This definition includes some test code that will help you verify it is working Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE) \ No newline at end of file +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE) diff --git a/containers/python-3/README.md b/containers/python-3/README.md index 099d62767b..0ee0a9f7ce 100644 --- a/containers/python-3/README.md +++ b/containers/python-3/README.md @@ -52,4 +52,4 @@ This definition includes some test code that will help you verify it is working Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE) \ No newline at end of file +Licensed under the MIT License. See [LICENSE](https://github.com/Microsoft/vscode-dev-containers/blob/master/LICENSE) diff --git a/containers/typescript-node-8/README.md b/containers/typescript-node-8/README.md index 3cb3b2b796..8a12a4d90d 100644 --- a/containers/typescript-node-8/README.md +++ b/containers/typescript-node-8/README.md @@ -39,7 +39,7 @@ This definition includes some test code that will help you verify it is working 3. Start VS Code, press F1, and select **Remote-Containers: Open Folder in Container...** 4. Select the `containers/typescript-node-8` folder. 5. After the folder has opened in the container, press F5 to start the project. This will automatically run `npm install` and compile the source before starting it. -6. Once the project is running, press F1 and select **Remote-Containers: Forward Port...** +6. Once the project is running, press F1 and select **Remote-Containers: Forward Port from Container...** 7. Select port 3000 and click the "Open Browser" button in the notification that appears. 8. You should see "Hello remote world!" after the page loads. 9. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing. diff --git a/containers/typescript-node-lts/README.md b/containers/typescript-node-lts/README.md index 8545662809..d00308534d 100644 --- a/containers/typescript-node-lts/README.md +++ b/containers/typescript-node-lts/README.md @@ -10,18 +10,6 @@ | *Definition type* | Dockerfile | | *Languages, platforms* | Node.js, TypeScript | -# Node.js 8 & TypeScript - -## Summary - -*Develop Node.js 8 based applications in TypeScript. Includes Node.js, tslint, yarn, and the TypeScript compiler.* - -| Metadata | Value | -|----------|-------| -| *Contributors* | The VS Code Team | -| *Definition type* | Dockerfile | -| *Languages, platforms* | Node.js, TypeScript | - ## Using this definition with an existing folder This definition does require any special steps to use. Just follow these steps: @@ -51,7 +39,7 @@ This definition includes some test code that will help you verify it is working 3. Start VS Code, press F1, and select **Remote-Containers: Open Folder in Container...** 4. Select the `containers/typescript-node-lts` folder. 5. After the folder has opened in the container, press F5 to start the project. This will automatically run `npm install` and compile the source before starting it. -6. Once the project is running, press F1 and select **Remote-Containers: Forward Port...** +6. Once the project is running, press F1 and select **Remote-Containers: Forward Port from Container...** 7. Select port 3000 and click the "Open Browser" button in the notification that appears. 8. You should see "Hello remote world!" after the page loads. 9. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing. diff --git a/containers/ubuntu-18.04-git/.devcontainer/Dockerfile b/containers/ubuntu-18.04-git/.devcontainer/Dockerfile index 5277dde2a4..7dc6386320 100644 --- a/containers/ubuntu-18.04-git/.devcontainer/Dockerfile +++ b/containers/ubuntu-18.04-git/.devcontainer/Dockerfile @@ -4,11 +4,17 @@ #----------------------------------------------------------------------------------------- FROM ubuntu:bionic -# Install git, process tools -RUN apt-get update && apt-get -y install git procps +# Configure apt +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update \ + && apt-get -y install --no-install-recommends apt-utils 2>&1 + +# Install git, process tools, lsb-release (common in install instructions for CLIs) +RUN apt-get -y install git procps lsb-release # Clean up RUN apt-get autoremove -y \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* +ENV DEBIAN_FRONTEND=dialog diff --git a/repository-containers/github.com/aymericdamien/TensorFlow-Examples/Dockerfile b/repository-containers/github.com/aymericdamien/TensorFlow-Examples/.devcontainer/Dockerfile similarity index 100% rename from repository-containers/github.com/aymericdamien/TensorFlow-Examples/Dockerfile rename to repository-containers/github.com/aymericdamien/TensorFlow-Examples/.devcontainer/Dockerfile diff --git a/repository-containers/github.com/aymericdamien/TensorFlow-Examples/.devcontainer.json b/repository-containers/github.com/aymericdamien/TensorFlow-Examples/.devcontainer/devcontainer.json similarity index 100% rename from repository-containers/github.com/aymericdamien/TensorFlow-Examples/.devcontainer.json rename to repository-containers/github.com/aymericdamien/TensorFlow-Examples/.devcontainer/devcontainer.json diff --git a/repository-containers/github.com/barryclark/jekyll-now/.devcontainer/Dockerfile b/repository-containers/github.com/barryclark/jekyll-now/.devcontainer/Dockerfile new file mode 100644 index 0000000000..53abbe34d1 --- /dev/null +++ b/repository-containers/github.com/barryclark/jekyll-now/.devcontainer/Dockerfile @@ -0,0 +1,17 @@ +#----------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See LICENSE in the project root for license information. +#----------------------------------------------------------------------------------------- + +FROM ruby:2 + +# Install git, process tools +RUN apt-get update && apt-get -y install git procps + +# Clean up +RUN apt-get autoremove -y \ + && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* + +# Install jekyll +RUN gem install github-pages diff --git a/repository-containers/github.com/barryclark/jekyll-now/.devcontainer/devcontainer.json b/repository-containers/github.com/barryclark/jekyll-now/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..e52930b5e9 --- /dev/null +++ b/repository-containers/github.com/barryclark/jekyll-now/.devcontainer/devcontainer.json @@ -0,0 +1,10 @@ +{ + "name": "Jekyll Now", + "dockerFile": "Dockerfile", + "appPort": [ + 4000 + ], + "extensions": [ + "mrmlnc.vscode-scss" + ] +} \ No newline at end of file diff --git a/repository-containers/github.com/django/django/Dockerfile b/repository-containers/github.com/django/django/.devcontainer/Dockerfile similarity index 100% rename from repository-containers/github.com/django/django/Dockerfile rename to repository-containers/github.com/django/django/.devcontainer/Dockerfile diff --git a/repository-containers/github.com/django/django/.devcontainer.json b/repository-containers/github.com/django/django/.devcontainer/devcontainer.json similarity index 100% rename from repository-containers/github.com/django/django/.devcontainer.json rename to repository-containers/github.com/django/django/.devcontainer/devcontainer.json diff --git a/repository-containers/github.com/spmallick/learnopencv/Dockerfile b/repository-containers/github.com/spmallick/learnopencv/.devcontainer/Dockerfile similarity index 100% rename from repository-containers/github.com/spmallick/learnopencv/Dockerfile rename to repository-containers/github.com/spmallick/learnopencv/.devcontainer/Dockerfile diff --git a/repository-containers/github.com/spmallick/learnopencv/.devcontainer.json b/repository-containers/github.com/spmallick/learnopencv/.devcontainer/devcontainer.json similarity index 100% rename from repository-containers/github.com/spmallick/learnopencv/.devcontainer.json rename to repository-containers/github.com/spmallick/learnopencv/.devcontainer/devcontainer.json