Skip to content

Commit

Permalink
alternative image
Browse files Browse the repository at this point in the history
  • Loading branch information
maeddes committed Jun 28, 2024
1 parent 9415e48 commit 68b102f
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bookworm-slim as dind
FROM maven:3 as dind

ARG DEBIAN_FRONTEND=noninteractive
ENV PIP_ROOT_USER_ACTION=ignore
Expand Down Expand Up @@ -33,8 +33,6 @@ RUN apt-get update; \
bash \
curl \
build-essential \
gradle \
maven \
python3 \
python-is-python3 \
python3-dev \
Expand Down
64 changes: 64 additions & 0 deletions .devcontainer/Dockerfile-bookworm
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
FROM debian:bookworm-slim as dind

ARG DEBIAN_FRONTEND=noninteractive
ENV PIP_ROOT_USER_ACTION=ignore

RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
sudo \
ca-certificates \
iptables \
net-tools \
openssl \
pigz \
xz-utils \
procps \
supervisor

COPY --from=docker:26-dind /usr/local/bin /usr/local/bin
COPY --from=docker:26-dind /usr/local/libexec/docker/cli-plugins /usr/local/libexec/docker/cli-plugins

COPY entrypoint.sh /usr/local/bin
RUN chmod +x /usr/local/bin/entrypoint.sh

RUN update-alternatives --set iptables /usr/sbin/iptables-legacy
RUN update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy

VOLUME /var/lib/docker

RUN apt-get update; \
apt-get install --yes --no-install-recommends \
sudo \
bash \
curl \
build-essential \
gradle \
maven \
python3 \
python-is-python3 \
python3-dev \
python3-pip \
python3-setuptools \
python3-wheel \
python3-psutil; \
apt clean; \
rm -rf /var/lib/apt/lists/*

RUN rm -rf /usr/lib/python3*/EXTERNALLY-MANAGED

RUN pip install \
flask \
Faker \
requests \
opentelemetry-api \
opentelemetry-sdk \
opentelemetry-exporter-prometheus \
opentelemetry-exporter-otlp \
opentelemetry-instrumentation-flask

WORKDIR /workspace

EXPOSE 5000

ENTRYPOINT [ "entrypoint.sh" ]
62 changes: 62 additions & 0 deletions .devcontainer/Dockerfile-maven
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
FROM maven:3 as dind

ARG DEBIAN_FRONTEND=noninteractive
ENV PIP_ROOT_USER_ACTION=ignore

RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
sudo \
ca-certificates \
iptables \
net-tools \
openssl \
pigz \
xz-utils \
procps \
supervisor

COPY --from=docker:26-dind /usr/local/bin /usr/local/bin
COPY --from=docker:26-dind /usr/local/libexec/docker/cli-plugins /usr/local/libexec/docker/cli-plugins

COPY entrypoint.sh /usr/local/bin
RUN chmod +x /usr/local/bin/entrypoint.sh

RUN update-alternatives --set iptables /usr/sbin/iptables-legacy
RUN update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy

VOLUME /var/lib/docker

RUN apt-get update; \
apt-get install --yes --no-install-recommends \
sudo \
bash \
curl \
build-essential \
python3 \
python-is-python3 \
python3-dev \
python3-pip \
python3-setuptools \
python3-wheel \
python3-psutil; \
apt clean; \
rm -rf /var/lib/apt/lists/*

RUN rm -rf /usr/lib/python3*/EXTERNALLY-MANAGED

RUN pip install \
flask \
Faker \
requests \
opentelemetry-api \
opentelemetry-sdk \
opentelemetry-exporter-prometheus \
opentelemetry-exporter-otlp \
opentelemetry-instrumentation-flask

WORKDIR /workspace

EXPOSE 5000

ENTRYPOINT [ "entrypoint.sh" ]

0 comments on commit 68b102f

Please sign in to comment.