summaryrefslogtreecommitdiffstats
path: root/alpine/docker-start
diff options
context:
space:
mode:
authorArthur Jones <arthur.jones@riverbed.com>2018-04-06 02:52:15 +0200
committerArthur Jones <arthur.jones@riverbed.com>2018-04-10 00:34:50 +0200
commit915c81b3ef426fd52ec138ad069ea1271052f209 (patch)
tree51d1000ba4b6bb29a5729dc2355dd39c7cf588c9 /alpine/docker-start
parentMerge pull request #2037 from coreswitch/master (diff)
downloadfrr-915c81b3ef426fd52ec138ad069ea1271052f209.tar.xz
frr-915c81b3ef426fd52ec138ad069ea1271052f209.zip
alpine packaging: use a more standard packaging format
Currently, we just package the frr daemons, but we don't run them. This is fine for basic tests, but it is inconvenient to orchestrate the daemons from downstream test environments. Here, we follow the redhat and debianpkg formats more closely, putting the daemons in /usr/lib/frr and including the frr user and groups in the package. We also include a docker specific startup script and a sysvinit link in /etc/init.d/frr for openrc based alpine installs. Testing done: Built packages, built base images, everything seems to work fine. Uninstalled the package, all the daemons stopped. Issue: https://github.com/FRRouting/frr/issues/2030 Signed-off-by: Arthur Jones <arthur.jones@riverbed.com>
Diffstat (limited to 'alpine/docker-start')
-rwxr-xr-xalpine/docker-start10
1 files changed, 10 insertions, 0 deletions
diff --git a/alpine/docker-start b/alpine/docker-start
new file mode 100755
index 000000000..43854ab14
--- /dev/null
+++ b/alpine/docker-start
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+##
+# For volume mounts...
+##
+chown -R frr:frr /etc/frr
+/etc/init.d/frr start
+exec sleep 10000d