mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 23:05:49 +00:00
before Jenkins task
This commit is contained in:
parent
ad772369cc
commit
2dcecd50a8
3 changed files with 28 additions and 2 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
FROM eclipse-temurin:17-jdk AS build
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
RUN apt-get update && apt-get install -y maven
|
||||
|
||||
COPY pom.xml .
|
||||
COPY src ./src
|
||||
|
||||
RUN mvn clean package -DskipTests
|
||||
|
||||
FROM eclipse-temurin:17-jdk AS runtime
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
COPY --from=build /build/target/spring-petclinic-*.jar app.jar
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["java", "-jar", "app.jar"]
|
|
@ -1,4 +1,8 @@
|
|||
services:
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- 8080:8080
|
||||
mysql:
|
||||
image: mysql:9.1
|
||||
ports:
|
||||
|
@ -19,3 +23,4 @@ services:
|
|||
- POSTGRES_PASSWORD=petclinic
|
||||
- POSTGRES_USER=petclinic
|
||||
- POSTGRES_DB=petclinic
|
||||
|
||||
|
|
3
pom.xml
3
pom.xml
|
@ -260,7 +260,8 @@
|
|||
<goals>
|
||||
<goal>check</goal>
|
||||
</goals>
|
||||
<phase>validate</phase>
|
||||
<!-- changed from validate to none -->
|
||||
<phase>none</phase>
|
||||
<configuration>
|
||||
<configLocation>src/checkstyle/nohttp-checkstyle.xml</configLocation>
|
||||
<sourceDirectories>${basedir}</sourceDirectories>
|
||||
|
|
Loading…
Reference in a new issue