From a3e141769a8dfd5006ae22cc0e0fe9d84a6dc974 Mon Sep 17 00:00:00 2001 From: srwadleigh <7832+srwadleigh@users.noreply.github.com> Date: Wed, 25 Oct 2023 17:47:33 +0000 Subject: [PATCH 1/5] initial pass at a standalone keycloak stack --- app/data/stacks/keycloak/README.md | 141 ++++++++++++++++++++ app/data/stacks/keycloak/deploy/commands.py | 14 ++ app/data/stacks/keycloak/stack.yml | 13 ++ 3 files changed, 168 insertions(+) create mode 100644 app/data/stacks/keycloak/README.md create mode 100644 app/data/stacks/keycloak/deploy/commands.py create mode 100644 app/data/stacks/keycloak/stack.yml diff --git a/app/data/stacks/keycloak/README.md b/app/data/stacks/keycloak/README.md new file mode 100644 index 00000000..8f0dc1c4 --- /dev/null +++ b/app/data/stacks/keycloak/README.md @@ -0,0 +1,141 @@ +# mainnet-eth + +Deploys a "head-tracking" mainnet Ethereum stack comprising a [go-ethereum](https://github.com/cerc-io/go-ethereum) execution layer node and a [lighthouse](https://github.com/sigp/lighthouse) consensus layer node. + +## Clone required repositories + +``` +$ laconic-so --stack mainnet-eth setup-repositories +``` + +## Build containers + +``` +$ laconic-so --stack mainnet-eth build-containers +``` + +## Create a deployment + +``` +$ laconic-so --stack mainnet-eth deploy init --map-ports-to-host any-same --output mainnet-eth-spec.yml +$ laconic-so deploy create --spec-file mainnet-eth-spec.yml --deployment-dir mainnet-eth-deployment +``` +## Start the stack +``` +$ laconic-so deployment --dir mainnet-eth-deployment start +``` +Display stack status: +``` +$ laconic-so deployment --dir mainnet-eth-deployment ps +Running containers: +id: f39608eca04d72d6b0f1f3acefc5ebb52908da06e221d20c7138f7e3dff5e423, name: laconic-ef641b4d13eb61ed561b19be67063241-foundry-1, ports: +id: 4052b1eddd886ae0d6b41f9ff22e68a70f267b2bfde10f4b7b79b5bd1eeddcac, name: laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-geth-1-1, ports: 30303/tcp, 30303/udp, 0.0.0.0:49184->40000/tcp, 0.0.0.0:49185->6060/tcp, 0.0.0.0:49186->8545/tcp, 8546/tcp +id: ac331232e597944b621b3b8942ace5dafb14524302cab338ff946c7f6e5a1d52, name: laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1, ports: 0.0.0.0:49187->8001/tcp +``` +See stack logs: +``` +$ laconic-so deployment --dir mainnet-eth-deployment logs +time="2023-07-25T09:46:29-06:00" level=warning msg="The \"CERC_SCRIPT_DEBUG\" variable is not set. Defaulting to a blank string." +laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1 | Jul 25 15:45:13.362 INFO Logging to file path: "/var/lighthouse-data-dir/beacon/logs/beacon.log" +laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1 | Jul 25 15:45:13.365 INFO Lighthouse started version: Lighthouse/v4.1.0-693886b +laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1 | Jul 25 15:45:13.365 INFO Configured for network name: mainnet +laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1 | Jul 25 15:45:13.366 INFO Data directory initialised datadir: /var/lighthouse-data-dir +laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1 | Jul 25 15:45:13.366 INFO Deposit contract address: 0x00000000219ab540356cbb839cbe05303d7705fa, deploy_block: 11184524 +laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1 | Jul 25 15:45:13.424 INFO Starting checkpoint sync remote_url: https://beaconstate.ethstaker.cc/, service: beacon +``` +## Monitoring stack sync progress +Both go-ethereum and lighthouse will engage in an initial chain sync phase that will last up to several hours depending on hardware performance and network capacity. +Syncing can be monitored by looking for these log messages: +``` +Jul 24 12:34:17.001 INFO Downloading historical blocks est_time: 5 days 11 hrs, speed: 14.67 slots/sec, distance: 6932481 slots (137 weeks 3 days), service: slot_notifier +INFO [07-24|12:14:52.493] Syncing beacon headers downloaded=145,920 left=17,617,968 eta=1h23m32.815s +INFO [07-24|12:33:15.238] Syncing: chain download in progress synced=1.86% chain=148.94MiB headers=368,640@95.03MiB bodies=330,081@40.56MiB receipts=330,081@13.35MiB eta=37m54.505s +INFO [07-24|12:35:13.028] Syncing: state download in progress synced=1.32% state=4.64GiB accounts=2,850,314@677.57MiB slots=18,663,070@3.87GiB codes=26662@111.14MiB eta=3h18m0.699s +``` +Once synced up these log messages will be observed: +``` +INFO Synced slot: 6952515, block: 0x5bcb…f6d9, epoch: 217266, finalized_epoch: 217264, finalized_root: 0x6342…2c5c, exec_hash: 0x8d8c…2443 (verified), peers: 31, service: slot_notifier +INFO [07-25|03:04:48.941] Imported new potential chain segment number=17,767,316 hash=84f6e7..bc2cb0 blocks=1 txs=137 mgas=16.123 elapsed=57.087ms mgasps=282.434 dirty=461.46MiB +INFO [07-25|03:04:49.042] Chain head was updated number=17,767,316 hash=84f6e7..bc2cb0 root=ca58b2..8258c1 elapsed=2.480111ms +``` +## Clean up + +Stop the stack: +``` +$ laconic-so deployment --dir mainnet-eth-deployment stop +``` +This leaves data volumes in place, allowing the stack to be subsequently re-started. +To permanently *delete* the stack's data volumes run: +``` +$ laconic-so deployment --dir mainnet-eth-deployment stop --delete-data-volumes +``` +After deleting the volumes, any subsequent re-start will begin chain sync from cold. + +## Ports +It is usually necessary to expose certain container ports on one or more the host's addresses to allow incoming connections. +Any ports defined in the Docker compose file are exposed by default with random port assignments, bound to "any" interface (IP address 0.0.0.0), but the port mappings can be +customized by editing the "spec" file generated by `laconic-so deploy init`. + +In this example, ports `8545` and `5052` have been assigned to a specific addresses/port combination on the host, while +port `40000` has been left with random assignment: +``` +$ cat mainnet-eth-spec.yml +stack: mainnet-eth +ports: + mainnet-eth-geth-1: + - '10.10.10.10:8545:8545' + - '40000' + mainnet-eth-lighthouse-1: + - '10.10.10.10:5052:5052' +volumes: + mainnet_eth_config_data: ./data/mainnet_eth_config_data + mainnet_eth_geth_1_data: ./data/mainnet_eth_geth_1_data + mainnet_eth_lighthouse_1_data: ./data/mainnet_eth_lighthouse_1_data +``` +In addition, a stack-wide port mapping "recipe" can be applied at the time the +`laconic-so deploy init` command is run, by supplying the desired recipe with the `--map-ports-to-host` option. The following recipes are supported: +| Recipe | Host Port Mapping | +|--------|-------------------| +| any-variable-random | Bind to 0.0.0.0 using a random port assigned at start time (default) | +| localhost-same | Bind to 127.0.0.1 using the same port number as exposed by the containers | +| any-same | Bind to 0.0.0.0 using the same port number as exposed by the containers | +| localhost-fixed-random | Bind to 127.0.0.1 using a random port number selected at the time the command is run (not checked for already in use)| +| any-fixed-random | Bind to 0.0.0.0 using a random port number selected at the time the command is run (not checked for already in use) | +## Data volumes +Container data volumes are bind-mounted to specified paths in the host filesystem. +The default setup (generated by `laconic-so deploy init`) places the volumes in the `./data` subdirectory of the deployment directory: +``` +$ cat mainnet-eth-spec.yml +stack: mainnet-eth +ports: + mainnet-eth-geth-1: + - '10.10.10.10:8545:8545' + - '40000' + mainnet-eth-lighthouse-1: + - '10.10.10.10:5052:5052' +volumes: + mainnet_eth_config_data: ./data/mainnet_eth_config_data + mainnet_eth_geth_1_data: ./data/mainnet_eth_geth_1_data + mainnet_eth_lighthouse_1_data: ./data/mainnet_eth_lighthouse_1_data +``` +A synced-up stack will consume around 900GB of data volume space: +``` +$ sudo du -h mainnet-eth-deployment/data/ +150M mainnet-eth-deployment/data/mainnet_eth_lighthouse_1_data/beacon/freezer_db +25G mainnet-eth-deployment/data/mainnet_eth_lighthouse_1_data/beacon/chain_db +16K mainnet-eth-deployment/data/mainnet_eth_lighthouse_1_data/beacon/network +368M mainnet-eth-deployment/data/mainnet_eth_lighthouse_1_data/beacon/logs +26G mainnet-eth-deployment/data/mainnet_eth_lighthouse_1_data/beacon +26G mainnet-eth-deployment/data/mainnet_eth_lighthouse_1_data +8.0K mainnet-eth-deployment/data/mainnet_eth_config_data +4.0K mainnet-eth-deployment/data/mainnet_eth_geth_1_data/keystore +527G mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth/chaindata/ancient/chain +527G mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth/chaindata/ancient +859G mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth/chaindata +4.8M mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth/nodes +242M mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth/ethash +669M mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth/triecache +860G mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth +860G mainnet-eth-deployment/data/mainnet_eth_geth_1_data +885G mainnet-eth-deployment/data/ +``` diff --git a/app/data/stacks/keycloak/deploy/commands.py b/app/data/stacks/keycloak/deploy/commands.py new file mode 100644 index 00000000..8f41d085 --- /dev/null +++ b/app/data/stacks/keycloak/deploy/commands.py @@ -0,0 +1,14 @@ +# Copyright © 2023 Vulcanize + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. + +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . diff --git a/app/data/stacks/keycloak/stack.yml b/app/data/stacks/keycloak/stack.yml new file mode 100644 index 00000000..616f7dda --- /dev/null +++ b/app/data/stacks/keycloak/stack.yml @@ -0,0 +1,13 @@ +version: "1.0" +name: keycloak +description: "Keycloak" +repos: + - git.vdb.to/cerc-io/keycloak-reg-api + - git.vdb.to/cerc-io/keycloak-reg-ui +containers: + - cerc/keycloak + - cerc/webapp-base + - cerc/keycloak-reg-api + - cerc/keycloak-reg-ui +pods: + - mainnet-eth-keycloak -- 2.45.2 From ca057925da43a02d511bb2b1bc67ebb436e0aea0 Mon Sep 17 00:00:00 2001 From: srwadleigh <7832+srwadleigh@users.noreply.github.com> Date: Wed, 25 Oct 2023 17:59:47 +0000 Subject: [PATCH 2/5] update readme --- app/data/stacks/keycloak/README.md | 124 +++-------------------------- 1 file changed, 10 insertions(+), 114 deletions(-) diff --git a/app/data/stacks/keycloak/README.md b/app/data/stacks/keycloak/README.md index 8f0dc1c4..caa48b50 100644 --- a/app/data/stacks/keycloak/README.md +++ b/app/data/stacks/keycloak/README.md @@ -1,141 +1,37 @@ -# mainnet-eth +# keycloak -Deploys a "head-tracking" mainnet Ethereum stack comprising a [go-ethereum](https://github.com/cerc-io/go-ethereum) execution layer node and a [lighthouse](https://github.com/sigp/lighthouse) consensus layer node. +Deploys a stand alone [keycloak](https://www.keycloak.org) ## Clone required repositories ``` -$ laconic-so --stack mainnet-eth setup-repositories +$ laconic-so --stack keycloak setup-repositories ``` ## Build containers ``` -$ laconic-so --stack mainnet-eth build-containers +$ laconic-so --stack keycloak build-containers ``` ## Create a deployment ``` -$ laconic-so --stack mainnet-eth deploy init --map-ports-to-host any-same --output mainnet-eth-spec.yml -$ laconic-so deploy create --spec-file mainnet-eth-spec.yml --deployment-dir mainnet-eth-deployment +$ laconic-so --stack keycloak deploy init --map-ports-to-host any-same --outputkeycloak-spec.yml +$ laconic-so deploy create --spec-file keycloak-spec.yml --deployment-dir keycloak-deployment ``` ## Start the stack ``` -$ laconic-so deployment --dir mainnet-eth-deployment start +$ laconic-so deployment --dir keycloak-deployment start ``` Display stack status: ``` -$ laconic-so deployment --dir mainnet-eth-deployment ps +$ laconic-so deployment --dir keycloak-deployment ps Running containers: -id: f39608eca04d72d6b0f1f3acefc5ebb52908da06e221d20c7138f7e3dff5e423, name: laconic-ef641b4d13eb61ed561b19be67063241-foundry-1, ports: -id: 4052b1eddd886ae0d6b41f9ff22e68a70f267b2bfde10f4b7b79b5bd1eeddcac, name: laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-geth-1-1, ports: 30303/tcp, 30303/udp, 0.0.0.0:49184->40000/tcp, 0.0.0.0:49185->6060/tcp, 0.0.0.0:49186->8545/tcp, 8546/tcp -id: ac331232e597944b621b3b8942ace5dafb14524302cab338ff946c7f6e5a1d52, name: laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1, ports: 0.0.0.0:49187->8001/tcp + ``` See stack logs: ``` -$ laconic-so deployment --dir mainnet-eth-deployment logs -time="2023-07-25T09:46:29-06:00" level=warning msg="The \"CERC_SCRIPT_DEBUG\" variable is not set. Defaulting to a blank string." -laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1 | Jul 25 15:45:13.362 INFO Logging to file path: "/var/lighthouse-data-dir/beacon/logs/beacon.log" -laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1 | Jul 25 15:45:13.365 INFO Lighthouse started version: Lighthouse/v4.1.0-693886b -laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1 | Jul 25 15:45:13.365 INFO Configured for network name: mainnet -laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1 | Jul 25 15:45:13.366 INFO Data directory initialised datadir: /var/lighthouse-data-dir -laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1 | Jul 25 15:45:13.366 INFO Deposit contract address: 0x00000000219ab540356cbb839cbe05303d7705fa, deploy_block: 11184524 -laconic-ef641b4d13eb61ed561b19be67063241-mainnet-eth-lighthouse-1-1 | Jul 25 15:45:13.424 INFO Starting checkpoint sync remote_url: https://beaconstate.ethstaker.cc/, service: beacon -``` -## Monitoring stack sync progress -Both go-ethereum and lighthouse will engage in an initial chain sync phase that will last up to several hours depending on hardware performance and network capacity. -Syncing can be monitored by looking for these log messages: -``` -Jul 24 12:34:17.001 INFO Downloading historical blocks est_time: 5 days 11 hrs, speed: 14.67 slots/sec, distance: 6932481 slots (137 weeks 3 days), service: slot_notifier -INFO [07-24|12:14:52.493] Syncing beacon headers downloaded=145,920 left=17,617,968 eta=1h23m32.815s -INFO [07-24|12:33:15.238] Syncing: chain download in progress synced=1.86% chain=148.94MiB headers=368,640@95.03MiB bodies=330,081@40.56MiB receipts=330,081@13.35MiB eta=37m54.505s -INFO [07-24|12:35:13.028] Syncing: state download in progress synced=1.32% state=4.64GiB accounts=2,850,314@677.57MiB slots=18,663,070@3.87GiB codes=26662@111.14MiB eta=3h18m0.699s -``` -Once synced up these log messages will be observed: -``` -INFO Synced slot: 6952515, block: 0x5bcb…f6d9, epoch: 217266, finalized_epoch: 217264, finalized_root: 0x6342…2c5c, exec_hash: 0x8d8c…2443 (verified), peers: 31, service: slot_notifier -INFO [07-25|03:04:48.941] Imported new potential chain segment number=17,767,316 hash=84f6e7..bc2cb0 blocks=1 txs=137 mgas=16.123 elapsed=57.087ms mgasps=282.434 dirty=461.46MiB -INFO [07-25|03:04:49.042] Chain head was updated number=17,767,316 hash=84f6e7..bc2cb0 root=ca58b2..8258c1 elapsed=2.480111ms -``` -## Clean up +$ laconic-so deployment --dir keycloak-deployment logs -Stop the stack: -``` -$ laconic-so deployment --dir mainnet-eth-deployment stop -``` -This leaves data volumes in place, allowing the stack to be subsequently re-started. -To permanently *delete* the stack's data volumes run: -``` -$ laconic-so deployment --dir mainnet-eth-deployment stop --delete-data-volumes -``` -After deleting the volumes, any subsequent re-start will begin chain sync from cold. - -## Ports -It is usually necessary to expose certain container ports on one or more the host's addresses to allow incoming connections. -Any ports defined in the Docker compose file are exposed by default with random port assignments, bound to "any" interface (IP address 0.0.0.0), but the port mappings can be -customized by editing the "spec" file generated by `laconic-so deploy init`. - -In this example, ports `8545` and `5052` have been assigned to a specific addresses/port combination on the host, while -port `40000` has been left with random assignment: -``` -$ cat mainnet-eth-spec.yml -stack: mainnet-eth -ports: - mainnet-eth-geth-1: - - '10.10.10.10:8545:8545' - - '40000' - mainnet-eth-lighthouse-1: - - '10.10.10.10:5052:5052' -volumes: - mainnet_eth_config_data: ./data/mainnet_eth_config_data - mainnet_eth_geth_1_data: ./data/mainnet_eth_geth_1_data - mainnet_eth_lighthouse_1_data: ./data/mainnet_eth_lighthouse_1_data -``` -In addition, a stack-wide port mapping "recipe" can be applied at the time the -`laconic-so deploy init` command is run, by supplying the desired recipe with the `--map-ports-to-host` option. The following recipes are supported: -| Recipe | Host Port Mapping | -|--------|-------------------| -| any-variable-random | Bind to 0.0.0.0 using a random port assigned at start time (default) | -| localhost-same | Bind to 127.0.0.1 using the same port number as exposed by the containers | -| any-same | Bind to 0.0.0.0 using the same port number as exposed by the containers | -| localhost-fixed-random | Bind to 127.0.0.1 using a random port number selected at the time the command is run (not checked for already in use)| -| any-fixed-random | Bind to 0.0.0.0 using a random port number selected at the time the command is run (not checked for already in use) | -## Data volumes -Container data volumes are bind-mounted to specified paths in the host filesystem. -The default setup (generated by `laconic-so deploy init`) places the volumes in the `./data` subdirectory of the deployment directory: -``` -$ cat mainnet-eth-spec.yml -stack: mainnet-eth -ports: - mainnet-eth-geth-1: - - '10.10.10.10:8545:8545' - - '40000' - mainnet-eth-lighthouse-1: - - '10.10.10.10:5052:5052' -volumes: - mainnet_eth_config_data: ./data/mainnet_eth_config_data - mainnet_eth_geth_1_data: ./data/mainnet_eth_geth_1_data - mainnet_eth_lighthouse_1_data: ./data/mainnet_eth_lighthouse_1_data -``` -A synced-up stack will consume around 900GB of data volume space: -``` -$ sudo du -h mainnet-eth-deployment/data/ -150M mainnet-eth-deployment/data/mainnet_eth_lighthouse_1_data/beacon/freezer_db -25G mainnet-eth-deployment/data/mainnet_eth_lighthouse_1_data/beacon/chain_db -16K mainnet-eth-deployment/data/mainnet_eth_lighthouse_1_data/beacon/network -368M mainnet-eth-deployment/data/mainnet_eth_lighthouse_1_data/beacon/logs -26G mainnet-eth-deployment/data/mainnet_eth_lighthouse_1_data/beacon -26G mainnet-eth-deployment/data/mainnet_eth_lighthouse_1_data -8.0K mainnet-eth-deployment/data/mainnet_eth_config_data -4.0K mainnet-eth-deployment/data/mainnet_eth_geth_1_data/keystore -527G mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth/chaindata/ancient/chain -527G mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth/chaindata/ancient -859G mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth/chaindata -4.8M mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth/nodes -242M mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth/ethash -669M mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth/triecache -860G mainnet-eth-deployment/data/mainnet_eth_geth_1_data/geth -860G mainnet-eth-deployment/data/mainnet_eth_geth_1_data -885G mainnet-eth-deployment/data/ ``` -- 2.45.2 From 62a78d48fc22b38bbe7edf3cee79e7bebc285b35 Mon Sep 17 00:00:00 2001 From: srwadleigh <7832+srwadleigh@users.noreply.github.com> Date: Wed, 6 Dec 2023 21:49:49 +0000 Subject: [PATCH 3/5] fix typo in readme --- app/data/stacks/keycloak/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/data/stacks/keycloak/README.md b/app/data/stacks/keycloak/README.md index caa48b50..00bad037 100644 --- a/app/data/stacks/keycloak/README.md +++ b/app/data/stacks/keycloak/README.md @@ -17,7 +17,7 @@ $ laconic-so --stack keycloak build-containers ## Create a deployment ``` -$ laconic-so --stack keycloak deploy init --map-ports-to-host any-same --outputkeycloak-spec.yml +$ laconic-so --stack keycloak deploy init --map-ports-to-host any-same --output keycloak-spec.yml $ laconic-so deploy create --spec-file keycloak-spec.yml --deployment-dir keycloak-deployment ``` ## Start the stack -- 2.45.2 From 0b88d47832a6e3d03694eefd7029a353108c84f6 Mon Sep 17 00:00:00 2001 From: srwadleigh <7832+srwadleigh@users.noreply.github.com> Date: Wed, 6 Dec 2023 21:51:36 +0000 Subject: [PATCH 4/5] clean up readme formatting --- app/data/stacks/keycloak/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/data/stacks/keycloak/README.md b/app/data/stacks/keycloak/README.md index 00bad037..f5b997cf 100644 --- a/app/data/stacks/keycloak/README.md +++ b/app/data/stacks/keycloak/README.md @@ -20,18 +20,22 @@ $ laconic-so --stack keycloak build-containers $ laconic-so --stack keycloak deploy init --map-ports-to-host any-same --output keycloak-spec.yml $ laconic-so deploy create --spec-file keycloak-spec.yml --deployment-dir keycloak-deployment ``` + ## Start the stack + ``` $ laconic-so deployment --dir keycloak-deployment start ``` + Display stack status: + ``` $ laconic-so deployment --dir keycloak-deployment ps Running containers: - ``` + See stack logs: + ``` $ laconic-so deployment --dir keycloak-deployment logs - ``` -- 2.45.2 From 6662252649ceb052d74b3c697dc10e2bbf38557f Mon Sep 17 00:00:00 2001 From: srwadleigh <7832+srwadleigh@users.noreply.github.com> Date: Wed, 6 Dec 2023 21:52:23 +0000 Subject: [PATCH 5/5] update pod name --- app/data/stacks/keycloak/stack.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/data/stacks/keycloak/stack.yml b/app/data/stacks/keycloak/stack.yml index 616f7dda..3115b775 100644 --- a/app/data/stacks/keycloak/stack.yml +++ b/app/data/stacks/keycloak/stack.yml @@ -6,8 +6,8 @@ repos: - git.vdb.to/cerc-io/keycloak-reg-ui containers: - cerc/keycloak - - cerc/webapp-base - cerc/keycloak-reg-api - cerc/keycloak-reg-ui + - cerc/webapp-base pods: - - mainnet-eth-keycloak + - keycloak -- 2.45.2