update sslproxy deployment to include health check and Jenkinsfile that builds docker image
fixed metrics.xai-corp.net host file
This commit is contained in:
12
dockerfiles/services/sslproxy/Jenkinsfile
vendored
12
dockerfiles/services/sslproxy/Jenkinsfile
vendored
@@ -1,20 +1,22 @@
|
||||
node('docker') {
|
||||
def dockerfile = 'Dockerfile'
|
||||
def app_name = 'sslproxy'
|
||||
def app_port = '80'
|
||||
def workdir = 'dockerfiles/services/sslproxy'
|
||||
|
||||
stage('prepare') {
|
||||
git credentialsId: 'f1f58215-c789-44a2-9b72-50e4425cb061', url: 'ssh://git@git.xai-corp.net:10022/xai-corp.net/provisioning.git'
|
||||
//checkout scm
|
||||
sh 'ls'
|
||||
}
|
||||
|
||||
stage('build') {
|
||||
dir(workdir) {
|
||||
//docker.build -f docker-compose.yml
|
||||
sh """
|
||||
docker-compose -f docker-compose.yml build
|
||||
"""
|
||||
docker.Image.push dkregistry.xai-corp.net:5000/sslproxy:2.1
|
||||
docker.withRegistry('http://dkregistry.xai-corp.net:5000') {
|
||||
def customImage = docker.build("dkregistry.xai-corp.net:5000/sslproxy:2.1", "-f ${dockerfile} .")
|
||||
customImage.push()
|
||||
}
|
||||
|
||||
sh "docker-compose -f docker-compose-prod.yml pull"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user