-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
incubator-kie-issues#1483: Create a common Kie Flyway initializer for…
… Kie Modules (#2014) * incubator-kie-issues#1483: Create a common Kie Flyway initializer for Kie Modules * - swf test fixes * - fix import order * - adding kie-flyway config * - restoring platform flyway setup for Data Index & Jobs Service containers
- Loading branch information
Showing
34 changed files
with
191 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,29 +21,47 @@ version: "3" | |
|
||
services: | ||
postgres-compose: | ||
image: postgres:13.4-alpine3.14 | ||
image: postgres:16.1-alpine3.19 | ||
container_name: postgres | ||
environment: | ||
POSTGRES_PASSWORD: pass | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
ports: | ||
- 5432:5432 | ||
volumes: | ||
- ./sql:/docker-entrypoint-initdb.d/ | ||
healthcheck: | ||
test: [ "CMD", "pg_isready", "-q", "-d", "kogito", "-U", "kogito-user" ] | ||
timeout: 45s | ||
interval: 10s | ||
retries: 50 | ||
networks: | ||
- postgres-compose-network | ||
container_name: postgres-container | ||
|
||
pgadmin-compose: | ||
image: dpage/pgadmin4:5.0 | ||
environment: | ||
PGADMIN_DEFAULT_EMAIL: [email protected] | ||
PGADMIN_DEFAULT_PASSWORD: pass | ||
image: dpage/pgadmin4:8.2 | ||
container_name: pgadmin | ||
ports: | ||
- 8055:80 | ||
depends_on: | ||
- postgres-compose | ||
volumes: | ||
- ./pgadmin/servers.json:/pgadmin4/servers.json | ||
- ./pgadmin/pgpass:/pgadmin4/pgpass | ||
entrypoint: > | ||
/bin/sh -c " | ||
cp -f /pgadmin4/pgpass /var/lib/pgadmin/; | ||
chmod 600 /var/lib/pgadmin/pgpass; | ||
/entrypoint.sh | ||
" | ||
environment: | ||
PGADMIN_DEFAULT_EMAIL: [email protected] | ||
PGADMIN_DEFAULT_PASSWORD: pass | ||
PGADMIN_CONFIG_SERVER_MODE: "False" | ||
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: "False" | ||
GUNICORN_ACCESS_LOGFILE: "/dev/null" | ||
networks: | ||
- postgres-compose-network | ||
container_name: pgadmin-container | ||
|
||
networks: | ||
postgres-compose-network: | ||
|
2 changes: 2 additions & 0 deletions
2
kogito-quarkus-examples/process-postgresql-persistence-quarkus/docker-compose/pgadmin/pgpass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
postgres:5432:kogito:kogito-user:kogito-pass | ||
postgres:5432:postgres:kogito-user:kogito-pass |
14 changes: 14 additions & 0 deletions
14
...arkus-examples/process-postgresql-persistence-quarkus/docker-compose/pgadmin/servers.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"Servers": { | ||
"1": { | ||
"Name": "kogito", | ||
"Group": "Servers", | ||
"Host": "postgres", | ||
"Port": 5432, | ||
"MaintenanceDB": "kogito", | ||
"Username": "kogito-user", | ||
"SSLMode": "disable", | ||
"PassFile": "/var/lib/pgadmin/pgpass" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,11 @@ | |
# under the License. | ||
# | ||
|
||
version: '2.1' | ||
version: '3' | ||
|
||
services: | ||
postgres: | ||
image: postgres:13.4-alpine3.14 | ||
image: postgres:16.1-alpine3.19 | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
|
@@ -32,19 +32,30 @@ services: | |
interval: 10s | ||
retries: 50 | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=postgres | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
|
||
pgadmin-compose: | ||
image: dpage/pgadmin4:5.0 | ||
environment: | ||
PGADMIN_DEFAULT_EMAIL: [email protected] | ||
PGADMIN_DEFAULT_PASSWORD: pass | ||
pgadmin: | ||
image: dpage/pgadmin4:8.2 | ||
ports: | ||
- 8055:80 | ||
depends_on: | ||
- postgres | ||
container_name: pgadmin-container | ||
volumes: | ||
- ./pgadmin/servers.json:/pgadmin4/servers.json | ||
- ./pgadmin/pgpass:/pgadmin4/pgpass | ||
entrypoint: > | ||
/bin/sh -c " | ||
cp -f /pgadmin4/pgpass /var/lib/pgadmin/; | ||
chmod 600 /var/lib/pgadmin/pgpass; | ||
/entrypoint.sh | ||
" | ||
environment: | ||
PGADMIN_DEFAULT_EMAIL: [email protected] | ||
PGADMIN_DEFAULT_PASSWORD: pass | ||
PGADMIN_CONFIG_SERVER_MODE: "False" | ||
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: "False" | ||
GUNICORN_ACCESS_LOGFILE: "/dev/null" | ||
|
||
zookeeper: | ||
container_name: zookeeper | ||
|
@@ -95,7 +106,7 @@ services: | |
environment: | ||
DB_VENDOR: POSTGRES | ||
DB_ADDR: postgres | ||
DB_DATABASE: kogito | ||
DB_DATABASE: keycloak | ||
DB_USER: kogito-user | ||
DB_SCHEMA: public | ||
DB_PASSWORD: kogito-pass | ||
|
@@ -105,7 +116,7 @@ services: | |
|
||
data-index: | ||
container_name: data-index | ||
image: quay.io/kiegroup/kogito-data-index-postgresql:${KOGITO_VERSION} | ||
image: docker.io/apache/incubator-kie-kogito-data-index-postgresql:${KOGITO_VERSION} | ||
ports: | ||
- "8180:8080" | ||
depends_on: | ||
|
@@ -119,13 +130,15 @@ services: | |
QUARKUS_DATASOURCE_JDBC_URL: "jdbc:postgresql://postgres:5432/kogito" | ||
QUARKUS_DATASOURCE_USERNAME: kogito-user | ||
QUARKUS_DATASOURCE_PASSWORD: kogito-pass | ||
QUARKUS_FLYWAY_MIGRATE_AT_START: "true" | ||
QUARKUS_FLYWAY_BASELINE_ON_MIGRATE: "true" | ||
QUARKUS_FLYWAY_TABLE: FLYWAY_DATA_INDEX | ||
KAFKA_BOOTSTRAP_SERVERS: kafka:29092 | ||
QUARKUS_HTTP_CORS_ORIGINS: "/.*/" | ||
KOGITO_DATA_INDEX_PROPS: -Dquarkus.hibernate-orm.database.generation=update | ||
|
||
jobs-service: | ||
container_name: jobs-service | ||
image: quay.io/kiegroup/kogito-jobs-service-postgresql:${KOGITO_VERSION} | ||
image: docker.io/apache/incubator-kie-kogito-jobs-service-postgresql:${KOGITO_VERSION} | ||
ports: | ||
- "8580:8080" | ||
depends_on: | ||
|
@@ -138,15 +151,17 @@ services: | |
QUARKUS_DATASOURCE_REACTIVE_URL: "postgresql://postgres:5432/kogito" | ||
QUARKUS_DATASOURCE_USERNAME: kogito-user | ||
QUARKUS_DATASOURCE_PASSWORD: kogito-pass | ||
QUARKUS_FLYWAY_MIGRATE_AT_START: "true" | ||
QUARKUS_FLYWAY_BASELINE_ON_MIGRATE: "true" | ||
QUARKUS_FLYWAY_TABLE: FLYWAY_JOBS_SERVICE | ||
KAFKA_BOOTSTRAP_SERVERS: kafka:29092 | ||
QUARKUS_PROFILE: events-support | ||
QUARKUS_HTTP_PORT: 8580 | ||
QUARKUS_HTTP_CORS_ORIGINS: "/.*/" | ||
|
||
management-console: | ||
container_name: management-console | ||
image: quay.io/kiegroup/kogito-management-console:${KOGITO_VERSION} | ||
image: docker.io/apache/incubator-kie-kogito-management-console:${KOGITO_VERSION} | ||
ports: | ||
- "8280:8080" | ||
depends_on: | ||
|
@@ -159,15 +174,16 @@ services: | |
volumes: | ||
- ../target/classes/META-INF/processSVG/:/home/kogito/data/svg/ | ||
environment: | ||
KOGITO_DATAINDEX_HTTP_URL: http://${DOCKER_GATEWAY_HOST:-host.docker.internal}:8180/graphql | ||
QUARKUS_HTTP_CORS_ORIGINS: "/.*/" | ||
KOGITO_MANAGEMENT_CONSOLE_PROPS: -Dkogito.consoles.keycloak.config.url=http://localhost:8480/auth | ||
-Dkogito.consoles.keycloak.config.health-check-url=http://localhost:8480/auth/realms/kogito/.well-known/openid-configuration | ||
-Dkogito.svg.folder.path=/home/kogito/data/svg | ||
RUNTIME_TOOLS_MANAGEMENT_CONSOLE_KOGITO_ENV_MODE: "PROD" | ||
RUNTIME_TOOLS_MANAGEMENT_CONSOLE_DATA_INDEX_ENDPOINT: http://${DOCKER_GATEWAY_HOST:-host.docker.internal}:8180/graphql | ||
KOGITO_CONSOLES_KEYCLOAK_HEALTH_CHECK_URL: http://localhost:8480/auth/realms/kogito/.well-known/openid-configuration | ||
KOGITO_CONSOLES_KEYCLOAK_URL: http://localhost:8480/auth | ||
KOGITO_CONSOLES_KEYCLOAK_REALM: kogito | ||
KOGITO_CONSOLES_KEYCLOAK_CLIENT_ID: kogito-console-quarkus | ||
|
||
task-console: | ||
container_name: task-console | ||
image: quay.io/kiegroup/kogito-task-console:${KOGITO_VERSION} | ||
image: docker.io/apache/incubator-kie-kogito-task-console:${KOGITO_VERSION} | ||
ports: | ||
- "8380:8080" | ||
depends_on: | ||
|
@@ -176,7 +192,9 @@ services: | |
keycloak: | ||
condition: service_healthy | ||
environment: | ||
KOGITO_DATAINDEX_HTTP_URL: http://${DOCKER_GATEWAY_HOST:-host.docker.internal}:8180/graphql | ||
QUARKUS_HTTP_CORS_ORIGINS: "/.*/" | ||
KOGITO_TASK_CONSOLE_PROPS: -Dkogito.consoles.keycloak.config.url=http://localhost:8480/auth | ||
-Dkogito.consoles.keycloak.config.health-check-url=http://localhost:8480/auth/realms/kogito/.well-known/openid-configuration | ||
RUNTIME_TOOLS_TASK_CONSOLE_KOGITO_ENV_MODE: "PROD" | ||
RUNTIME_TOOLS_TASK_CONSOLE_DATA_INDEX_ENDPOINT: http://${DOCKER_GATEWAY_HOST:-host.docker.internal}:8180/graphql | ||
KOGITO_CONSOLES_KEYCLOAK_HEALTH_CHECK_URL: http://localhost:8480/auth/realms/kogito/.well-known/openid-configuration | ||
KOGITO_CONSOLES_KEYCLOAK_URL: http://localhost:8480/auth | ||
KOGITO_CONSOLES_KEYCLOAK_REALM: kogito | ||
KOGITO_CONSOLES_KEYCLOAK_CLIENT_ID: kogito-console-quarkus |
2 changes: 2 additions & 0 deletions
2
...arkus-examples/process-usertasks-timer-quarkus-with-console/docker-compose/pgadmin/pgpass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
postgres:5432:kogito:kogito-user:kogito-pass | ||
postgres:5432:postgres:kogito-user:kogito-pass |
14 changes: 14 additions & 0 deletions
14
...examples/process-usertasks-timer-quarkus-with-console/docker-compose/pgadmin/servers.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"Servers": { | ||
"1": { | ||
"Name": "kogito", | ||
"Group": "Servers", | ||
"Host": "postgres", | ||
"Port": 5432, | ||
"MaintenanceDB": "kogito", | ||
"Username": "kogito-user", | ||
"SSLMode": "disable", | ||
"PassFile": "/var/lib/pgadmin/pgpass" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,7 +146,7 @@ To make use of this application it is as simple as putting a sending request to | |
Complete curl command can be found below: | ||
``` | ||
```bash | ||
curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' -d '{"name" : "my fancy deal", "traveller" : { "firstName" : "John", "lastName" : "Doe", "email" : "[email protected]", "nationality" : "American","address" : { "street" : "main street", "city" : "Boston", "zipCode" : "10005", "country" : "US" }}}' http://localhost:8080/deals | ||
``` | ||
|
@@ -156,13 +156,13 @@ this will then trigger the review user task that you can work with. | |
First you can display all active reviews of deals | ||
``` | ||
```bash | ||
curl -H 'Content-Type:application/json' -H 'Accept:application/json' http://localhost:8080/dealreviews | ||
``` | ||
based on the response you can select one of the reviews to see more details | ||
``` | ||
```bash | ||
curl -H 'Content-Type:application/json' -H 'Accept:application/json' http://localhost:8080/dealreviews/{uuid}/tasks?user=john | ||
``` | ||
|
Oops, something went wrong.