<packaging>pom</packaging>
<properties>
+ <app>org.onap.cps.Application</app>
+ <base.image>openjdk:11-jre-slim</base.image>
<java.version>11</java.version>
+ <jib-maven-plugin.version>2.6.0</jib-maven-plugin.version>
<oparent.version>3.1.0</oparent.version>
+ <repository.name>nexus3.onap.org:10001/onap/cps-service</repository.name>
<spring-boot-maven-plugin.version>2.3.3.RELEASE</spring-boot-maven-plugin.version>
<swagger-codegen-maven-plugin.version>3.0.18</swagger-codegen-maven-plugin.version>
+ <tag.version>${project.version}</tag.version>
</properties>
<dependencyManagement>
</includes>
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.google.cloud.tools</groupId>
+ <artifactId>jib-maven-plugin</artifactId>
+ <version>${jib-maven-plugin.version}</version>
+ <configuration>
+ <container>
+ <mainClass>${app}</mainClass>
+ <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
+ </container>
+ <from>
+ <image>${base.image}</image>
+ </from>
+ <to>
+ <image>${repository.name}</image>
+ <tags>
+ <tag>${tag.version}</tag>
+ </tags>
+ </to>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <id>build</id>
+ <goals>
+ <goal>dockerBuild</goal>
+ </goals>
+ </execution>
+ <!-- FIXME Enable this once migrated to onap,
+ <execution>
+ <phase>deploy</phase>
+ <id>buildAndPush</id>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>-->
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
\ No newline at end of file
<groupId>org.springframework.boot</groupId>\r
<artifactId>spring-boot-maven-plugin</artifactId>\r
</plugin>\r
+ <plugin>\r
+ <groupId>com.google.cloud.tools</groupId>\r
+ <artifactId>jib-maven-plugin</artifactId>\r
+ </plugin>\r
<!-- Swagger code generation. -->\r
<plugin>\r
<groupId>io.swagger.codegen.v3</groupId>\r
--- /dev/null
+version: "3.7"
+
+services:
+ cps:
+ restart: unless-stopped
+ image: nexus3.onap.org:10001/onap/cps-service:${VERSION}
+ container_name: cps-service
+ environment:
+ DB_HOST: ${DB_HOST}
+ DB_USERNAME: ${DB_USERNAME}
+ DB_PASSWORD: ${DB_PASSWORD}
+ ports:
+ - "8080:8080"
+ network_mode: "host
+ depends_on:
+ - dbpostgresql
+
+ dbpostgresql:
+ container_name: dbpostgresql
+ image: postgres
+ ports:
+ - '5432:5432'
+ environment:
+ DB_NAME: cpsdb
+ DB_USERNAME: ${DB_USERNAME}
+ DB_PASSWORD: ${DB_PASSWORD}
\ No newline at end of file