Skip to content

Commit d7403b0

Browse files
committed
Merge branch 'master' of https://github.com/metal-stack/mini-lab into dualstack-support
2 parents ef7a8a6 + a9e8c77 commit d7403b0

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed

images/sonic/Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
FROM debian:bookworm-slim
1+
FROM docker.io/library/debian:bookworm-slim
22

33
ENV LIBGUESTFS_BACKEND=direct
4-
# Check: https://sonic-build.azurewebsites.net/ui/sonic/pipelines
5-
ARG SONIC_BASE_URL=https://sonic-build.azurewebsites.net/api/sonic/artifacts?branchName=202311&platform=vs
6-
ARG SONIC_IMG_URL=${SONIC_BASE_URL}&target=target%2Fsonic-vs.img.gz
7-
ARG FRR_RELOAD_URL=${SONIC_BASE_URL}&target=target%2Fdebs%2Fbullseye%2Ffrr-pythontools_8.5.1-sonic-0_all.deb
84

95
RUN apt-get update && \
106
apt-get --no-install-recommends install --yes \
@@ -16,8 +12,8 @@ RUN apt-get update && \
1612
qemu-system-x86 \
1713
telnet
1814

19-
RUN curl --location --output - "${SONIC_IMG_URL}" | gunzip > sonic-vs.img && \
20-
curl --location --output /frr-pythontools.deb "${FRR_RELOAD_URL}"
15+
COPY --from=ghcr.io/metal-stack/mini-lab-sonic:base /sonic-vs.img /sonic-vs.img
16+
COPY --from=ghcr.io/metal-stack/mini-lab-sonic:base /frr-pythontools.deb /frr-pythontools.deb
2117

2218
ENTRYPOINT ["/launch.py"]
2319

images/sonic/base/Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Check: https://sonic-build.azurewebsites.net/ui/sonic/pipelines
2+
ARG SONIC_BASE_URL=https://sonic-build.azurewebsites.net/api/sonic/artifacts?branchName=202311&platform=vs
3+
ARG SONIC_IMG_URL=${SONIC_BASE_URL}&target=target%2Fsonic-vs.img.gz
4+
ARG FRR_RELOAD_URL=${SONIC_BASE_URL}&target=target%2Fdebs%2Fbullseye%2Ffrr-pythontools_8.5.1-sonic-0_all.deb
5+
6+
FROM docker.io/library/busybox:stable AS download
7+
8+
ARG SONIC_IMG_URL
9+
ARG FRR_RELOAD_URL
10+
11+
ADD "${SONIC_IMG_URL}" /sonic-vs.img.gz
12+
ADD "${FRR_RELOAD_URL}" /frr-pythontools.deb
13+
14+
RUN gunzip /sonic-vs.img.gz
15+
16+
FROM scratch
17+
18+
ARG SONIC_IMG_URL
19+
ARG FRR_RELOAD_URL
20+
21+
LABEL sonic-img-url=${SONIC_IMG_URL} \
22+
frr-reload-url=${FRR_RELOAD_URL}
23+
24+
COPY --from=download /frr-pythontools.deb /frr-pythontools.deb
25+
COPY --from=download /sonic-vs.img /sonic-vs.img

0 commit comments

Comments
 (0)