Testsuite docker build fix 04/103504/4
authorLucjan Bryndza <l.bryndza@samsung.com>
Wed, 11 Mar 2020 11:09:42 +0000 (12:09 +0100)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Fri, 20 Mar 2020 09:43:53 +0000 (09:43 +0000)
Configuration files authorization and lighttpd.conf are in the
excluded docker directory in .dockerignore so the container won't build.
Copying all files also causes to copy files not used in runtime.

Signed-off-by: Lucjan Bryndza <l.bryndza@samsung.com>
Issue-ID: TEST-229
Change-Id: I3591dc686e1d2e3f1ce2982a5f6953bf02007634

.dockerignore
docker/Dockerfile

index 0ea9432..7405565 100644 (file)
@@ -1,5 +1,4 @@
-docker/
-Dockerfile
+docker/Dockerfile
 .dockerignore
 .git/
 .gitattributes
@@ -7,4 +6,4 @@ Dockerfile
 .gitreview
 .idea/
 .project
-.pydevproject
\ No newline at end of file
+.pydevproject
index 24c6389..188a8e1 100644 (file)
@@ -51,9 +51,11 @@ RUN python3.7 -m pip install setuptools wheel
 RUN python3.7 -m pip install virtualenv
 
 # Copy the robot code
-COPY . /var/opt/ONAP/
-COPY lighttpd.conf /etc/lighttpd/lighttpd.conf
-COPY authorization /etc/lighttpd/authorization
+COPY html/ /var/opt/ONAP/html
+COPY robot/ /var/opt/ONAP/robot
+COPY *.sh /var/opt/ONAP/
+COPY docker/lighttpd.conf /etc/lighttpd/lighttpd.conf
+COPY docker/authorization /etc/lighttpd/authorization
 RUN chmod 777 /var/opt/ONAP/setup.sh \
     && chmod 777 /var/opt/ONAP/runTags.sh \
     && chmod 777 /var/opt/ONAP/dnstraffic.sh \