From f2be9dfb4b791e47308e16eca8e5ee534206d3c8 Mon Sep 17 00:00:00 2001 From: andyjk15 Date: Fri, 14 Feb 2020 18:18:36 +0000 Subject: [PATCH] [14.02.20] bash for dockerfile --- Dockerfile | 1 + configuration/pipelines/build.groovy | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8fd0a6d..b8a19bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,5 @@ FROM openjdk:8-jre-alpine MAINTAINER Andrew Sotheran COPY /target/cryptosky-db-gateway.jar /home EXPOSE 9090 +CMD ["/bin/bash"] CMD ["java", "-jar", "/home/cryptosky-db-gateway.jar"] \ No newline at end of file diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index b5e109e..dba445e 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -79,15 +79,10 @@ try { withDockerServer([uri: "tcp://registry.cryptosky.me:4243"]) { withDockerRegistry([credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"]) { - // we give the image the same version as the .war package def image = docker.build("${env.DOCKER_REPOSITORY}/db-gateway:${env.APPLICATION_VERSION}") image.push() } } -// sh "docker tag db-gateway:${env.APPLICATION_VERSION} ${env.DOCKER_REPOSITORY_URL}/db-gateway:${env.APPLICATION_VERSION}" -// withDockerRegistry([ credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"]) { -// sh "docker push ${env.DOCKER_REPOSITORY_URL}/db-gateway:${env.APPLICATION_VERSION}" -// } } } }