Fix: use generic jre + http protocol usage instead of git protocol to retrieve dependencies

This commit is contained in:
2016-02-05 10:39:01 +01:00
parent f8500d15da
commit a805da58e9
4 changed files with 28 additions and 11 deletions

View File

@@ -1,7 +1,11 @@
FROM debian
RUN apt-get clean && apt-get update \
&& apt-get install -y curl \
&& apt-get install -y \
curl \
default-jre-headless \
git \
subversion \
&& apt-get clean \
&& rm -rf /var/lib/apt/listss/*
@@ -17,6 +21,8 @@ RUN cd /tmp \
&& dpkg -i -E go-agent.deb \
&& sed -i -e 's#GO_SERVER=127.0.0.1#GO_SERVER=gocd-server#' /etc/default/go-agent
RUN git config --global url."https://".insteadOf git://
#VOLUME ["/var/lib/go-agent", "/var/log/go-agent", "/var/go/.ssh"]
COPY autoregister.properties /var/lib/go-agent/config/autoregister.properties