diff --git a/Dockerfile b/Dockerfile index dd4f97c..4663e73 100755 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,7 @@ RUN apt-get install -y \ uuid-dev ## Install GONK specific dependencies -RUN apt-get install -y fail2ban iptables net-tools +RUN apt-get install -y fail2ban iptables net-tools cron ## Copy over source and other scripts COPY resources /build diff --git a/resources/gonk.sh b/resources/gonk.sh index 18f0081..2161883 100755 --- a/resources/gonk.sh +++ b/resources/gonk.sh @@ -1,5 +1,8 @@ #!/bin/bash +echo "Starting pre-requisite services..." +service cron start + echo "Starting Gonk node..." echo " ______ @@ -11,6 +14,8 @@ echo " ______ |/\|/\|" + + if [ -f /var/gonk ]; then echo "Gonk has already been provisioned" service fail2ban start