2023-10-25 17:59:47 +00:00
|
|
|
# keycloak
|
2023-10-25 17:47:33 +00:00
|
|
|
|
2023-10-25 17:59:47 +00:00
|
|
|
Deploys a stand alone [keycloak](https://www.keycloak.org)
|
2023-10-25 17:47:33 +00:00
|
|
|
|
|
|
|
## Clone required repositories
|
|
|
|
|
|
|
|
```
|
2023-10-25 17:59:47 +00:00
|
|
|
$ laconic-so --stack keycloak setup-repositories
|
2023-10-25 17:47:33 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Build containers
|
|
|
|
|
|
|
|
```
|
2023-10-25 17:59:47 +00:00
|
|
|
$ laconic-so --stack keycloak build-containers
|
2023-10-25 17:47:33 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Create a deployment
|
|
|
|
|
|
|
|
```
|
2023-12-06 21:49:49 +00:00
|
|
|
$ laconic-so --stack keycloak deploy init --map-ports-to-host any-same --output keycloak-spec.yml
|
2023-10-25 17:59:47 +00:00
|
|
|
$ laconic-so deploy create --spec-file keycloak-spec.yml --deployment-dir keycloak-deployment
|
2023-10-25 17:47:33 +00:00
|
|
|
```
|
2023-12-06 21:51:36 +00:00
|
|
|
|
2023-10-25 17:47:33 +00:00
|
|
|
## Start the stack
|
2023-12-06 21:51:36 +00:00
|
|
|
|
2023-10-25 17:47:33 +00:00
|
|
|
```
|
2023-10-25 17:59:47 +00:00
|
|
|
$ laconic-so deployment --dir keycloak-deployment start
|
2023-10-25 17:47:33 +00:00
|
|
|
```
|
2023-12-06 21:51:36 +00:00
|
|
|
|
2023-10-25 17:47:33 +00:00
|
|
|
Display stack status:
|
2023-12-06 21:51:36 +00:00
|
|
|
|
2023-10-25 17:47:33 +00:00
|
|
|
```
|
2023-10-25 17:59:47 +00:00
|
|
|
$ laconic-so deployment --dir keycloak-deployment ps
|
2023-10-25 17:47:33 +00:00
|
|
|
Running containers:
|
|
|
|
```
|
2023-12-06 21:51:36 +00:00
|
|
|
|
2023-10-25 17:59:47 +00:00
|
|
|
See stack logs:
|
2023-12-06 21:51:36 +00:00
|
|
|
|
2023-10-25 17:47:33 +00:00
|
|
|
```
|
2023-10-25 17:59:47 +00:00
|
|
|
$ laconic-so deployment --dir keycloak-deployment logs
|
2023-10-25 17:47:33 +00:00
|
|
|
```
|