diff options
| author | Christian Franke <chris@opensourcerouting.org> | 2019-03-26 18:27:24 +0100 |
|---|---|---|
| committer | Christian Franke <chris@opensourcerouting.org> | 2019-03-26 18:32:50 +0100 |
| commit | 727aebd6a324b0bfe7fa8a9fa31eecea99471883 (patch) | |
| tree | 72b9a348f7d9954dcac35e4ef2cd1ecca3e1f497 | |
| parent | d5737d2baa838cab38983ff3deb576e1420bf434 (diff) | |
alpine: Move docker-start to Docker build
The standard Alpine package should not install docker glue,
so remove it from the APKBUILD and install it in the Dockerfile
instead.
| -rw-r--r-- | alpine/APKBUILD.in | 1 | ||||
| -rw-r--r-- | docker/alpine/Dockerfile | 1 | ||||
| -rwxr-xr-x | docker/alpine/docker-start (renamed from alpine/docker-start) | 6 |
3 files changed, 5 insertions, 3 deletions
diff --git a/alpine/APKBUILD.in b/alpine/APKBUILD.in index 969b85f524..75613ae005 100644 --- a/alpine/APKBUILD.in +++ b/alpine/APKBUILD.in @@ -60,7 +60,6 @@ package() { cd "$builddir" make DESTDIR="$pkgdir" install - install -Dm755 "$srcdir"/docker-start "$pkgdir"$_sbindir install -Dm644 "$srcdir"/daemons "$pkgdir"$_sysconfdir install -d "$pkgdir"/etc/init.d ln -s ${_sbindir}/frr "$pkgdir"/etc/init.d/frr diff --git a/docker/alpine/Dockerfile b/docker/alpine/Dockerfile index dd29358b07..f19f1e877b 100644 --- a/docker/alpine/Dockerfile +++ b/docker/alpine/Dockerfile @@ -32,4 +32,5 @@ RUN mkdir -p /pkgs/apk COPY --from=alpine-builder /pkgs/apk/ /pkgs/apk/ RUN apk add --no-cache tini RUN apk add --no-cache --allow-untrusted /pkgs/apk/x86_64/*.apk +COPY docker/alpine/docker-start /usr/lib/frr/docker-start ENTRYPOINT [ "/sbin/tini", "--", "/usr/lib/frr/docker-start" ] diff --git a/alpine/docker-start b/docker/alpine/docker-start index 43854ab142..52cfb664ce 100755 --- a/alpine/docker-start +++ b/docker/alpine/docker-start @@ -6,5 +6,7 @@ set -e # For volume mounts... ## chown -R frr:frr /etc/frr -/etc/init.d/frr start -exec sleep 10000d +/usr/lib/frr/frrinit.sh start + +# Sleep forever +exec tail -f /dev/null |
