Skip to content
Snippets Groups Projects
Commit f480bbba authored by Burhan Akbar's avatar Burhan Akbar
Browse files

Add resource limits and update Jenkinsfile

parent 73c40e40
Branches
No related tags found
No related merge requests found
pipeline { pipeline {
agent { agent any // Changed from "label 'my-agent-label'"
label 'my-agent-label'
}
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
sh 'chmod +x gradlew' // to make gradlew executable
sh './gradlew clean build' sh './gradlew clean build'
} }
} }
......
...@@ -10,6 +10,11 @@ services: ...@@ -10,6 +10,11 @@ services:
MYSQL_ROOT_PASSWORD: comsc MYSQL_ROOT_PASSWORD: comsc
volumes: volumes:
- "./src/main/resources:/docker-entrypoint-initdb.d" - "./src/main/resources:/docker-entrypoint-initdb.d"
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
networks: networks:
- healthcare_network - healthcare_network
...@@ -22,6 +27,11 @@ services: ...@@ -22,6 +27,11 @@ services:
- DB_URL=jdbc:mariadb://mariadb:3306/healthcare?createDatabaseIfNotExist=true - DB_URL=jdbc:mariadb://mariadb:3306/healthcare?createDatabaseIfNotExist=true
ports: ports:
- "8080:8080" - "8080:8080"
deploy:
resources:
limits:
cpus: '1'
memory: 1G
networks: networks:
- healthcare_network - healthcare_network
depends_on: depends_on:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment