Move the add key to Dockerfile 41/22141/1
authorAreli Fuss <af732p@att.com>
Sun, 5 Nov 2017 10:47:35 +0000 (12:47 +0200)
committerAreli Fuss <af732p@att.com>
Sun, 5 Nov 2017 10:47:35 +0000 (12:47 +0200)
Workaround for onap

Change-Id: Iea0ba52fce4c1536a1bf304a631eb0e2cc2a0368
Issue-Id: VVP-25
Signed-off-by: Areli Fuss <af732p@att.com>
Dockerfile
assets/setup

index 9633a54..f920626 100755 (executable)
@@ -49,6 +49,11 @@ RUN apt-get update -q \
       nano \
       patch
 
+#Workaround for onap
+ADD https://packages.gitlab.com/gpg.key key
+RUN cat key | apt-key add -
+RUN apt-key list
+
 # Copy assets
 COPY RELEASE /
 COPY assets/ /assets/
index ff57d4a..ccad286 100755 (executable)
@@ -43,7 +43,7 @@ source /RELEASE
 
 # Download & Install GitLab
 echo "deb https://packages.gitlab.com/gitlab/${PACKAGECLOUD_REPO}/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/gitlab_${RELEASE_PACKAGE}.list
-wget -d --secure-protocol=TLSv1 --no-check-certificate -O - https://packages.gitlab.com/gpg.key | apt-key add -
+#wget -d --secure-protocol=TLSv1 --no-check-certificate -O - https://packages.gitlab.com/gpg.key | apt-key add -
 apt-get update
 apt-get install -yq --no-install-recommends ${RELEASE_PACKAGE}=${RELEASE_VERSION}