Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial pass at a standalone keycloak stack #609

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions app/data/stacks/keycloak/README.md
Original file line number Diff line number Diff line change
@@ -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
```
14 changes: 14 additions & 0 deletions app/data/stacks/keycloak/deploy/commands.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright © 2023 Vulcanize
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file shouldn't be necessary since it has no code in it.


# 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 <http:#www.gnu.org/licenses/>.
13 changes: 13 additions & 0 deletions app/data/stacks/keycloak/stack.yml
Original file line number Diff line number Diff line change
@@ -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