diff --git a/app/data/stacks/keycloak/README.md b/app/data/stacks/keycloak/README.md new file mode 100644 index 00000000..f5b997cf --- /dev/null +++ b/app/data/stacks/keycloak/README.md @@ -0,0 +1,41 @@ +# keycloak + +Deploys a stand alone [keycloak](https://www.keycloak.org) + +## Clone required repositories + +``` +$ laconic-so --stack keycloak setup-repositories +``` + +## Build containers + +``` +$ laconic-so --stack keycloak build-containers +``` + +## Create a deployment + +``` +$ 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 +``` 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..3115b775 --- /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/keycloak-reg-api + - cerc/keycloak-reg-ui + - cerc/webapp-base +pods: + - keycloak