Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 8caeece

Browse files
committed
Fix Azure Terraform
1 parent 80fb675 commit 8caeece

File tree

3 files changed

+33
-6
lines changed

3 files changed

+33
-6
lines changed

containers/azure-machine-learning-python-3/.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "Azure Machine Learning",
33
"dockerFile": "Dockerfile",
44
"extensions": [
5-
"ms-toolsai.vscode-ai"
5+
"ms-toolsai.vscode-ai",
6+
"peterjausovec.vscode-docker"
67
],
78
"runArgs": ["-v","/var/run/docker.sock:/var/run/docker.sock"]
89
}

containers/azure-terraform/.devcontainer/Dockerfile

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,34 @@ FROM debian:9
88

99
# Install git, required tools
1010
RUN apt-get update \
11-
&& apt-get install -y git curl gnupg unzip procps
11+
&& apt-get install -y \
12+
git \
13+
curl \
14+
procps \
15+
unzip \
16+
apt-transport-https \
17+
ca-certificates \
18+
gnupg-agent \
19+
software-properties-common
1220

1321
# [Optional] Install Node.js for Azure Cloud Shell support
14-
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
15-
&& apt-get install -y nodejs
22+
# Change the "lts/*" in the two lines below to pick a different version
23+
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash \
24+
&& /bin/bash -c "source $HOME/.nvm/nvm.sh \
25+
&& nvm install lts/* \
26+
&& nvm alias default lts/*"
27+
28+
# Install Docker CE CLI.
29+
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
30+
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" \
31+
&& apt-get update \
32+
&& apt-get install -y docker-ce-cli
33+
34+
# Install the Azure CLI
35+
RUN echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
36+
&& curl -L https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
37+
&& apt-get update \
38+
&& apt-get install -y azure-cli
1639

1740
# Install Terraform and tflint
1841
RUN mkdir -p /tmp/docker-downloads \

containers/azure-terraform/.devcontainer/devcontainer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"dockerFile": "Dockerfile",
44
"extensions": [
55
"mauve.terraform",
6-
"ms-azuretools.azureterraform"
7-
]
6+
"ms-azuretools.azureterraform",
7+
"ms-vscode.azurecli",
8+
"peterjausovec.vscode-docker"
9+
],
10+
"runArgs": ["-v","/var/run/docker.sock:/var/run/docker.sock"]
811
}

0 commit comments

Comments
 (0)