| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=22.04 |
| ADD file:36d136943d44dbe1fed342b933d9abb8e0694bf141a0c0af85ca83cc73e25158 in / |
| CMD ["/bin/bash"] |
| RUN /bin/sh -c apt-get update && apt-get install -y frr frr-pythontools python3 python3-pip iproute2 iputils-ping net-tools procps vim curl && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c pip3 install watchdog # buildkit |
| RUN /bin/sh -c mkdir -p /app/scripts /app/data /app/logs /etc/frr # buildkit |
| COPY frr.conf /etc/frr/frr.conf # buildkit |
| COPY scripts/ /app/scripts/ # buildkit |
| COPY data/ /app/data/ # buildkit |
| RUN /bin/sh -c chmod +x /app/scripts/start.sh # buildkit |
| RUN /bin/sh -c chmod +x /app/scripts/load_prefixes.py # buildkit |
| RUN /bin/sh -c chmod +x /app/scripts/generate_config.py # buildkit |
| RUN /bin/sh -c chmod +x /app/scripts/monitor.py # buildkit |
| WORKDIR /app |
| EXPOSE map[179/tcp:{}] |
| ENV BGP_LOCAL_AS=65000 |
| ENV BGP_ROUTER_ID=192.168.100.99 |
| ENV BGP_NEIGHBOR_IP=192.168.0.254 |
| ENV BGP_NEIGHBOR_AS=65001 |
| ENV BGP_HOLD_TIME=90 |
| ENV BGP_KEEPALIVE=30 |
| ENV BGP_LOG_LEVEL=info |
| ENV FRR_DAEMONS=bgpd zebra |
| ENTRYPOINT ["/app/scripts/start.sh"] |