Skip to content

Commit ba2b8ec

Browse files
authored
Dev Container and Codespace - fix docker in docker (demisto#32863)
1 parent 8098ed3 commit ba2b8ec

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.devcontainer/Dockerfile

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
FROM python:3.10-slim-bullseye
1+
FROM python:3.10-slim-bookworm
22

33
ENV USERNAME demisto
44
ENV HOME /home/$USERNAME
55
ENV NODE_EXTRA_CA_CERTS /usr/local/share/ca-certificates/certs.crt
66
ENV PATH $PATH:$HOME/.local/bin:/root/.local/bin:/usr/local/share/nvm/current/bin
7+
ENV FEATURES_COMMIT_HASH fc62e9abf47c5ea52e02de997c91c5d52a5edc3a
8+
79

810
ADD createCerts.sh .
9-
RUN apt-get update && apt-get install dos2unix git python2 curl -y \
11+
RUN apt-get update && apt-get install dos2unix git curl -y \
1012
&& dos2unix /createCerts.sh \
1113
&& chmod +x /createCerts.sh \
1214
&& /createCerts.sh $NODE_EXTRA_CA_CERTS \
@@ -15,13 +17,14 @@ RUN apt-get update && apt-get install dos2unix git python2 curl -y \
1517
&& git clone https://github.com/devcontainers/features.git /features \
1618
&& cd /features \
1719
# locking to the latest master commit in this repo (https://github.com/devcontainers/features.git) to prevent breaking changes
18-
# We should update this commit hash from time to time to
19-
&& git checkout 96bff0097028001e6e4126c5528d37cb8c13e785
20+
# We should update this commit hash from time to time to time
21+
&& git checkout $FEATURES_COMMIT_HASH
2022

2123
# This is a workaround for VSCode devcontainer features in self signed certificate
2224
RUN UID="1000" GID="1000" bash /features/src/common-utils/install.sh
2325
RUN VERSION="os-provided" bash /features/src/git/install.sh
24-
RUN VERSION="latest" bash /features/src/docker-in-docker/install.sh
26+
# Install a specific version of moby-buildx when using Moby. (2024-02-09: Microsoft's Package Manifest has mismatching filesize and SHA for 0.12.1; 0.12.0 is the last known good version)
27+
RUN VERSION="lts" MOBYBUILDXVERSION="0.12.0" bash /features/src/docker-in-docker/install.sh
2528
RUN VERSION="lts" bash /features/src/node/install.sh
2629
RUN bash /features/src/sshd/install.sh
2730
RUN bash /features/src/github-cli/install.sh

0 commit comments

Comments
 (0)