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:
2018-10-29 21:56:55 -04:00
parent 039ac6d6e5
commit 5c94127056
4 changed files with 26 additions and 8 deletions

View File

@@ -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"
}
}