Skip to content

Commit f66e6b4

Browse files
committed
fix: even better building
1 parent 04b000e commit f66e6b4

File tree

2 files changed

+6
-26
lines changed

2 files changed

+6
-26
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ docker:
1515

1616
docker-debug:
1717
@TAG=`./mvnw -f gateway/ help:evaluate -q -DforceStdout -Dexpression=imageTag` && \
18-
./mvnw package -f gateway/ -Pdocker-debug -ntp -DskipTests && \
19-
docker tag georchestra/gateway:$${TAG} georchestra/gateway:latest-debug
18+
./mvnw package -f gateway/ -Pdocker,docker-debug -ntp -DskipTests && \
19+
docker tag georchestra/gateway:$${TAG}-debug georchestra/gateway:latest-debug
2020

2121
deb: install
2222
./mvnw package deb:package -f gateway/ -PdebianPackage

gateway/pom.xml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -254,30 +254,10 @@
254254
</profile>
255255
<profile>
256256
<id>docker-debug</id>
257-
<build>
258-
<plugins>
259-
<plugin>
260-
<groupId>org.springframework.boot</groupId>
261-
<artifactId>spring-boot-maven-plugin</artifactId>
262-
<executions>
263-
<execution>
264-
<id>build-image</id>
265-
<goals>
266-
<goal>build-image</goal>
267-
</goals>
268-
</execution>
269-
</executions>
270-
<configuration>
271-
<image>
272-
<builder>paketobuildpacks/builder-jammy-base</builder>
273-
<name>georchestra/${project.artifactId}:${project.version}-debug</name>
274-
<pullPolicy>IF_NOT_PRESENT</pullPolicy>
275-
</image>
276-
<jvmOptions>-XX:MaxRAMPercentage=80 -XX:+UseParallelGC</jvmOptions>
277-
</configuration>
278-
</plugin>
279-
</plugins>
280-
</build>
257+
<properties>
258+
<spring-boot.build-image.builder>paketobuildpacks/builder-jammy-base</spring-boot.build-image.builder>
259+
<spring-boot.build-image.imageName>georchestra/gateway:${imageTag}-debug</spring-boot.build-image.imageName>
260+
</properties>
281261
</profile>
282262
<profile>
283263
<id>debianPackage</id>

0 commit comments

Comments
 (0)