This repository was archived by the owner on Nov 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +27
-4
lines changed
azure-terraform/.devcontainer Expand file tree Collapse file tree 5 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ ENV DEBIAN_FRONTEND=noninteractive
11
11
# Set the default shell to bash rather than sh
12
12
ENV SHELL /bin/bash
13
13
# Terraform and tflint versions
14
- ENV TERRAFORM_VERSION=0.11.13
15
- ENV TFLINT_VERSION=0.7.5
14
+ ARG TERRAFORM_VERSION=0.11.13
15
+ ARG TFLINT_VERSION=0.7.5
16
16
17
17
# Configure apt and install packages
18
18
RUN apt-get update \
Original file line number Diff line number Diff line change 6
6
# Note: You can use any Debian/Ubuntu based image you want.
7
7
FROM debian:9
8
8
9
+ # Avoid warnings by switching to noninteractive
10
+ ENV DEBIAN_FRONTEND=noninteractive
11
+ # Set the default shell to bash rather than sh
12
+ ENV SHELL /bin/bash
13
+ # Docker Compose version
14
+ ARG COMPOSE_VERSION=1.24.0
15
+
9
16
# Configure apt and install packages
10
17
RUN apt-get update \
11
18
&& apt-get -y install --no-install-recommends apt-utils 2>&1 \
@@ -20,6 +27,10 @@ RUN apt-get update \
20
27
&& apt-get update \
21
28
&& apt-get install -y docker-ce-cli \
22
29
#
30
+ # Install Docker Compose
31
+ && curl -sSL "https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \
32
+ && chmod +x /usr/local/bin/docker-compose \
33
+ #
23
34
# Clean up
24
35
&& apt-get autoremove -y \
25
36
&& apt-get clean -y \
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ You can adapt your own existing development container Docker Compose setup to su
30
30
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable" \
31
31
&& apt-get update \
32
32
&& apt-get install -y docker-ce-cli
33
+ #
34
+ # Install Docker Compose
35
+ && curl -sSL "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \
36
+ && chmod +x /usr/local/bin/docker-compose
33
37
```
34
38
35
39
2. Then just forward the Docker socket by mounting it in the container in your Docker Compose config. From `.devcontainer/docker-compose.yml`:
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ FROM debian:9
11
11
ENV DEBIAN_FRONTEND=noninteractive
12
12
# Set the default shell to bash rather than sh
13
13
ENV SHELL /bin/bash
14
-
14
+ # Docker Compose version
15
+ ARG COMPOSE_VERSION=1.24.0
15
16
16
17
# Configure apt and install packages
17
18
RUN apt-get update \
@@ -27,6 +28,10 @@ RUN apt-get update \
27
28
&& apt-get update \
28
29
&& apt-get install -y docker-ce-cli \
29
30
#
31
+ # Install Docker Compose
32
+ && curl -sSL "https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \
33
+ && chmod +x /usr/local/bin/docker-compose \
34
+ #
30
35
# Clean up
31
36
&& apt-get autoremove -y \
32
37
&& apt-get clean -y \
Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ You can adapt your own existing development container Dockerfile to support this
31
31
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable" \
32
32
&& apt-get update \
33
33
&& apt-get install -y docker-ce-cli
34
-
34
+ #
35
+ # Install Docker Compose
36
+ && curl -sSL "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \
37
+ && chmod +x /usr/local/bin/docker-compose
35
38
```
36
39
37
40
2. Then just forward the Docker socket by mounting it in the container using `runArgs`. From `.devcontainer/devcontainer.json`:
You can’t perform that action at this time.
0 commit comments