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:
12
root/etc/services.d/crond/run
Normal file
12
root/etc/services.d/crond/run
Normal 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
|
||||
5
root/etc/services.d/xteve/run
Normal file
5
root/etc/services.d/xteve/run
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc /bin/bash -c \
|
||||
'xteve -port=$XTEVE_PORT -config=/xteve/'
|
||||
Reference in New Issue
Block a user