Skip to content

Commit

Permalink
test multi platform build with fabric8/docker-maven-plugin (#1009)
Browse files Browse the repository at this point in the history
  • Loading branch information
gramian authored Apr 7, 2023
1 parent 7f32a72 commit 57d82ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions package/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,8 @@
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jkube</groupId>
<artifactId>kubernetes-maven-plugin</artifactId>
<version>${kubernetes-maven-plugin.version}</version>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<executions>
<execution>
<id>default</id>
Expand All @@ -162,22 +161,24 @@
</execution>
</executions>
<configuration>
<verbose>true</verbose>
<images>
<image>
<name>arcadedata/arcadedb</name>
<build>
<dockerFile>${project.basedir}/src/main/docker/Dockerfile</dockerFile>
<contextDir>${project.build.directory}/arcadedb-${project.version}.dir</contextDir>
<args>
<docker.buildArg.ARCH>arm64v8/,amd64/,winamd64/,arm32v7/</docker.buildArg.ARCH>
</args>
<contextDir>${project.basedir}</contextDir>
<dockerFile>src/main/docker/Dockerfile</dockerFile>
<buildx>
<platforms>
<platform>linux/amd64</platform>
<platform>linux/arm64</platform>
</platforms>
</buildx>
<tags>
<tag>latest</tag>
<tag>${project.version}</tag>
</tags>
</build>
</image>
</image>
</images>
</configuration>
</plugin>
Expand Down
2 changes: 1 addition & 1 deletion package/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ WORKDIR /home/arcadedb

USER arcadedb

COPY --chown=arcadedb:arcadedb ./maven/arcadedb-* ./
COPY --chown=arcadedb:arcadedb ./target/arcadedb-*.dir/* ./

RUN chmod +x ./bin/*.sh

Expand Down

0 comments on commit 57d82ff

Please sign in to comment.