Skip to content

Commit

Permalink
NO-ISSUE: Add new process examples and update existing ones (apache#2914
Browse files Browse the repository at this point in the history
)

Co-authored-by: Thiago Lugli <[email protected]>
Co-authored-by: Thiago Lugli <[email protected]>
  • Loading branch information
3 people authored and ricardozanini committed Feb 25, 2025
1 parent 5770d1e commit 386a7a8
Show file tree
Hide file tree
Showing 175 changed files with 22,478 additions and 1,798 deletions.
24 changes: 24 additions & 0 deletions .rat-excludes
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,30 @@ process-user-tasks-subsystem.iml
Dockerfile.jvm
# examples/process-user-tasks-subsystem/src/main/docker/Dockerfile.native
Dockerfile.native
# examples/process-accelerator/process-accelerator.iml
process-accelerator.iml
# examples/process-accelerator/src/main/resources/calculate.bpmn
calculate.bpmn
# examples/process-business-calendar/process-business-calendar.iml
process-business-calendar.iml
# examples/process-business-calendar/src/main/resources/bankTransaction.bpmn2
bankTransaction.bpmn2
# examples/process-compact-architecture/src/main/resources/NewHiringOffer.dmn
NewHiringOffer.dmn
# examples/process-compact-architecture/src/main/resources/hiring.bpmn
hiring.bpmn
# examples/process-compact-architecture/src/main/resources/META-INF/processSVG/hiring.svg
hiring.svg
# examples/process-event-driven/process-event-driven.iml
process-event-driven.iml
# examples/process-event-driven/hotels/src/main/resources/hotel.bpmn
hotel.bpmn
# examples/process-event-driven/travelers/src/main/resources/travelers.bpmn
travelers.bpmn
# examples/process-user-tasks-subsystem/src/main/resources/hiring.bpmn
hiring.bpmn
# examples/process-user-tasks-subsystem/src/main/resources/META-INF/processSVG/hiring.svg
hiring.svg
# examples/process-compact-architecture/.gitignore
.gitignore
# examples/process-compact-architecture/process-compact-architecture.iml
Expand Down
3 changes: 3 additions & 0 deletions examples/process-accelerator/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
svg/
docker-compose/svg/
docker-compose/persistence/
478 changes: 478 additions & 0 deletions examples/process-accelerator/README.md

Large diffs are not rendered by default.

75 changes: 75 additions & 0 deletions examples/process-accelerator/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

services:
postgres:
container_name: process-accelerator-postgres
image: postgres:16.7-alpine3.21
ports:
- "5432:5432"
volumes:
- ./docker-compose/sql:/docker-entrypoint-initdb.d:Z
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
timeout: 45s
interval: 10s
retries: 50
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: kie

pgadmin:
container_name: process-accelerator-pgadmin
image: dpage/pgadmin4:8.14
ports:
- 8055:80
depends_on:
- postgres
volumes:
- ./docker-compose/pgadmin/servers.json:/pgadmin4/servers.json
- ./docker-compose/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"

process-accelerator:
container_name: process-accelerator
image: dev.local/apache/process-accelerator:${PROJECT_VERSION}
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
environment:
QUARKUS_DATASOURCE_JDBC_URL: "jdbc:postgresql://postgres:5432/kie"
QUARKUS_DATASOURCE_REACTIVE_URL: "postgresql://postgres:5432/kie"
QUARKUS_DATASOURCE_USERNAME: kie-user
QUARKUS_DATASOURCE_PASSWORD: kie-pass
extra_hosts:
- "127.0.0.1:host-gateway"
2 changes: 2 additions & 0 deletions examples/process-accelerator/docker-compose/pgadmin/pgpass
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
postgres:5432:kie:kie-user:kie-pass
postgres:5432:postgres:kie-user:kie-pass
14 changes: 14 additions & 0 deletions examples/process-accelerator/docker-compose/pgadmin/servers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"Servers": {
"1": {
"Name": "kie",
"Group": "Servers",
"Host": "postgres",
"Port": 5432,
"MaintenanceDB": "kie",
"Username": "kie-user",
"SSLMode": "disable",
"PassFile": "/var/lib/pgadmin/pgpass"
}
}
}
29 changes: 29 additions & 0 deletions examples/process-accelerator/docker-compose/sql/01_init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may not use this file except in compliance
-- with the License. You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing,
-- software distributed under the License is distributed on an
-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-- KIND, either express or implied. See the License for the
-- specific language governing permissions and limitations
-- under the License.

CREATE ROLE "kie-user" WITH
LOGIN
SUPERUSER
INHERIT
CREATEDB
CREATEROLE
NOREPLICATION
PASSWORD 'kie-pass';

GRANT ALL PRIVILEGES ON DATABASE postgres TO "kie-user";
GRANT ALL PRIVILEGES ON DATABASE kie TO "kie-user";
GRANT ALL PRIVILEGES ON DATABASE kie TO postgres;
Loading

0 comments on commit 386a7a8

Please sign in to comment.