Move apt-get update to Dockerfile 69/22169/1
authorAreli Fuss <af732p@att.com>
Sun, 5 Nov 2017 17:04:38 +0000 (19:04 +0200)
committerAreli Fuss <af732p@att.com>
Sun, 5 Nov 2017 17:04:38 +0000 (19:04 +0200)
Move apt-get update to Dockerfile

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

index f920626..6964e09 100755 (executable)
@@ -49,14 +49,21 @@ RUN apt-get update -q \
       nano \
       patch
 
+# Copy assets
+COPY RELEASE /
+COPY assets/ /assets/
+
 #Workaround for onap
+ENV RELEASE_VERSION 8.6.1-ce.0
+ENV PACKAGECLOUD_REPO gitlab-ce
+ENV RELEASE_PACKAGE gitlab-ce
+
 ADD https://packages.gitlab.com/gpg.key key
 RUN cat key | apt-key add -
 RUN apt-key list
+RUN echo "deb https://packages.gitlab.com/gitlab/${PACKAGECLOUD_REPO}/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/gitlab_${RELEASE_PACKAGE}.list
+RUN apt-get update
 
-# Copy assets
-COPY RELEASE /
-COPY assets/ /assets/
 RUN /assets/setup
 
 # Allow to access embedded tools
index ccad286..255ef45 100755 (executable)
@@ -42,9 +42,9 @@ set -xe
 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
+#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 -
-apt-get update
+#apt-get update
 apt-get install -yq --no-install-recommends ${RELEASE_PACKAGE}=${RELEASE_VERSION}
 
 # Create sshd daemon