Merge "Add dep for golang in the build container"

This commit is contained in:
Zuul 2018-11-16 20:34:55 +00:00 committed by Gerrit Code Review
commit 9d7526150f
1 changed files with 5 additions and 0 deletions

View File

@ -230,5 +230,10 @@ COPY centos-mirror-tools/rpm-gpg-keys/* /etc/pki/rpm-gpg/
# Import GPG keys
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
# installing go and setting paths
ENV GOPATH="/usr/local/go"
ENV PATH="${GOPATH}/bin:${PATH}"
RUN yum install -y golang; mkdir -p ${GOPATH}/bin; curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
# Don't know if it's possible to run services without starting this
CMD /usr/sbin/init