Skip to content

Commit 736233c

Browse files
authored
Merge branch 'main' into 3237-use-workspace-suffix-in-airlock-processor
2 parents 48619ec + 93e9a37 commit 736233c

File tree

716 files changed

+18954
-9281
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

716 files changed

+18954
-9281
lines changed

.devcontainer/Dockerfile

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ FROM --platform="${TARGETPLATFORM}" mcr.microsoft.com/vscode/devcontainers/pytho
88
# This will be set to true when running in VSCode
99
ARG INTERACTIVE="false"
1010

11-
ARG USERNAME=vscode
1211
ARG USER_UID=1000
13-
ARG USER_GID=$USER_UID
12+
ARG USERNAME=vscode
1413

15-
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
14+
# make user ID match user ID on host machine
15+
RUN usermod --uid $USER_UID $USERNAME
1616

17-
# Set up non-root user
18-
COPY .devcontainer/scripts/non-root-user.sh /tmp/
19-
RUN bash /tmp/non-root-user.sh "${USERNAME}" "${USER_UID}" "${USER_GID}"
17+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2018

2119
# Set env for tracking that we're running in a devcontainer
2220
ENV DEVCONTAINER=true
@@ -26,7 +24,7 @@ ARG NODE_VERSION="lts/*"
2624
RUN su $USERNAME -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"
2725

2826
# Install terraform
29-
ARG TERRAFORM_VERSION="1.3.6"
27+
ARG TERRAFORM_VERSION="1.4.5"
3028
COPY .devcontainer/scripts/terraform.sh /tmp/
3129
RUN bash /tmp/terraform.sh "${TERRAFORM_VERSION}" /usr/bin
3230

@@ -39,7 +37,7 @@ RUN apt-get update && apt-get install -y ca-certificates curl gnupg lsb-release
3937
&& curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \
4038
&& echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" \
4139
| tee /etc/apt/sources.list.d/docker.list > /dev/null \
42-
&& apt-get update && apt-get install -y docker-ce="5:20.10.21~3-0~debian-bullseye" docker-ce-cli="5:20.10.21~3-0~debian-bullseye" containerd.io="1.6.12-1" --no-install-recommends \
40+
&& apt-get update && apt-get install -y docker-ce="5:24.0.0-1~debian.11~bullseye" docker-ce-cli="5:24.0.0-1~debian.11~bullseye" docker-compose-plugin="2.21.0-1~debian.11~bullseye" containerd.io="1.6.24-1" docker-buildx-plugin --no-install-recommends \
4341
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
4442

4543
# Install Certbot
@@ -50,13 +48,11 @@ RUN if [ "${INTERACTIVE}" = "true" ]; then \
5048
&& /opt/certbot/bin/pip install --no-cache-dir certbot \
5149
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* ; fi
5250

53-
# can't be in a non default path
54-
# ARG PORTER_HOME_V1=/home/$USERNAME/.porter-v1/
5551
ARG PORTER_HOME_V1=/home/$USERNAME/.porter/
56-
ARG PORTER_VERSION=v1.0.8
57-
ARG PORTER_TERRAFORM_MIXIN_VERSION=v1.0.1
58-
ARG PORTER_AZ_MIXIN_VERSION=v1.0.0
59-
ARG PORTER_AZURE_PLUGIN_VERSION=v1.1.0
52+
ARG PORTER_VERSION=v1.0.15
53+
ARG PORTER_TERRAFORM_MIXIN_VERSION=v1.0.2
54+
ARG PORTER_AZ_MIXIN_VERSION=v1.0.1
55+
ARG PORTER_AZURE_PLUGIN_VERSION=v1.2.0
6056
COPY .devcontainer/scripts/porter-v1.sh /tmp/
6157
RUN export PORTER_VERSION=${PORTER_VERSION} \
6258
PORTER_TERRAFORM_MIXIN_VERSION=${PORTER_TERRAFORM_MIXIN_VERSION} \
@@ -68,6 +64,8 @@ RUN export PORTER_VERSION=${PORTER_VERSION} \
6864
ENV PATH ${PORTER_HOME_V1}:$PATH
6965

7066
# Install requirements
67+
ARG PIP_VERSION=23.3.1
68+
RUN pip3 --no-cache-dir install pip==${PIP_VERSION} && pip3 config set global.disable-pip-version-check true
7169
COPY ["requirements.txt", "/tmp/pip-tmp/" ]
7270
COPY ["api_app/requirements.txt", "api_app/requirements-dev.txt", "/tmp/pip-tmp/api_app/" ]
7371
COPY ["resource_processor/vmss_porter/requirements.txt", "/tmp/pip-tmp/resource_processor/vmss_porter/" ]
@@ -77,18 +75,23 @@ COPY ["airlock_processor/requirements.txt", "/tmp/pip-tmp/airlock_processor/"]
7775
RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt
7876

7977
# Install azure-cli
80-
ARG AZURE_CLI_VERSION=2.37.0-1~bullseye
78+
ARG AZURE_CLI_VERSION=2.57.0-1~bullseye
8179
COPY .devcontainer/scripts/azure-cli.sh /tmp/
8280
RUN export AZURE_CLI_VERSION=${AZURE_CLI_VERSION} \
8381
&& /tmp/azure-cli.sh
8482

85-
ARG YQ_VERSION="v4.30.6"
83+
ARG YQ_VERSION="v4.33.3"
8684
RUN curl -L --fail -o /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" \
8785
&& chmod +x /usr/local/bin/yq
8886

8987
ARG PAJV_VERSION="1.2.0"
9088
RUN npm install -g pajv@${PAJV_VERSION}
9189

90+
# Install git - required for terraform's git modules
91+
RUN if [ "${INTERACTIVE}" = "false" ]; then \
92+
apt-get update && apt-get install --no-install-recommends -y git \
93+
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* ; fi
94+
9295
USER $USERNAME
9396

9497
# Save command line history

0 commit comments

Comments
 (0)