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