Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
English |
---|
This article is provided as a technical guide to set up Joget DX |
...
8 with PostgreSQL database on Kubernetes. |
...
The following steps were implemented on Ubuntu |
...
22.04, please modify the commands to suit your environment. |
Table of Contents
Code Block | ||||
---|---|---|---|---|
| ||||
# create custom Dockerfile cat <<EOF > joget-dx8-postgresql-tomcat9.Dockerfile FROM jogetworkflow/joget-dx8-tomcat9:78.01.141 # Copy postgresql jdbc driver (download from https://jdbc.postgresql.org/download/postgresql-42.27.193.jar) COPY postgresql-42.27.193.jar /deployments/apache-tomcat/lib/postgresql-42.27.193.jar EOF # build docker image docker build -f joget-dx8-postgresql-tomcat9.Dockerfile --rm -t quay.io/replaceWithYourAccount/joget-dx8-postgresql-tomcat9:78.01.141 . # push docker image docker push quay.io/replaceWithYourAccount/joget-dx8-postgresql-tomcat9:78.01.141 |
Code Block | ||||
---|---|---|---|---|
| ||||
# deploy postgresql using Helm helm repoinstall addpostgres bitnami httpsoci://chartsregistry-1.bitnamidocker.com/bitnami helm install postgres bitnamiio/bitnamicharts/postgresql helm list helm get notes postgres # wait for postgresql to startup kubectl wait \ --for=condition=ready pod \ --selector=app.kubernetes.io/name=postgresql \ --timeout=180s |
...
Code Block | ||||
---|---|---|---|---|
| ||||
# setcheck for postgresql password export POSTGRES_PASSWORD=$(kubectl get secret --namespace default postgres-postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode) # run psql kubectl run postgres-postgresql-client --rm --tty -i --restart='Never' --namespace default --image docker.io/bitnami/postgresql:1116.113.0-debian-1012-r24r4 --env="PGPASSWORD=$POSTGRES_PASSWORD" \ --command -- psql --host postgres-postgresql -U postgres -d postgres -p 5432 $ CREATE DATABASE jwdb; $ \quit |
...
Code Block | ||||
---|---|---|---|---|
| ||||
# import sql cat jwdb-postgresql-dx8postgres.pgsqlsql | kubectl exec -i postgres-postgresql-0 -- env PGPASSWORD=$POSTGRES_PASSWORD psql -U postgres -d jwdb |
...