mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 22:15:50 +00:00
Ajustes para build com openshift
This commit is contained in:
parent
7a86dbd7fa
commit
181b5e3ee7
2 changed files with 24 additions and 2 deletions
|
@ -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
22
openshift.build
Normal 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
|
Loading…
Reference in a new issue