Build ONAP base image locally on ARM architecture 16/130816/1
authorliamfallon <liam.fallon@est.tech>
Thu, 8 Sep 2022 16:32:59 +0000 (17:32 +0100)
committerliamfallon <liam.fallon@est.tech>
Thu, 8 Sep 2022 16:33:03 +0000 (17:33 +0100)
This commit forces a build o the ONAP images locally when a build is run
on ARM architecture.

Issue-ID: POLICY-4287
Change-Id: I47dd5293ef6bf0051ba074eff2a95d6b3266c871
Signed-off-by: liamfallon <liam.fallon@est.tech>
policy-jre/alpine/pom.xml

index 197fb19..fcfdcce 100644 (file)
             </activation>
             <build>
                 <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-scm-plugin</artifactId>
+                        <version>1.13.0</version>
+                        <dependencies>
+                            <dependency>
+                                <groupId>org.codehaus.plexus</groupId>
+                                <artifactId>plexus-utils</artifactId>
+                                <version>3.4.2</version>
+                            </dependency>
+                            <dependency>
+                                <groupId>org.apache.maven.scm</groupId>
+                                <artifactId>maven-scm-provider-gitexe</artifactId>
+                                <version>1.13.0</version>
+                            </dependency>
+                        </dependencies>
+                        <configuration>
+                            <connectionType>connection</connectionType>
+                            <checkoutDirectory>src/main/resources/meta</checkoutDirectory>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <id>checkout-onap-python</id>
+                                <phase>validate</phase>
+                                <configuration>
+                                    <connectionUrl>scm:git:https://gerrit.onap.org/r/integration/docker/onap-java11</connectionUrl>
+                                    <checkoutDirectory>${project.build.directory}/onap-java11</checkoutDirectory>
+                                </configuration>
+                                <goals>
+                                    <goal>checkout</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
                     <plugin>
                         <groupId>io.fabric8</groupId>
                         <artifactId>docker-maven-plugin</artifactId>
                                             <name>${integration.java.name}</name>
                                             <build>
                                                 <cleanup>try</cleanup>
+                                                <contextDir>${project.build.directory}/onap-java11</contextDir>
                                                 <dockerFile>BareAlpine.Dockerfile</dockerFile>
                                                 <tags>
                                                     <tag>${integration.java.version}</tag>