Commit 11179bf8 authored by Ian Johnson's avatar Ian Johnson Committed by Ian Johnson

snapcraft.yaml: update registry arg for dev svcs

The registry arg is now a --key=val style option, where the value is
a custom URL spec with the scheme as the registry type. Since the snap
only works with consul for now, the scheme is just "consul".

Note we have to specify the value as an environment variable because
snapd doesn't allow the ":" character in a app's command spec. See
https://bugs.launchpad.net/snapd/+bug/1827392 for the upstream
bug/feature request to snapd.
Signed-off-by: default avatarIan Johnson <ian.johnson@canonical.com>
parent 2d33988b
......@@ -273,7 +273,9 @@ apps:
- core-data
- core-metadata
- support-logging
command: bin/device-random -confdir $SNAP_DATA/config/device-random -profile res --registry
command: bin/device-random -confdir $SNAP_DATA/config/device-random -profile res --registry $CONSUL_ADDR
environment:
CONSUL_ADDR: "consul://localhost:8500"
daemon: simple
plugs: [network, network-bind]
device-virtual:
......@@ -285,7 +287,9 @@ apps:
- core-data
- core-metadata
- support-logging
command: bin/device-virtual -confdir $SNAP_DATA/config/device-virtual -profile res --registry
command: bin/device-virtual -confdir $SNAP_DATA/config/device-virtual -profile res --registry $CONSUL_ADDR
environment:
CONSUL_ADDR: "consul://localhost:8500"
daemon: simple
plugs: [network, network-bind]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment