diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-09-21 19:57:11 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-11-05 15:36:15 +0300 |
commit | d0a839c09db4aab2c63cf832465880da537c9367 (patch) | |
tree | e909ff2079da0ef760204ae08c821e93d2ea92e4 /docker/debian-ncp | |
parent | fa2279faa9c5db091b97376a323275ad1f368ef6 (diff) |
added docker-x86: nc and ncp for development. Update docker-armhf
Diffstat (limited to 'docker/debian-ncp')
-rw-r--r-- | docker/debian-ncp/Dockerfile | 9 | ||||
-rwxr-xr-x | docker/debian-ncp/run-parts.sh | 18 |
2 files changed, 27 insertions, 0 deletions
diff --git a/docker/debian-ncp/Dockerfile b/docker/debian-ncp/Dockerfile new file mode 100644 index 00000000..208603ff --- /dev/null +++ b/docker/debian-ncp/Dockerfile @@ -0,0 +1,9 @@ +FROM debian:stretch-slim + +MAINTAINER Ignacio Núñez Hernanz <nacho@ownyourbits.com> + +CMD /bin/bash + +RUN mkdir -p /etc/services.d + +COPY docker/debian-ncp/run-parts.sh / diff --git a/docker/debian-ncp/run-parts.sh b/docker/debian-ncp/run-parts.sh new file mode 100755 index 00000000..dee4fe61 --- /dev/null +++ b/docker/debian-ncp/run-parts.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +cleanup() +{ + for file in $( ls -1rv /etc/services.d ); do + /etc/services.d/"$file" stop "$1" + done + exit +} + +trap cleanup SIGTERM + +for file in $( ls -1v /etc/services.d ); do + /etc/services.d/"$file" start "$1" +done + +echo "Init done" +while true; do sleep 0.5; done # do nothing, just wait for trap from 'docker stop' |