diff --git a/Dockerfile b/Dockerfile index 12b4ccee0..54b3afc84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM java:8 +FROM docker.io/maven:latest WORKDIR / ADD target/spring-petclinic-1.5.1.jar . EXPOSE 8080 -CMD java - jar spring-petclinic-1.5.1.jar \ No newline at end of file +CMD java -jar spring-petclinic-1.5.1.jar \ No newline at end of file diff --git a/openshift.build b/openshift.build new file mode 100644 index 000000000..6b13ce6d9 --- /dev/null +++ b/openshift.build @@ -0,0 +1,22 @@ +- apiVersion: v1 + kind: BuildConfig + metadata: + annotations: + description: Define como empacotar o APP + name: petclinic-docker + spec: + output: + to: + kind: ImageStreamTag + name: petclinic-docker:latest + source: + type: Binary + strategy: + dockerStrategy: + dockerfilePath: Dockerfile +- apiVersion: v1 + kind: ImageStream + metadata: + annotations: + description: Acompanha as mudanças na imagem do aplicativo + name: petclinic-docker \ No newline at end of file