cloud-init per boot
continuous-integration/drone/push Build is failing Details

master
pictuga 2021-12-05 16:49:40 +01:00
parent 856be36769
commit 22fc0e076b
1 changed files with 5 additions and 1 deletions

View File

@ -118,13 +118,17 @@ write_files:
DEBUG=1
CACHE=diskcache
CACHE_SIZE=1073741824
- path: /var/lib/cloud/scripts/per-boot/morss.sh
permissions: 744
content: |
#!/bin/sh
gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - --daemon morss
runcmd:
- update-ca-certificates
- iptables -I INPUT 6 -m state --state NEW -p tcp --dport {PORT:-8000} -j ACCEPT
- netfilter-persistent save
- pip install git+https://git.pictuga.com/pictuga/morss.git#egg=morss[full]
- gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - morss
```
## Run