Browse Source

Add missing libreoffice support for sponson and vagrant

develop
Sam Black 5 years ago
parent
commit
dd522e9494
  1. 15
      deployment/sponson/systemd/vowel-soffice.service
  2. 2
      deployment/vagrant/bootstrap.sh
  3. 0
      deployment/vagrant/systemd/vowel-soffice.service
  4. 10
      vowel.yaml

15
deployment/sponson/systemd/vowel-soffice.service

@ -0,0 +1,15 @@
[Unit]
Description=Vowel LibreOffice service
[Service]
PIDFile=/run/soffice.pid
User=vowel
Group=nginx
ExecStart=/usr/bin/soffice --accept="socket,host=localhost,port=8100;urp;StarOffice.Service" --headless --pidfile="/run/soffice.pid"
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
Restart=on-failure
PrivateTmp=true
[Install]
WantedBy=multi-user.target

2
deployment/vagrant/bootstrap.sh

@ -54,7 +54,7 @@ echo "Install python3 packages"
dnf install -y python3-greenlet python3-bson python3-markupsafe python3-sqlalchemy
dnf install -y python3-lxml
dnf install -y python3-coverage
dnf install -y libreoffice-pyuno
dnf install -y libreoffice-impress
# virtualenv
echo "Install virtualenv"

0
deployment/systemd/vowel-soffice.service → deployment/vagrant/systemd/vowel-soffice.service

10
vowel.yaml

@ -4,7 +4,9 @@ image:
srcimage: lapwing.org/fedora23/flask
build:
- dnf:
pkg: python3-lxml
pkglist:
- python3-lxml
- libreoffice-impress
- copy:
src: ../vowel
dest: /srv/vowel
@ -38,6 +40,11 @@ image:
dest: /etc/systemd/system
owner: 0
group: 0
- copy:
src: deployment/sponson/systemd/vowel-soffice.service
dest: /etc/systemd/system
owner: 0
group: 0
- copy:
src: deployment/tmpfiles.d/vowel-gunicorn.conf
dest: /etc/tmpfiles.d
@ -49,6 +56,7 @@ image:
systemctl:
enable:
- vowel-runtime
- vowel-soffice
- vowel-rq_scheduler
- vowel-rq_high@1
- vowel-rq_all@1

Loading…
Cancel
Save