feat: initial docker installation support

Refs #1076
This commit is contained in:
Jose Diaz-Gonzalez
2019-05-13 03:05:50 -04:00
parent 6b42fde028
commit 3eb9c9b3ba
10 changed files with 172 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
exec >> /var/log/services/dokku-restore
exec 2>&1
if [[ "$1" -ne 0 ]]; then
echo "Error initializing dokku! Retrying in 30 seconds..."
exec sleep 30
exit 0
fi
echo "Done initializing dokku."
exec sleep infinity
exit 0

View File

@@ -0,0 +1,14 @@
#!/bin/bash
exec >> /var/log/services/dokku-init
exec 2>&1
echo "Running dokku-init"
cd /tmp || exit 1
if [[ -n "$DOKKU_HOSTNAME" ]]; then
echo "dokku dokku/vhost_enable boolean true" | debconf-set-selections
dokku --quiet domains:set-global "$DOKKU_HOSTNAME"
fi
exec dokku ps:restore

View File

@@ -0,0 +1,7 @@
#!/bin/bash
exec >> /var/log/services/nginx
exec 2>&1
echo "Running nginx"
exec /usr/sbin/nginx -c /etc/nginx/nginx.conf -g "daemon off;"

View File

@@ -0,0 +1,7 @@
#!/bin/bash
exec >> /var/log/services/rsyslog
exec 2>&1
echo "Running rsyslog"
exec /usr/sbin/rsyslogd -n