Skip to content

Commit c786c79

Browse files
authored
Merge pull request #29 from swaroopar/feature/extendKeyValidity
extend key validity
2 parents 64cbcdc + 5b927af commit c786c79

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,43 @@
11
# Build Zitadel Dev Docker Images
22

3-
To enhance developer experience, we prepare the Zitadel development docker images with all necessary configurations.
4-
The developer will have to simply start these application and database docker containers and
5-
then the environment is ready to use without any additional configuration.
3+
To enhance the developer experience, we prepare the Zitadel development docker images with all necessary configurations.
4+
The developer will have to simply start these application and database docker containers and
5+
then the environment is ready to use without any additional configuration.
66

77
## Image Build Job
88

9-
The GitHub action [build-dev-images](../../../.github/workflows/build-zitadel-dev-images.yml) builds the necessary images
9+
The GitHub action [build-dev-images](../../../.github/workflows/build-zitadel-dev-images.yml) builds the necessary
10+
images
1011
and uploads it to the GitHub packages and also uploads all configuration details to action artifacts.
1112

12-
> Images will be always simply built with 'latest' tag.
13+
> Images will always be simply built with 'latest' tag.
1314
1415
## Configure Client Systems
1516

16-
Whenever this job is executed, the images generated will contain new information for all clients.
17-
Hence, it is necessary for the developer to also update the following files whenever a new image is created
18-
and also inform team that the latest images must be pulled.
17+
Whenever this job is executed, the images generated will contain new information for all clients.
18+
Hence, it is necessary for the developer to also update the following files whenever a new image is created
19+
and also inform the team that the latest images must be pulled.
1920

2021
- [xpanse UI auth config](https://github.com/eclipse-xpanse/xpanse-ui/blob/main/.env.zitadel-local)
2122
- [xpanse app auth config](https://github.com/eclipse-xpanse/xpanse/blob/main/runtime/src/main/resources/application-zitadel.properties)
2223

2324
## Building Images Locally
2425

25-
If necessary to build the images locally, then the following steps must be followed.
26+
If necessary to build the images locally, then the following steps must be followed.
2627

2728
```shell
2829
docker build -t custom-pg-db:latest .
2930
docker compose up -d
3031
```
31-
Wait for the server to be up and the service account key to be generated under `machinekey` folder.
32+
33+
Wait for the server to be up and the service account key to be generated under `machinekey` folder.
3234
Then copy the service account key to `terraform` folder and then apply changes.
3335

36+
> [!CAUTION]
37+
> If there are any existing terraform state files in the folder, they must be removed before running.
38+
3439
```shell
3540
cd ../../terraform
36-
cp ../../build/machinekey/zitadel-machine.sa.json .
41+
cp ../local/build/machinekey/zitadel-admin-sa.json .
3742
terraform apply -var-file=environments/local.tfvars -auto-approve
3843
```

zitadel/local/build/docker-compose.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ services:
2525
ZITADEL_FIRSTINSTANCE_ORG_MACHINE_MACHINEKEY_TYPE: 1
2626
ZITADEL_FIRSTINSTANCE_ORG_HUMAN_PASSWORDCHANGEREQUIRED: false
2727
ZITADEL_FIRSTINSTANCE_ORG_HUMAN_PASSWORD: Zitadel@123 # Default admin password.
28+
ZITADEL_SYSTEMDEFAULTS_KEYCONFIG_PRIVATEKEYLIFETIME: 999999h
29+
ZITADEL_SYSTEMDEFAULTS_KEYCONFIG_PUBLICKEYLIFETIME: 999999h
2830
depends_on:
2931
db:
3032
condition: 'service_healthy'

0 commit comments

Comments
 (0)