mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +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
|
# Use an official OpenJDK runtime as a parent image
|
||||||
FROM openjdk
|
FROM openjdk:11-jdk
|
||||||
|
|
||||||
# Set the working directory inside the container
|
# Set the working directory inside the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@ -11,8 +11,9 @@ COPY mvnw pom.xml ./
|
||||||
# Copy the project source code
|
# Copy the project source code
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
|
|
||||||
|
RUN chmod +x ./mvnw
|
||||||
# Package the application
|
# Package the application
|
||||||
RUN ./mvnw clean package -DskipTests
|
RUN ./mvnw clean package -DskipTests -X
|
||||||
|
|
||||||
# Copy the JAR file to the app directory
|
# Copy the JAR file to the app directory
|
||||||
COPY target/*.jar app.jar
|
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 {
|
post {
|
||||||
|
|
|
@ -36,7 +36,7 @@ services:
|
||||||
- prometheus
|
- prometheus
|
||||||
|
|
||||||
jenkins:
|
jenkins:
|
||||||
image: jenkins/jenkins:lts
|
image: my-jenkins:latest
|
||||||
ports:
|
ports:
|
||||||
- "8081:8080"
|
- "8081:8080"
|
||||||
- "50000:50000"
|
- "50000:50000"
|
||||||
|
@ -48,6 +48,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- jenkins_data:/var/jenkins_home
|
- jenkins_data:/var/jenkins_home
|
||||||
- ./jenkins.yaml:/var/jenkins_home/casc_configs/jenkins.yaml
|
- ./jenkins.yaml:/var/jenkins_home/casc_configs/jenkins.yaml
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
networks:
|
networks:
|
||||||
- custom-network
|
- custom-network
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue