commit
d697ba67a2
@ -0,0 +1,2 @@
|
|||||||
|
# Contenu du dépôt
|
||||||
|
Ce dépôt regroupe les conteneurs Docker que j'ai fait et pouvant servir à tout un chacun.
|
@ -0,0 +1,12 @@
|
|||||||
|
FROM debian:buster-slim
|
||||||
|
ENV FRR_DAEMONS zebra bgpd ospfd ospf6d ripd ripngd isisd pimd ldpd nhrpd eigrpd babeld sharpd pbrd bfdd
|
||||||
|
COPY confint.sh /confint.sh
|
||||||
|
COPY ENTRYPOINT.sh /ENTRYPOINT.sh
|
||||||
|
RUN chmod +x /ENTRYPOINT.sh /confint.sh
|
||||||
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends frr frr-rpki-rtrlib iputils-ping busybox vim-tiny
|
||||||
|
RUN ln -s /usr/bin/vim.tiny /usr/bin/vim
|
||||||
|
ENTRYPOINT ["/ENTRYPOINT.sh"]
|
||||||
|
|
||||||
|
# docker run -tid --cap-add=NET_ADMIN --cap-add=NET_RAW --cap-add=SYS_ADMIN --name frr-buster frr-buster
|
||||||
|
# https://github.com/iwaseyusuke/docker-frr
|
||||||
|
# https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities
|
@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
for DAEMON in $FRR_DAEMONS
|
||||||
|
do
|
||||||
|
if [ -s "/usr/lib/frr/${DAEMON}" ]
|
||||||
|
then
|
||||||
|
touch /etc/frr/${DAEMON}.conf
|
||||||
|
sed -i "s/${DAEMON}=no/${DAEMON}=yes/" /etc/frr/daemons
|
||||||
|
else
|
||||||
|
echo "No such daemon: ${DAEMON}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
service frr restart > /dev/null 2>&1
|
||||||
|
|
||||||
|
if [ -f /confint.sh ]
|
||||||
|
then
|
||||||
|
/confint.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
bash
|
||||||
|
|
||||||
|
service frr stop > /dev/null 2>&1
|
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Configuration des interfaces
|
||||||
|
|
Loading…
Reference in new issue