Skip to content

Commit e4a3454

Browse files
Replaces manual workaround for Paketo with Maven profile (#1603)
Signed-off-by: Adrian Cole <[email protected]>
1 parent 47f4fe1 commit e4a3454

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

docs/modules/ROOT/pages/spring-cloud-kubernetes.adoc

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,6 @@ To see the list of all Kubernetes related configuration properties please check
3535
Click https://docs.spring.io/spring-cloud-build/reference/building.html[here] for basic building instructions.
3636

3737

38-
[[building-docker-images-on-arm64]]
39-
=== Building Docker Images On ARM64
40-
41-
If you run the Spring Cloud Kuberentes build on an ARM64 machine the docker images
42-
used for the integration tests will fail to run due to using the wrong architecture.
43-
This is because the Paketo build pack does not yet support ARM64. To work around this you
44-
can run the build by passing `-Dspring-boot.build-image.builder=dashaun/builder:tiny` to Maven.
45-
46-
For example:
47-
```
48-
./mvnw clean install -Dspring-boot.build-image.builder=dashaun/builder:tiny
49-
```
50-
51-
5238
[[contributing]]
5339
== Contributing
5440

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,5 +376,18 @@
376376
</plugins>
377377
</build>
378378
</profile>
379+
<!-- Workaround until Paketo build packs support arm64 a.k.a. aarch64
380+
See https://github.com/buildpacks/pack/issues?q=is%3Aissue+is%3Aopen+arm64 -->
381+
<profile>
382+
<id>build-image-aarch64</id>
383+
<activation>
384+
<os>
385+
<arch>aarch64</arch>
386+
</os>
387+
</activation>
388+
<properties>
389+
<spring-boot.build-image.builder>dashaun/builder:tiny</spring-boot.build-image.builder>
390+
</properties>
391+
</profile>
379392
</profiles>
380393
</project>

0 commit comments

Comments
 (0)