<image>
<!-- Specify a tag to avoid default tag "latest" -->
<!-- Avoid maven artifact name here -->
- <name>ric-dashboard:${project.version}</name>
+ <name>nonrtric-dashboard:${project.version}</name>
<build>
<from>openjdk:11-jre-slim</from>
<tags>
+++ /dev/null
-
-FROM openjdk:11-jre-slim
-
-ARG JAR_FILE
-
-WORKDIR /opt/app/nearricsimulator
-
-COPY ${JAR_FILE} nearric-simulator.jar
-
-ENTRYPOINT ["java", "-jar", "/opt/app/nearricsimulator/nearric-simulator.jar"]
\ No newline at end of file
+++ /dev/null
-# The Jenkins job requires a tag to build the Docker image.
-# Global-JJB script assumes this file is in the repo root.
----
-tag: 1.0.0
\ No newline at end of file
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>dockerfile-maven-plugin</artifactId>
- <version>${dockerfile-maven-version}</version>
- <executions>
- <execution>
- <id>default</id>
- <goals>
- <goal>build</goal>
- <goal>push</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <repository>nearric-simulator</repository>
- <tag>${project.version}</tag>
- <buildArgs>
- <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
- </buildArgs>
- </configuration>
+ <plugin>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>0.30.0</version>
+ <configuration>
+ <verbose>true</verbose>
+ <!-- environment variables supplied by Jenkins -->
+ <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
+ <images>
+ <image>
+ <!-- Specify a tag to avoid default tag "latest" -->
+ <!-- Avoid maven artifact name here -->
+ <name>nearric-simulator:${project.version}</name>
+ <build>
+ <from>openjdk:11-jre-slim</from>
+ <tags>
+ <!-- Add tag with build number -->
+ <tag>${project.version}</tag>
+ </tags>
+ <assembly>
+ <descriptorRef>artifact</descriptorRef>
+ </assembly>
+ <cmd>
+ <!-- Include maven dir on classpath for prop files -->
+ <exec>
+ <arg>java</arg>
+ <arg>-Xms128m</arg>
+ <arg>-Xmx256m</arg>
+ <arg>-cp</arg>
+ <arg>maven:maven/${project.artifactId}-${project.version}.${project.packaging}</arg>
+ <arg>-Dloader.main=org.onap.nearric.simulator.config.NearRicApplication</arg>
+ <arg>-Djava.security.egd=file:/dev/./urandom</arg>
+ <arg>org.springframework.boot.loader.PropertiesLauncher</arg>
+ </exec>
+ </cmd>
+ </build>
+ </image>
+ </images>
+ </configuration>
+ <!-- build Docker images in install phase, push in deploy phase -->
+ <executions>
+ <execution>
+ <goals>
+ <goal>build</goal>
+ <goal>push</goal>
+ </goals>
+ </execution>
+ </executions>
<dependencies>
<dependency>
<groupId>javax.activation</groupId>
<version>1.1.1</version>
</dependency>
</dependencies>
- </plugin>
+ </plugin>
</plugins>
</build>
</project>
<name>nonrtric</name>
<modules>
<module>dashboard</module>
- <module>sdnc-a1-controller</module>
<module>near-rt-ric-simulator</module>
+ <module>sdnc-a1-controller</module>
</modules>
</project>
<properties>
<image.name>onap/sdnc-aaf-image</image.name>
- <standalone.image.name>onap/sdnc-image</standalone.image.name>
+ <standalone.image.name>nonrtric-a1-controller</standalone.image.name>
<sdnc.project.version>${project.version}</sdnc.project.version>
<sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
<sdnc.northbound.version>1.7.3-SNAPSHOT</sdnc.northbound.version>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
- <version>0.28.0</version>
+ <version>0.30.0</version>
<inherited>false</inherited>
<executions>
<execution>
<goal>push</goal>
</goals>
<configuration>
+ <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
<images>
<image>
<name>${standalone.image.name}</name>
max-size: "30m"
max-file: "5"
- sdnc:
- image: onap/sdnc-image:latest
+ a1-controller:
+ image: nonrtric-a1-controller:latest
depends_on :
- db
container_name: sdnc_controller_container