add dockerfile building for prometheus to jenkinsfile

This commit is contained in:
2018-11-03 09:19:53 -04:00
parent 8b1d4c12a6
commit 2e6cb21d22

View File

@@ -13,7 +13,7 @@ node('docker') {
stage('build') { stage('build') {
dir(workdir) { dir(workdir) {
docker.withRegistry('http://dkregistry.xai-corp.net:5000') { docker.withRegistry('http://dkregistry.xai-corp.net:5000') {
def customImage = docker.build("dkregistry.xai-corp.net:5000/${app_name}:latest", "-f ${build_file} .") def customImage = docker.build("dkregistry.xai-corp.net:5000/${app_name}:latest", "-f Dockerfile .")
customImage.push() customImage.push()
} }
sh "docker-compose -f ${build_file} pull" sh "docker-compose -f ${build_file} pull"