summaryrefslogtreecommitdiffstats
path: root/docker/debian
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:53:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:53:30 +0000
commit2c7cac91ed6e7db0f6937923d2b57f97dbdbc337 (patch)
treec05dc0f8e6aa3accc84e3e5cffc933ed94941383 /docker/debian
parentInitial commit. (diff)
downloadfrr-2c7cac91ed6e7db0f6937923d2b57f97dbdbc337.tar.xz
frr-2c7cac91ed6e7db0f6937923d2b57f97dbdbc337.zip
Adding upstream version 8.4.4.upstream/8.4.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docker/debian')
-rw-r--r--docker/debian/Dockerfile28
-rw-r--r--docker/debian/README.md20
-rwxr-xr-xdocker/debian/docker-start4
3 files changed, 52 insertions, 0 deletions
diff --git a/docker/debian/Dockerfile b/docker/debian/Dockerfile
new file mode 100644
index 0000000..7476e5f
--- /dev/null
+++ b/docker/debian/Dockerfile
@@ -0,0 +1,28 @@
+FROM debian:buster
+MAINTAINER Rob Gil (rob@rem5.com)
+
+ENV DEBIAN_FRONTEND noninteractive
+ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
+
+RUN apt-get update && \
+ apt-get install -y libpcre3-dev apt-transport-https ca-certificates curl wget logrotate \
+ libc-ares2 libjson-c3 vim procps libreadline7 gnupg2 lsb-release apt-utils \
+ tini && rm -rf /var/lib/apt/lists/*
+
+RUN curl -s https://deb.frrouting.org/frr/keys.asc | apt-key add -
+RUN echo deb https://deb.frrouting.org/frr $(lsb_release -s -c) frr-stable | tee -a /etc/apt/sources.list.d/frr.list
+
+RUN apt-get update && \
+ apt-get install -y frr frr-pythontools && \
+ rm -rf /var/lib/apt/lists/*
+
+# Own the config / PID files
+RUN mkdir -p /var/run/frr
+RUN chown -R frr:frr /etc/frr /var/run/frr
+
+# Simple init manager for reaping processes and forwarding signals
+ENTRYPOINT ["/usr/bin/tini", "--"]
+
+# Default CMD starts watchfrr
+COPY docker-start /usr/lib/frr/docker-start
+CMD ["/usr/lib/frr/docker-start"]
diff --git a/docker/debian/README.md b/docker/debian/README.md
new file mode 100644
index 0000000..3c1209b
--- /dev/null
+++ b/docker/debian/README.md
@@ -0,0 +1,20 @@
+# Debian 10 Docker
+
+This is a binary docker container build of Debian 10 (buster) with FRR.
+
+# Build
+
+```
+docker build -t frr-debian:latest .
+```
+
+# Running
+
+```
+docker run -itd --privileged --name frr frr-debian:latest
+```
+
+vtysh
+```
+docker exec -it frr vtysh
+```
diff --git a/docker/debian/docker-start b/docker/debian/docker-start
new file mode 100755
index 0000000..d954142
--- /dev/null
+++ b/docker/debian/docker-start
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+source /usr/lib/frr/frrcommon.sh
+/usr/lib/frr/watchfrr $(daemon_list)