File tree Expand file tree Collapse file tree 2 files changed +28
-7
lines changed Expand file tree Collapse file tree 2 files changed +28
-7
lines changed Original file line number Diff line number Diff line change 1
- FROM debian:bookworm-slim
1
+ FROM docker.io/library/ debian:bookworm-slim
2
2
3
3
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
8
4
9
5
RUN apt-get update && \
10
6
apt-get --no-install-recommends install --yes \
@@ -16,8 +12,8 @@ RUN apt-get update && \
16
12
qemu-system-x86 \
17
13
telnet
18
14
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
21
17
22
18
ENTRYPOINT ["/launch.py" ]
23
19
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments