{feature}-installer.zip not copied to docker image 35/1835/1
authorRashmi Pujar <rashmi.pujar@bell.ca>
Wed, 8 Mar 2017 20:40:27 +0000 (15:40 -0500)
committerRashmi Pujar <rashmi.pujar@bell.ca>
Wed, 8 Mar 2017 20:40:27 +0000 (15:40 -0500)
The "generate-sources" phase assigned to
docker-maven-plugin occurs much earlier
than phase of for building and staging
*-installer zip files. This leads to
image not having any of these zip, thus
ODL inside appc containers fails to load
appc feature repos.

The right Maven lifecycle phase for building
docker should be "package" as this creates
docker-build.tar.

Also, note that file permissions change added
to Dockerfile is redundant now that phase is
corrected.

Change-Id: I5565771de5de0593de1aad25f60e4001972712c2
Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca>
installation/appc/pom.xml
installation/appc/src/main/docker/Dockerfile

index d12296c..5a0e552 100644 (file)
                                                <executions>
                                                        <execution>
                                                                <id>generate-images</id>
-                                                               <phase>generate-sources</phase>
+                                                               <phase>package</phase>
                                                                <goals>
                                                                        <goal>build</goal>
                                                                </goals>
index 5a77060..8b2addf 100644 (file)
@@ -4,8 +4,8 @@ MAINTAINER APP-C Team (appc@lists.openecomp.org)
 
 # copy openecomp
 COPY opt /opt
+
 RUN ln -s /opt/openecomp/appc /opt/appc
-RUN chmod +x /opt/openecomp/appc/bin/*
 
 # ENTRYPOINT exec /opt/opendaylight/current/bin/karaf
 EXPOSE 8181