Add dep for golang in the build container
We would like to have dep for golang as part of the build to pull in dependencies. This allows us to avoid checking in dependency package in our code base and to pull in the dependencies when building. Story:2002840 Change-Id: Ifff8dab38aebdc5638909679b7bef8128c6a84a7 Signed-off-by: Jerry Sun <jerry.sun@windriver.com>
This commit is contained in:
parent
2b3d3ea5b8
commit
e0aeb488a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user