Viewport onto your services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

61 lines
1.6 KiB

image:
name: lapwing.org/fedora25/cupola
version: 0.3.0
srcimage:
name: lapwing.org/fedora25/flask
version: v20170809
build:
- copy:
src: ../cupola
dest: /srv/cupola
chmod: 0755
- run:
command: chcon -R -t httpd_sys_content_t /srv/cupola/cupola/static/
- run:
command: adduser -d /srv/cupola -s /bin/nologin -G nginx cupola
fail: False
- run:
command: chown -R cupola:nginx /srv/cupola
- run:
command: pip3 install -r /srv/cupola/requirements.txt
- copy:
src: deployment/sponson/systemd/cupola-api.service
dest: /etc/systemd/system
owner: 0
group: 0
- copy:
src: deployment/sponson/systemd/cupola-rq_all@.service
dest: /etc/systemd/system
owner: 0
group: 0
- copy:
src: deployment/sponson/systemd/cupola-rq_high@.service
dest: /etc/systemd/system
owner: 0
group: 0
- copy:
src: deployment/sponson/systemd/cupola-runtime.service
dest: /etc/systemd/system
owner: 0
group: 0
- copy:
src: deployment/tmpfiles.d/cupola-gunicorn.conf
dest: /etc/tmpfiles.d
owner: 0
group: 0
- copy:
src: deployment/sponson/nginx.conf
dest: /etc/nginx/nginx.conf
systemctl:
enable:
- cupola-runtime
- cupola-api
- cupola-rq_high@1
- cupola-rq_all@1
container:
limits:
ram: 256
maintainer:
name: Sam Black
email: samwwwblack@lapwing.org
url: https://samwwwblack.lapwing.org