Ajustes para build com openshift

This commit is contained in:
Alex Baptista 2018-02-25 21:28:29 -03:00
parent 7a86dbd7fa
commit 181b5e3ee7
2 changed files with 24 additions and 2 deletions

View file

@ -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
CMD java -jar spring-petclinic-1.5.1.jar

22
openshift.build Normal file
View file

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