Browse Source

new: [solid] add charm

wip
Valentin Lab 2 years ago
parent
commit
88141ea3e8
  1. 14
      solid/hooks/web_proxy-relation-joined
  2. 34
      solid/metadata.yml

14
solid/hooks/web_proxy-relation-joined

@ -0,0 +1,14 @@
#!/bin/bash
set -e
url=$(relation-get url) || exit 1
config-add "\
services:
$MASTER_BASE_SERVICE_NAME:
command:
- \"--baseUrl\"
- $url
"

34
solid/metadata.yml

@ -0,0 +1,34 @@
name: solid
summary: "Community Solid Server"
maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
## from: solidproject/community-server:5.1.2
docker-image: docker.0k.io/solid:5.1.2
data-resources:
- /data
uses:
web-proxy:
#constraint: required | recommended | optional
#auto: pair | summon | none ## default: pair
constraint: recommended
auto: pair
solves:
proxy: "Public access"
default-options:
target: !var-expand ${MASTER_BASE_SERVICE_NAME}:3000
# backup:
# constraint: recommended
# auto: pair
# solves:
# backup: "Automatic regular backup"
# default-options:
# ## First pattern matching wins, no pattern matching includes.
# ## include-patterns are checked first, then exclude-patterns
# ## Patterns rules:
# ## - ending / for directory
# ## - '*' authorized
# ## - must start with a '/', will start from $SERVICE_DATASTORE
# #exclude-patterns:
# # - "/var/lib/odoo/sessions/"
Loading…
Cancel
Save