Prova marraneta posant codi infraestructura en codi app

This commit is contained in:
dawncoll 2024-06-24 17:41:45 +02:00
parent 780cc51ced
commit 944f0ccac7
2 changed files with 19 additions and 0 deletions

3
Dockerfile Normal file
View file

@ -0,0 +1,3 @@
FROM anapsix/alpine-java
COPY /target/spring-petclinic-1.5.1.jar /home/spring-petclinic-1.5.1.jar
CMD ["java","-jar","/home/spring-petclinic-1.5.1.jar"]

16
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,16 @@
#!groovy
pipeline {
agent none
stages {
stage('Maven Install') {
agent {
docker {
image 'maven:3.5.0'
}
}
steps {
sh 'mvn clean install'
}
}
}
}