move to s6 overlay structure (#13)

* move to s6 overlay structure

* Use alpine:latest and latest s6

* cleanup Dockerfile

* use .env file on docker run

* change mappings so all under one folder

* Update README

* change cron default to hourly to keep things updated

* add section about editing xteve settings

* add nice 'logging' to stdout
This commit is contained in:
taylorbourne
2020-03-05 11:13:14 -08:00
committed by GitHub
parent 7a7cfd1a56
commit 3a11a46f09
23 changed files with 1676 additions and 262 deletions

View File

@@ -0,0 +1,12 @@
#!/usr/bin/with-contenv bash
CRON_FILE=/config/cron.txt
if [ -f "$CRON_FILE" ]; then
. $CRON_FILE
else
echo "[crond-setup] No cron definition found..."
echo "[crond-setup] By default, cronjob will run every night at midnight unless cron file is configured."
fi
crond -f

View File

@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bash
exec \
s6-setuidgid abc /bin/bash -c \
'xteve -port=$XTEVE_PORT -config=/xteve/'