From bf2cf5539a25c45dd761fca440434a627eb2bfbf Mon Sep 17 00:00:00 2001 From: Miraty Date: Wed, 22 Jan 2025 19:14:30 +0100 Subject: [PATCH] readme: document profiles --- README.md | 2 +- setup-xoq.sh | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3097084..130aeb4 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ podman-compose build # build every other service images Optionally, to enable the `knot-secondary` service: ```shell # uncomment "notify:" lines in knot.conf, then: -podman-compose up knot knot-secondary # generate QUIC keys +podman-compose --profile=secondary up knot knot-secondary # generate QUIC keys ./setup-xoq.sh # setup mutual XFR over QUIC ``` diff --git a/setup-xoq.sh b/setup-xoq.sh index 3e52fe8..ba4dd11 100755 --- a/setup-xoq.sh +++ b/setup-xoq.sh @@ -2,12 +2,12 @@ ENGINE="podman" # "podman" or "docker" -$ENGINE-compose exec knot-secondary knotc conf-begin -$ENGINE-compose exec knot-secondary knotc conf-unset remote[primary].cert-key -$ENGINE-compose exec knot-secondary knotc conf-set remote[primary].cert-key "$($ENGINE-compose exec knot cat /var/log/knot/knot.log | grep "certificate public key" | cut -d " " -f 7 | tail -1 | tr -d "\r")" -$ENGINE-compose exec knot-secondary knotc conf-commit +$ENGINE-compose --profile=secondary exec knot-secondary knotc conf-begin +$ENGINE-compose --profile=secondary exec knot-secondary knotc conf-unset remote[primary].cert-key +$ENGINE-compose --profile=secondary exec knot-secondary knotc conf-set remote[primary].cert-key "$($ENGINE-compose --profile=secondary exec knot cat /var/log/knot/knot.log | grep "certificate public key" | cut -d " " -f 7 | tail -1 | tr -d "\r")" +$ENGINE-compose --profile=secondary exec knot-secondary knotc conf-commit -$ENGINE-compose exec knot knotc conf-begin -$ENGINE-compose exec knot knotc conf-unset remote[secondary].cert-key -$ENGINE-compose exec knot knotc conf-set remote[secondary].cert-key "$($ENGINE-compose exec knot-secondary cat /var/log/knot/knot.log | grep "certificate public key" | cut -d " " -f 7 | tail -1 | tr -d "\r")" -$ENGINE-compose exec knot knotc conf-commit +$ENGINE-compose --profile=secondary exec knot knotc conf-begin +$ENGINE-compose --profile=secondary exec knot knotc conf-unset remote[secondary].cert-key +$ENGINE-compose --profile=secondary exec knot knotc conf-set remote[secondary].cert-key "$($ENGINE-compose --profile=secondary exec knot-secondary cat /var/log/knot/knot.log | grep "certificate public key" | cut -d " " -f 7 | tail -1 | tr -d "\r")" +$ENGINE-compose --profile=secondary exec knot knotc conf-commit