diff options
author | Areli Fuss <af732p@att.com> | 2017-11-05 19:04:38 +0200 |
---|---|---|
committer | Areli Fuss <af732p@att.com> | 2017-11-05 19:04:38 +0200 |
commit | de0fd824b52e33f9090bf852083a7bec2d698317 (patch) | |
tree | 0c0fa9544a8e9eab3a1e39c9fb134e75f45a345b | |
parent | e8df04c680d128453827dc443fd21b1083dbb2a5 (diff) |
Move apt-get update to Dockerfile
Move apt-get update to Dockerfile
Change-Id: Ic2eb22593462cdf261a8b547068da4ab7759dcb0
Issue-Id: VVP-25
Signed-off-by: Areli Fuss <af732p@att.com>
-rwxr-xr-x | Dockerfile | 13 | ||||
-rwxr-xr-x | assets/setup | 4 |
2 files changed, 12 insertions, 5 deletions
@@ -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 diff --git a/assets/setup b/assets/setup index ccad286..255ef45 100755 --- a/assets/setup +++ b/assets/setup @@ -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 |