-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (31 loc) · 1.17 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM docker.io/debian:bookworm AS build-iso
RUN apt-get update && \
apt-get install --yes simple-cdd
RUN mkdir -p /home/nobody
COPY frr.list /etc/apt/sources.list.d/frr.list
COPY frr.asc /tmp/frr.asc
RUN gpg --dearmor --yes --output /etc/apt/keyrings/frr.gpg /tmp/frr.asc
RUN apt-get update && \
apt-get --download-only --option dir::cache=/home/nobody install --yes frr
RUN chown -R nobody:nogroup /home/nobody
ENV HOME=/home/nobody
WORKDIR /home/nobody
USER nobody
RUN build-simple-cdd --mirror-only --verbose
COPY --chown=nobody:nogroup simple-cdd.conf /home/nobody/
COPY --chown=nobody:nogroup profiles /home/nobody/profiles/
RUN chown -R nobody:nogroup /home/nobody
RUN build-simple-cdd --conf simple-cdd.conf --verbose
FROM docker.io/library/debian:bookworm-backports
RUN apt-get update && \
apt-get --no-install-recommends install --yes \
iproute2 \
procps \
python3 \
qemu-utils \
qemu-system-x86 \
telnet
COPY --from=ghcr.io/metal-stack/mini-lab-ovmf:edk2-stable202408.01 /OVMF_*.fd /opt/OVMF/
COPY --from=build-iso /home/nobody/images/debian-12-amd64-CD-1.iso /debian.iso
COPY machine/ /
ENTRYPOINT ["/launch.py"]