Update README.md
All checks were successful
Updates/open-webui-ollama-docker-deploy/pipeline/head This commit looks good

This commit is contained in:
Adam Outler 2025-04-03 21:12:52 +00:00
parent 655ba84834
commit 8713d06509

View File

@ -57,70 +57,6 @@ The `Jenkinsfile` automates the deployment of Ollama and Open-WebUI services usi
4. **Check Ollama and Open-WebUI Versions (After Deploy)**: 4. **Check Ollama and Open-WebUI Versions (After Deploy)**:
- Ensures that the services are running and updated to the latest version after deployment. - Ensures that the services are running and updated to the latest version after deployment.
The relevant Jenkinsfile snippet:
```groovy
pipeline {
agent {
node { label 'shark-wrangler' }
}
environment {
DOCKER_HOST = 'unix:///var/run/docker.sock'
}
stages {
stage('Check NVIDIA Driver Version') {
steps {
script {
catchError(buildResult: 'SUCCESS', stageResult: 'UNSTABLE') {
sh 'nvidia-smi --query-gpu=driver_version --format=csv,noheader'
}
}
}
}
stage('Check Ollama and Open-WebUI Versions (Before Deploy)') {
steps {
script {
catchError(buildResult: 'SUCCESS', stageResult: 'UNSTABLE') {
echo 'Checking Ollama version before deploy:'
sh 'docker exec -i ollama ollama -v || echo "Ollama check failed"'
echo 'Checking Open-WebUI version before deploy:'
sh 'docker exec -i open-webui jq -r .version /app/package.json || echo "Open-WebUI check failed"'
}
}
}
}
stage('Deploy with Docker Compose') {
steps {
script {
sh '''
docker pull ollama/ollama
docker pull ghcr.io/open-webui/open-webui:main
docker compose up -d --force-recreate
'''
}
}
}
stage('Check Ollama and Open-WebUI Versions (After Deploy)') {
steps {
script {
catchError(buildResult: 'SUCCESS', stageResult: 'UNSTABLE') {
echo 'Checking Ollama version after deploy:'
sh 'docker exec -i ollama ollama -v || echo "Ollama check failed"'
echo 'Checking Open-WebUI version after deploy:'
sh 'docker exec -i open-webui jq -r .version /app/package.json || echo "Open-WebUI check failed"'
}
}
}
}
}
post {
always {
echo 'Pipeline finished.'
}
}
}
```
## Usage ## Usage