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

including docker-compose.yml changes

parent f480bbba
Branches
No related tags found
No related merge requests found
pipeline {
agent any // Changed from "label 'my-agent-label'"
agent any
options {
timeout(time: 30, unit: 'MINUTES')
}
stages {
stage('Build') {
steps {
sh 'chmod +x gradlew' // to make gradlew executable
sh './gradlew clean build'
sh 'chmod +x gradlew'
// Limit memory usage for Gradle build
sh './gradlew --no-daemon --max-workers=1 clean build'
}
}
stage('Deploy with Docker') {
steps {
sh 'docker-compose down || true'
// Clean up unused resources before deploying
sh 'docker system prune -f'
sh 'docker-compose up -d'
}
}
}
post {
always {
sh 'docker system prune -f || true'
cleanWs()
}
}
}
\ No newline at end of file
......@@ -13,8 +13,8 @@ services:
deploy:
resources:
limits:
cpus: '0.5'
memory: 512M
cpus: '1'
memory: 1024M
networks:
- healthcare_network
......@@ -31,7 +31,7 @@ services:
resources:
limits:
cpus: '1'
memory: 1G
memory: 1536M
networks:
- healthcare_network
depends_on:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment