summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsg481n <sg481n@att.com>2017-09-25 00:49:17 +0000
committersg481n <sg481n@att.com>2017-09-25 00:49:23 +0000
commit296385510825e006cf5a650473f3489ddbcf34fd (patch)
treefe337bcfcfe463c5fc4c44f146ef3b63d87785aa
parent0492cd0ee5e58ca2ea0a9921d93c1a7660838e27 (diff)
Release docker image of AAF to ONAP Nexus
Issue-id: AAF-59 Change-Id: I630b299d6d0c3fe828d3a130937ee473e6c00774 Signed-off-by: sg481n <sg481n@att.com>
-rw-r--r--authz-service/pom.xml10
-rw-r--r--authz-service/src/main/resources/docker/Dockerfile2
2 files changed, 7 insertions, 5 deletions
diff --git a/authz-service/pom.xml b/authz-service/pom.xml
index bb268726..507f2b4f 100644
--- a/authz-service/pom.xml
+++ b/authz-service/pom.xml
@@ -66,6 +66,7 @@
<sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
<sonar.projectVersion>${project.version}</sonar.projectVersion>
<nexusproxy>https://nexus.onap.org</nexusproxy>
+ <docker.push.registry>localhost:5000</docker.push.registry>
<snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
<releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
<stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
@@ -146,6 +147,7 @@
<build>
+ <finalName>authz-service</finalName>
<plugins>
@@ -206,7 +208,7 @@
</goals>
<configuration>
<image>onap/aaf/authz-service</image>
- <newName>onap/aaf/authz-service:${project.version}</newName>
+ <newName>${docker.push.registry}/onap/aaf/authz-service:${project.version}</newName>
<skipDockerTag>${skip.docker.push}</skipDockerTag>
</configuration>
</execution>
@@ -219,7 +221,7 @@
</goals>
<configuration>
<image>onap/aaf/authz-service</image>
- <newName>onap/aaf/authz-service:latest</newName>
+ <newName>${docker.push.registry}/onap/aaf/authz-service:latest</newName>
<skipDockerTag>${skip.docker.push}</skipDockerTag>
</configuration>
</execution>
@@ -231,7 +233,7 @@
<goal>push</goal>
</goals>
<configuration>
- <imageName>onap/aaf/authz-service:${project.version}</imageName>
+ <imageName>${docker.push.registry}/onap/aaf/authz-service:${project.version}</imageName>
<skipDockerPush>${skip.docker.push}</skipDockerPush>
</configuration>
</execution>
@@ -243,7 +245,7 @@
<goal>push</goal>
</goals>
<configuration>
- <imageName>onap/aaf/authz-service:latest</imageName>
+ <imageName>${docker.push.registry}/onap/aaf/authz-service:latest</imageName>
<skipDockerPush>${skip.docker.push}</skipDockerPush>
</configuration>
</execution>
diff --git a/authz-service/src/main/resources/docker/Dockerfile b/authz-service/src/main/resources/docker/Dockerfile
index ae670f75..9b229cd7 100644
--- a/authz-service/src/main/resources/docker/Dockerfile
+++ b/authz-service/src/main/resources/docker/Dockerfile
@@ -1,6 +1,6 @@
FROM openjdk:8-jdk
ADD opt /opt/
-ADD authz-service-1.0.1-SNAPSHOT.jar /opt/app/aaf/authz-service/lib/authz-service-1.0.1-SNAPSHOT.jar
+ADD authz-service.jar /opt/app/aaf/authz-service/lib/authz-service.jar
ADD startup.sh /startup.sh
RUN chmod 777 /startup.sh
RUN chmod -R 777 /opt/app/aaf/authz-service/etc