Skip to content

Commit

Permalink
Upgrades MariaDB to 10.11 (#222)
Browse files Browse the repository at this point in the history
* Upgrades MariaDB to 10.11

* Update mariadb to 10.11 in github actions

---------

Co-authored-by: James Wood <[email protected]>
  • Loading branch information
jdrodjpl and James Wood authored Feb 12, 2025
1 parent 778166b commit 9d4fe1c
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 71 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ The `publish-cws-image` job is the CD component of the workflow, triggered upon

- [**Services**](https://docs.github.com/en/actions/using-containerized-services/about-service-containers):
- MariaDB
- Image: mariadb:10.6
- Image: mariadb:10.11
- Ports: 3306:3306
- [**checkout**](https://github.com/marketplace/actions/checkout): This action checks out the repository under `$GITHUB_WORKSPACE`, so the workflow can access it.
- Set up JDK 11:
- Set up JDK 17:
- [**setup-java**](https://github.com/marketplace/actions/setup-java-jdk): This action downloads and sets up a requested version of Java
- Current configuration:
- Java-version: 11
- Java-version: 17
- Distribution: Temurin
- Cache: Maven
- **Create open-source certs**:
Expand Down Expand Up @@ -87,7 +87,7 @@ The `publish-cws-image` job is the CD component of the workflow, triggered upon
- **Check out the repo**:
- Utilizes the same `checkout` action to check out the repository again
- This is done in a new GitHub runner
- **Set up JDK 11**
- **Set up JDK 17**
- Utilizes the same `setup-java` action to set up Java
- **Log in to Docker Hub**:
- [**Docker Login**](https://github.com/marketplace/actions/docker-login): This action is used to log in against a Docker registry
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/camunda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

services:
mdb106:
image: mariadb:10.6
image: mariadb:10.11
ports:
- 3306:3306
env:
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:

services:
mdb106:
image: mariadb:10.6
image: mariadb:10.11
ports:
- 3306:3306
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ldap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

services:
mdb106:
image: mariadb:10.6
image: mariadb:10.11
ports:
- 3306:3306
env:
Expand Down
135 changes: 71 additions & 64 deletions install/docker/console-db-es-ls-kibana/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: '3.2'
version: "3.2"

services:
db:
restart: always
image: mariadb:10.6
image: mariadb:10.11
container_name: cws-db
ports:
- "3306:3306"
Expand All @@ -13,7 +13,7 @@ services:
- MYSQL_ROOT_PASSWORD=test
- TZ=America/Los_Angeles
healthcheck:
test: "/usr/bin/mysql --user=root --password=test --execute \"SHOW DATABASES;\""
test: '/usr/bin/mysql --user=root --password=test --execute "SHOW DATABASES;"'
interval: 3s
timeout: 1s
retries: 5
Expand All @@ -37,83 +37,91 @@ services:
networks:
- external-network
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
interval: 5s
timeout: 2s
retries: 12
test:
[
"CMD-SHELL",
"curl --silent --fail localhost:9200/_cluster/health || exit 1",
]
interval: 5s
timeout: 2s
retries: 12
#ulimits:
#memlock:
#soft: -1
#hard: -1
#nofile:
#soft: 65536
#hard: 65536
#memlock:
#soft: -1
#hard: -1
#nofile:
#soft: 65536
#hard: 65536
#mem_limit: 2g
# kibana:
# labels:
# com.example.service: "kibana"
# com.example.description: "Data visualisation and for log aggregation"
# image: kibana:8.12.0
# container_name: cws-kibana
# ports:
# - "5601:5601"
# networks:
# - frontend
# - backend
# environment:
# - ELASTICSEARCH_HOSTS=http://es:9200
# depends_on:
# - es
# logstash:
# labels:
# com.example.service: "logstash"
# com.example.description: "For logging data"
# image: logstash:8.12.0
# container_name: cws-logstash
# volumes:
# - ./cws-logstash.conf:/home/cws_user/cws-logstash.conf:ro
# - logs-volume:/cws_logs
# command: logstash -f /home/cws_user/cws-logstash.conf
# environment:
# - XPACK_MONITORING_ENABLED=false
# healthcheck:
# test: ["CMD-SHELL", "curl --silent --fail localhost:9600 || exit 1"]
# interval: 5s
# timeout: 2s
# retries: 12
# depends_on:
# - es
# ports:
# - "9600:9600"
# networks:
# - frontend
# - backend
# kibana:
# labels:
# com.example.service: "kibana"
# com.example.description: "Data visualisation and for log aggregation"
# image: kibana:8.12.0
# container_name: cws-kibana
# ports:
# - "5601:5601"
# networks:
# - frontend
# - backend
# environment:
# - ELASTICSEARCH_HOSTS=http://es:9200
# depends_on:
# - es
# logstash:
# labels:
# com.example.service: "logstash"
# com.example.description: "For logging data"
# image: logstash:8.12.0
# container_name: cws-logstash
# volumes:
# - ./cws-logstash.conf:/home/cws_user/cws-logstash.conf:ro
# - logs-volume:/cws_logs
# command: logstash -f /home/cws_user/cws-logstash.conf
# environment:
# - XPACK_MONITORING_ENABLED=false
# healthcheck:
# test: ["CMD-SHELL", "curl --silent --fail localhost:9600 || exit 1"]
# interval: 5s
# timeout: 2s
# retries: 12
# depends_on:
# - es
# ports:
# - "9600:9600"
# networks:
# - frontend
# - backend
cws:
container_name: cws-console
labels:
com.example.service: "cws-server"
com.example.description: "Common Workflow Service"
image: nasa-ammos/common-workflow-service:2.6.0 # update this each CWS release
image: nasa-ammos/common-workflow-service:2.6.0 # update this each CWS release
depends_on:
- db
- es
- ldapsearch
# - logstash
# - kibana
# - logstash
# - kibana
ports:
- "38080:38080"
- "38443:38443"
- "31616:31616"
hostname: cws-console
environment:
- DB_HOST=db
- DB_USER=root
- DB_PW=test
- ES_PROTOCOL=http
- ES_HOST=es
- ES_PORT=9200
- DB_HOST=db
- DB_USER=root
- DB_PW=test
- ES_PROTOCOL=http
- ES_HOST=es
- ES_PORT=9200
healthcheck:
test: ["CMD-SHELL", "curl -k --silent --fail https://localhost:38443/cws-ui/login || exit 1"]
test:
[
"CMD-SHELL",
"curl -k --silent --fail https://localhost:38443/cws-ui/login || exit 1",
]
interval: 5s
timeout: 2s
retries: 12
Expand All @@ -128,7 +136,7 @@ services:
labels:
com.example.service: "cws-worker1"
com.example.description: "Common Workflow Service"
image: nasa-ammos/common-workflow-service:2.6.0 # update this each CWS release
image: nasa-ammos/common-workflow-service:2.6.0 # update this each CWS release
depends_on:
- db
- es
Expand Down Expand Up @@ -156,7 +164,6 @@ services:
networks:
- external-network


volumes:
console-logs-volume:
worker1-logs-volume:
Expand Down

0 comments on commit 9d4fe1c

Please sign in to comment.