before Jenkins task

This commit is contained in:
avmang 2025-02-02 21:13:09 +04:00
parent ad772369cc
commit 2dcecd50a8
3 changed files with 28 additions and 2 deletions

20
Dockerfile Normal file
View 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"]

View file

@ -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

View file

@ -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>