Skip to content

Commit

Permalink
Merge pull request #8 from RutvikPanchal/dev
Browse files Browse the repository at this point in the history
v1.4.0 release
  • Loading branch information
RutvikPanchal authored Jul 30, 2024
2 parents 954947a + e90050c commit 8c28891
Show file tree
Hide file tree
Showing 13 changed files with 181 additions and 15 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 1.4.0
- Added JFrog Artifactory docker-compose
- Added Infinispan docker-compose
- Added Prometheus docker-compose
- Added Grafana docker-compose
- Fixed minor issue with Kafka - Single Node and minor refinements

## 1.3.1
- JBoss Web Server
- removed context.xml mount and added the same functionality using environment variables
Expand Down
14 changes: 14 additions & 0 deletions Grafana/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3'
services:
grafana:
image: grafana/grafana:9.5.20
container_name: grafana
volumes:
- ./mounts/provisioning/:/etc/grafana/provisioning/
ports:
- "3000:3000"
networks:
- master
networks:
master:
external: true
5 changes: 5 additions & 0 deletions Grafana/mounts/provisioning/datasources/datasource.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
url: http://prometheus:9090
18 changes: 18 additions & 0 deletions Infinispan/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3'
services:
infinispan:
image: quay.io/infinispan/server:15.0
container_name: infinispan
ports:
- "11222:11222"
command: "-c infinispan.xml"
volumes:
- ./mounts/infinispan.xml:/opt/infinispan/server/conf/infinispan.xml:z
# environment:
# USER: admin
# PASS: password
networks:
- master
networks:
master:
external: true
39 changes: 39 additions & 0 deletions Infinispan/mounts/infinispan.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--
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.
-->
<infinispan>
<cache-container name="default"/>
<server>
<interfaces>
<interface name='public'>
<inet-address value='${infinispan.bind.address:0.0.0.0}'/>
</interface>
</interfaces>
<socket-bindings default-interface='public' port-offset='0'>
<socket-binding name='default' port='11222'/>
</socket-bindings>
<endpoints>
<endpoint socket-binding='default'>
<hotrod-connector name="hotrod"/>
<rest-connector name="rest"/>
</endpoint>
</endpoints>
</server>
</infinispan>
5 changes: 3 additions & 2 deletions JBoss Web Server/_regenerate-war.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ call cd ./target
call copy "tomcat-jdbc.war" "../../"

call cd ../../
call curl -o postgresql.jar https://jdbc.postgresql.org/download/postgresql-42.6.0.jar
call curl -o mariadb.jar https://dlm.mariadb.com/2896635/Connectors/java/connector-java-2.7.9/mariadb-java-client-2.7.9.jar

call curl -L -o postgresql.jar https://jdbc.postgresql.org/download/postgresql-42.6.0.jar
call curl -L -o mariadb.jar https://dlm.mariadb.com/2896635/Connectors/java/connector-java-2.7.9/mariadb-java-client-2.7.9.jar
5 changes: 3 additions & 2 deletions JBoss Web Server/_regenerate-war.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ cd ./target
cp "tomcat-jdbc.war" "../../"

cd ../../
curl -o postgresql.jar https://jdbc.postgresql.org/download/postgresql-42.6.0.jar
curl -o mariadb.jar https://dlm.mariadb.com/2896635/Connectors/java/connector-java-2.7.9/mariadb-java-client-2.7.9.jar

curl -L -o postgresql.jar https://jdbc.postgresql.org/download/postgresql-42.6.0.jar
curl -L -o mariadb.jar https://dlm.mariadb.com/2896635/Connectors/java/connector-java-2.7.9/mariadb-java-client-2.7.9.jar
13 changes: 13 additions & 0 deletions JFrog Artifactory/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3'
services:
artifactory:
image: releases-docker.jfrog.io/jfrog/artifactory-oss:latest
container_name: artifactory
ports:
- '8087:8081'
environment: {}
networks:
- master
networks:
master:
external: true
14 changes: 11 additions & 3 deletions Kafka - Single Node/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ services:
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
networks:
- master

broker:
image: confluentinc/cp-kafka:latest
Expand All @@ -24,15 +26,21 @@ services:
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
networks:
- master

