forked from abckey/frr-talos-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (21 loc) · 873 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM frrouting/frr:v8.4.1 as base
RUN echo -e '\
export ASN_METALLB_LOCAL=4200099998 \n\
export ASN_METALLB_REMOTE=4200099999 \n\
export NAMESPACE_METALLB=metallb \n\
export PEER_IP_LOCAL=192.168.250.254 \n\
export PEER_IP_REMOTE=192.168.250.255 \n\
export PEER_IP_PREFIX=31 \n\
export PEER_V6ONLY=yes \n\
export INTERFACE_MTU=1500 \
' > /etc/frr/env.sh
COPY docker-start.j2 /usr/lib/frr/docker-start.j2
COPY daemons /etc/frr/daemons
COPY frr.conf.j2 /etc/frr/frr.conf.j2
RUN apk add --no-cache --update-cache tcpdump gettext py3-pip curl lldpd iputils bind-tools busybox-extras mtr lshw jq
RUN pip3 install j2cli
RUN source /etc/frr/env.sh && j2 -o /usr/lib/frr/docker-start /usr/lib/frr/docker-start.j2
FROM scratch AS frr
COPY --from=base / /rootfs/usr/local/lib/containers/frr/
COPY frr.yaml /rootfs/usr/local/etc/containers/frr.yaml
COPY manifest.yaml /manifest.yaml