mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
Latest
This commit is contained in:
parent
fb152b9c32
commit
c7f666a10b
3 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
# Use an official OpenJDK runtime as a parent image
|
||||
FROM openjdk
|
||||
FROM openjdk:11-jdk
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /app
|
||||
|
@ -11,8 +11,9 @@ COPY mvnw pom.xml ./
|
|||
# Copy the project source code
|
||||
COPY src ./src
|
||||
|
||||
RUN chmod +x ./mvnw
|
||||
# Package the application
|
||||
RUN ./mvnw clean package -DskipTests
|
||||
RUN ./mvnw clean package -DskipTests -X
|
||||
|
||||
# Copy the JAR file to the app directory
|
||||
COPY target/*.jar app.jar
|
||||
|
|
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -29,8 +29,6 @@ pipeline {
|
|||
}
|
||||
}
|
||||
|
||||
// Further stages would reference env.DOCKER_IMAGE_ID if needed
|
||||
|
||||
}
|
||||
|
||||
post {
|
||||
|
|
|
@ -36,7 +36,7 @@ services:
|
|||
- prometheus
|
||||
|
||||
jenkins:
|
||||
image: jenkins/jenkins:lts
|
||||
image: my-jenkins:latest
|
||||
ports:
|
||||
- "8081:8080"
|
||||
- "50000:50000"
|
||||
|
@ -48,6 +48,7 @@ services:
|
|||
volumes:
|
||||
- jenkins_data:/var/jenkins_home
|
||||
- ./jenkins.yaml:/var/jenkins_home/casc_configs/jenkins.yaml
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
networks:
|
||||
- custom-network
|
||||
|
||||
|
|
Loading…
Reference in a new issue