|
|
@ -20,7 +20,7 @@ steps:
|
|
|
|
- name: shared
|
|
|
|
- name: shared
|
|
|
|
path: /tmp/shared
|
|
|
|
path: /tmp/shared
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy
|
|
|
|
- name: serve
|
|
|
|
image: python:3.7-alpine
|
|
|
|
image: python:3.7-alpine
|
|
|
|
commands:
|
|
|
|
commands:
|
|
|
|
- apk add unzip wget make git curl
|
|
|
|
- apk add unzip wget make git curl
|
|
|
@ -32,11 +32,21 @@ steps:
|
|
|
|
- cp -rf /tmp/Webseite/pages/*.md pages/
|
|
|
|
- cp -rf /tmp/Webseite/pages/*.md pages/
|
|
|
|
- cp -rf /tmp/Webseite/static/* static/
|
|
|
|
- cp -rf /tmp/Webseite/static/* static/
|
|
|
|
- source /tmp/shared/.venv/bin/activate
|
|
|
|
- source /tmp/shared/.venv/bin/activate
|
|
|
|
- python app.py &
|
|
|
|
- ( python3 app.py > /dev/null 2> /dev/null & );
|
|
|
|
- mkdir /tmp/target
|
|
|
|
- mkdir /tmp/shared/target
|
|
|
|
- cd /tmp/target
|
|
|
|
- cd /tmp/shared/target
|
|
|
|
|
|
|
|
- wget -mpEk http://127.0.0.1:5000
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
|
|
|
- name: shared
|
|
|
|
|
|
|
|
path: /tmp/shared
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: target
|
|
|
|
|
|
|
|
image: python:3.7-alpine
|
|
|
|
|
|
|
|
commands:
|
|
|
|
|
|
|
|
- apk add unzip wget make git curl
|
|
|
|
|
|
|
|
- mkdir /tmp/shared/target
|
|
|
|
|
|
|
|
- cd /tmp/shared/target
|
|
|
|
- wget -mpEk http://127.0.0.1:5000
|
|
|
|
- wget -mpEk http://127.0.0.1:5000
|
|
|
|
- ls /tmp/target
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- name: shared
|
|
|
|
- name: shared
|
|
|
|
path: /tmp/shared
|
|
|
|
path: /tmp/shared
|
|
|
|