-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
127 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |