Compare commits
4 Commits
440f7d6797
...
502366db10
Author | SHA1 | Date |
---|---|---|
pictuga | 502366db10 | |
pictuga | 296b69f40e | |
pictuga | a2deb90185 | |
pictuga | 72024f2864 |
|
@ -10,6 +10,6 @@ steps:
|
||||||
- name: pylint
|
- name: pylint
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache python3 py3-lxml py3-gevent py3-pip py3-wheel py3-pylint py3-enchant hunspell-en
|
- apk add --no-cache python3 py3-lxml py3-pip py3-wheel py3-pylint py3-enchant hunspell-en
|
||||||
- pip3 install --no-cache-dir .[full]
|
- pip3 install --no-cache-dir .[full]
|
||||||
- pylint morss --rcfile=.pylintrc --disable=C,R,W --fail-under=8
|
- pylint morss --rcfile=.pylintrc --disable=C,R,W --fail-under=8
|
||||||
|
|
|
@ -107,7 +107,7 @@ Providers supporting `cloud-init` (AWS, Oracle Cloud Infrastructure), based on U
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- python3-wheels
|
- python3-wheel
|
||||||
- python3-lxml
|
- python3-lxml
|
||||||
- git
|
- git
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
|
@ -121,8 +121,10 @@ write_files:
|
||||||
|
|
||||||
runcmd:
|
runcmd:
|
||||||
- update-ca-certificates
|
- 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]
|
- pip install git+https://git.pictuga.com/pictuga/morss.git#egg=morss[full]
|
||||||
- gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN:---workers 4 --threads 4} --preload --access-logfile - morss
|
- gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - morss
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run
|
## Run
|
||||||
|
|
4
app.json
4
app.json
|
@ -5,8 +5,8 @@
|
||||||
"value": 1,
|
"value": 1,
|
||||||
"required": false
|
"required": false
|
||||||
},
|
},
|
||||||
"WORKERS": {
|
"GUNICORN": {
|
||||||
"value": 4,
|
"value": "",
|
||||||
"required": false
|
"required": false
|
||||||
},
|
},
|
||||||
"CACHE": {
|
"CACHE": {
|
||||||
|
|
|
@ -4,7 +4,7 @@ if [ "$1" = "sh" ] || [ "$1" = "bash" ]; then
|
||||||
exec $@
|
exec $@
|
||||||
|
|
||||||
elif [ -z "$1" ] || [ "$@" = "run" ]; then
|
elif [ -z "$1" ] || [ "$@" = "run" ]; then
|
||||||
gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN:---workers 4 --threads 4} --preload --access-logfile - morss
|
gunicorn --bind 0.0.0.0:${PORT:-8000} ${GUNICORN} --preload --access-logfile - morss
|
||||||
|
|
||||||
else
|
else
|
||||||
morss $@
|
morss $@
|
||||||
|
|
Loading…
Reference in New Issue