mirror of
https://github.com/Febbweiss/gocd-docker.git
synced 2026-03-04 22:25:42 +00:00
Fix: use generic jre + http protocol usage instead of git protocol to retrieve dependencies
This commit is contained in:
@@ -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
|
||||
RUN apt-get clean && apt-get install -y maven
|
||||
RUN apt-get clean && apt-get install -y gradle \
|
||||
&& apt-get clean \
|
||||
@@ -28,6 +32,8 @@ RUN cd /tmp \
|
||||
&& sed -i -e 's#GO_SERVER=127.0.0.1#GO_SERVER=gocd-server#' /etc/default/go-agent \
|
||||
&& sed -i -e 's#JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64/jre"#JAVA_HOME="/opt/jdk1.8.0_66/jre"#' /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
|
||||
|
||||
Reference in New Issue
Block a user