[14.02.20] bash for dockerfile
This commit is contained in:
parent
a9734bfdc8
commit
f2be9dfb4b
@ -2,4 +2,5 @@ FROM openjdk:8-jre-alpine
|
||||
MAINTAINER Andrew Sotheran <cryptosky.user@gmail.com>
|
||||
COPY /target/cryptosky-db-gateway.jar /home
|
||||
EXPOSE 9090
|
||||
CMD ["/bin/bash"]
|
||||
CMD ["java", "-jar", "/home/cryptosky-db-gateway.jar"]
|
||||
@ -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}"
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user