changeset 251:bb2791f6d619

add ant
author smith@nwoca.org
date Wed, 23 May 2018 17:19:07 +0100
parents a7ae41f4a55b
children 30d959c35269
files bamboo-agent/Dockerfile bamboo-agent/bamboo-capabilities.properties
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bamboo-agent/Dockerfile	Wed May 23 16:53:54 2018 +0100
+++ b/bamboo-agent/Dockerfile	Wed May 23 17:19:07 2018 +0100
@@ -35,6 +35,15 @@
 	&& apt-get install -y unzip \
 
     && apt-get install -y openjdk-8-jdk
+    
+ENV ANT_VERSION 1.10.3
+RUN cd && \
+    curl -fL -o apache-ant-bin.tar.gz http://www.us.apache.org/dist//ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz && \
+    tar -xzf apache-ant-bin.tar.gz && \
+    mv apache-ant-${ANT_VERSION} /opt/ant && \
+    rm apache-ant-${ANT_VERSION}-bin.tar.gz
+ENV ANT_HOME /opt/ant
+ENV PATH ${PATH}:/opt/ant/bin
 
 RUN curl -fL -o docker.tgz "https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz"; 
 RUN	tar --extract \
@@ -52,14 +61,14 @@
 #COPY modprobe.sh /usr/local/bin/modprobe
 COPY docker-entrypoint.sh /usr/local/bin/
 
-
 run chmod +x /usr/local/bin/docker-entrypoint.sh
 
 #EXPOSE 2375/tcp
 
-
 COPY atlassian-bamboo-agent-installer-6.5.0.jar /root
 
+RUN mkdir -p /root/bamboo-agent-home/bin
+COPY bamboo-capabilities.properties /root/bamboo-agent-home/bin/bamboo-capabilities.properties
 
 ENTRYPOINT ["docker-entrypoint.sh"]
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bamboo-agent/bamboo-capabilities.properties	Wed May 23 17:19:07 2018 +0100
@@ -0,0 +1,1 @@
+BambooTest=true
\ No newline at end of file