test: pin Docker Hub base image for gateway build E2E
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM base-mirror.example.org/library/python:3.13-alpine
|
FROM docker.io/library/python@sha256:5dcbe6043e931f65945060c7a991d55035191d7dfc52c8bed14468e95b8f7b9a
|
||||||
COPY probe.py /tmp/probe.py
|
COPY probe.py /tmp/probe.py
|
||||||
RUN python3 /tmp/probe.py
|
RUN python3 /tmp/probe.py
|
||||||
USER 1000:1000
|
USER 1000:1000
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
FROM base-mirror.example.org/library/python:3.13-alpine
|
FROM docker.io/library/python@sha256:5dcbe6043e931f65945060c7a991d55035191d7dfc52c8bed14468e95b8f7b9a
|
||||||
RUN exit 42
|
RUN exit 42
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
# Replace the example mirror with the qualified platform mirror before importing this repo.
|
# Replace the example mirror with the qualified platform mirror before importing this repo.
|
||||||
FROM base-mirror.example.org/library/python:3.13-alpine AS prepare
|
FROM docker.io/library/python@sha256:5dcbe6043e931f65945060c7a991d55035191d7dfc52c8bed14468e95b8f7b9a AS prepare
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY marker.txt /app/input.txt
|
COPY marker.txt /app/input.txt
|
||||||
RUN mkdir -p /app/data && cp /app/input.txt /app/data/marker.txt && chown -R 1000:1000 /app/data
|
RUN mkdir -p /app/data && cp /app/input.txt /app/data/marker.txt && chown -R 1000:1000 /app/data
|
||||||
USER 1000:1000
|
USER 1000:1000
|
||||||
RUN test "$(id -u)" = 1000 && test -r /app/data/marker.txt
|
RUN test "$(id -u)" = 1000 && test -r /app/data/marker.txt
|
||||||
|
|
||||||
FROM base-mirror.example.org/library/python:3.13-alpine
|
FROM docker.io/library/python@sha256:5dcbe6043e931f65945060c7a991d55035191d7dfc52c8bed14468e95b8f7b9a
|
||||||
COPY --from=prepare --chown=1000:1000 /app/data/marker.txt /tmp/marker.txt
|
COPY --from=prepare --chown=1000:1000 /app/data/marker.txt /tmp/marker.txt
|
||||||
USER 1000:1000
|
USER 1000:1000
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
# Used for active cancellation and deadline qualification; replace the mirror before import.
|
# Used for active cancellation and deadline qualification; replace the mirror before import.
|
||||||
FROM base-mirror.example.org/library/python:3.13-alpine
|
FROM docker.io/library/python@sha256:5dcbe6043e931f65945060c7a991d55035191d7dfc52c8bed14468e95b8f7b9a
|
||||||
RUN python3 -c "import time; time.sleep(600)"
|
RUN python3 -c "import time; time.sleep(600)"
|
||||||
|
|||||||
Reference in New Issue
Block a user