kafdrop:
image: obsidiandynamics/kafdrop
image: obsidiandynamics/kafdrop:4.0.2
container_name: kafdrop
restart: 'no'
ports:
- '9000:9000'
environment:
KAFKA_BROKERCONNECT: 'broker:29092'
JVM_OPTS: '-Xms16M -Xmx48M -Xss180K -XX:-TieredCompilation -XX:+UseStringDeduplication -noverify'
depends_on:
- 'broker'
- 'broker'
networks:
- master
networks:
master:
external: true
15 changes: 15 additions & 0 deletions Prometheus/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3'
services:
prometheus:
image: prom/prometheus:v2.45.6
container_name: prometheus
volumes:
- ./mounts/prometheus.yaml:/etc/prometheus/prometheus.yaml
command: '--config.file=/etc/prometheus/prometheus.yaml'
ports:
- "9090:9090"
networks:
- master
networks:
master:
external: true
11 changes: 11 additions & 0 deletions Prometheus/mounts/prometheus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
scrape_configs:
- job_name: 'kogito-app'
scrape_interval: 2s
metrics_path: /q/metrics
static_configs:
- targets: ['host.docker.internal:8080']
- job_name: 'kogito-springboot-app'
scrape_interval: 2s
metrics_path: /actuator/prometheus
static_configs:
- targets: ['host.docker.internal:8080']
32 changes: 24 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,32 @@ A collection of docker-compose.yaml files to quickly spin up pods in Docker Desk

4.) `docker network create master`

5.) `docker compose up -d`

<br />

## Network Ports

**NOTE (Windows) :** run `netstat -ano` on a terminal to see all the in use ports

**NOTE:** host.docker.internal refers to "locahost" of the host machine

| Application | Ports ↓ |
| --- | --- |
| Kafka | 2181 <br /> 9000 <br /> 9092 |
| Grafana | 3000 |
| MariaDB | 3306 |
| Postgres | 4321 |
| Nexus | 8081 |
| RHPAM - Business Central | 8082 |
| RHPAM - Kie Server | 8083 |
| RHPAM - Kie Server - Customized | 8084 <br /> 8447 |
| JBoss Web Server | 8086 |
| JFrog Artifactory | 8087 |
| ActiveMQ | 8161 <br /> 61616 |
| Apache Cassandra | 9042 |
| Prometheus | 9060 |
| Infinispan | 11222 |

## Apps
<br/>
Expand All @@ -40,21 +48,29 @@ A collection of docker-compose.yaml files to quickly spin up pods in Docker Desk

2.) **Apache Cassandra** - Basic Apache Cassandra Database server

3.) **JBoss Web Server** - Basic Jboss Web Server which depends on **Postgres**
3.) **Grafana** - Basic Grafana **Metrics** Dashboard

4.) **Infinispan** - An open-source in-memory database

5.) **JBoss Web Server** - Basic Jboss Web Server which depends on **Postgres**

6.) **JFrog Artifactory** - Basic Artifactory **Repository Manager** server

7.) **Kafka** - Single Node Kafka server with a single **Zookeeper** instance and a **Kafdrop UI** WebApp

4.) **Kafka** - Single Node Kafka server with a single **Zookeeper** instance and a **Kafdrop UI** WebApp
8.) **MariaDB** - Basic MariaDB Database server

5.) **MariaDB** - Basic MariaDB Database server
9.) **Nexus** - Basic Nexus **Repository Manager** server

6.) **Nexus** - Basic Nexus **Repository Manager** server
10.) **Postgres** - Basic PostgreSQL **Database** server

7.) **Postgres** - Basic PostgreSQL **Database** server
11.) **Prometheus** - Basic Prometheus **Metrics** Collection server

8.) **RHPAM Business Central** - RedHat Process Automation Manager Business Central instance which allows users to develop and manage RHPAM Projects
12.) **RHPAM Business Central** - RedHat Process Automation Manager Business Central instance which allows users to develop and manage RHPAM Projects

9.) **RHPAM Kie Server** - RedHat Process Automation Manager Kie Server instance which depends on **AMQ Broker**, **Postgres** and **Nexus**
13.) **RHPAM Kie Server** - RedHat Process Automation Manager Kie Server instance which depends on **AMQ Broker**, **Postgres** and **Nexus**

10.) **RHPAM Kie Server (Customized)** - Customized RedHat Process Automation Manager Kie Server instance which includes customizations injected as jar files and volume mounts (java projects which extend the api are included as well)
14.) **RHPAM Kie Server (Customized)** - Customized RedHat Process Automation Manager Kie Server instance which includes customizations injected as jar files and volume mounts (java projects which extend the api are included as well)

<br/>

Expand Down
18 changes: 18 additions & 0 deletions RHPAM - Business Central/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ services:
KIE_ADMIN_PWD: password
networks:
- master
kie-server:
image: registry.redhat.io/rhpam-7/rhpam-kieserver-rhel8:7.13.2
container_name: kie-server
environment:
# Credentials
KIE_ADMIN_USER: admin
KIE_ADMIN_PWD: password

MAVEN_REPOS: BC
BC_MAVEN_REPO_ID: business-central
BC_MAVEN_REPO_URL: http://business-central:8080/maven2
BC_MAVEN_REPO_USERNAME: admin
BC_MAVEN_REPO_PASSWORD: password
KIE_SERVER_CONTROLLER_HOST: business-central
depends_on:
- business-central
networks:
- master
networks:
master:
external: true

0 comments on commit 8c28891

Please sign in to comment.