Browse Source

new: [py3o-{fusion,server},lo-xcgd] add charm

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
0k/dev/master
Valentin Lab 5 years ago
parent
commit
df6a81ba9a
  1. 7
      lo-xcgd/metadata.yml
  2. 11
      py3o-fusion/hooks/py3o_render_server-relation-joined
  3. 11
      py3o-fusion/metadata.yml
  4. 18
      py3o-server/hooks/lo_server-relation-joined
  5. 14
      py3o-server/metadata.yml

7
lo-xcgd/metadata.yml

@ -0,0 +1,7 @@
docker-image: docker.0k.io/lo-xcgd:1.0.0
data-resources:
- /tmp
provides:
lo-server:

11
py3o-fusion/hooks/py3o_render_server-relation-joined

@ -0,0 +1,11 @@
#!/bin/bash
set -e
config-add "\
services:
$MASTER_BASE_SERVICE_NAME:
command:
- start-py3o-fusion
- \"--renderserver=$TARGET_SERVICE_NAME\"
"

11
py3o-fusion/metadata.yml

@ -0,0 +1,11 @@
docker-image: docker.0k.io/py3o-fusion:1.0.0
uses:
py3o-render-server:
#constraint: required | recommended | optional
#auto: pair | summon | none ## default: pair
constraint: required
auto: summon
solves:
py3o-render: "Render server"

18
py3o-server/hooks/lo_server-relation-joined

@ -0,0 +1,18 @@
#!/bin/bash
set -e
config-add "\
services:
$MASTER_BASE_SERVICE_NAME:
command:
- \"start-py3o-renderserver\"
- \"--java=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so\"
- \"--ure=/usr/share\"
- \"--office=/usr/lib/libreoffice\"
- \"--driver=juno\"
- \"--sofficeport=8997\"
- \"--sofficehost=$MASTER_TARGET_SERVICE_NAME\"
volumes:
- $HOST_DATASTORE/$MASTER_TARGET_SERVICE_NAME/tmp:/tmp
"

14
py3o-server/metadata.yml

@ -0,0 +1,14 @@
docker-image: docker.0k.io/py3o-server:1.0.0
provides:
py3o-render-server:
uses:
lo-server:
#constraint: required | recommended | optional
#auto: pair | summon | none ## default: pair
constraint: required
auto: summon
solves:
lo-server: "Libre office server"
Loading…
Cancel
Save