comparison bamboo-agent/Dockerfile @ 251:bb2791f6d619

add ant
author smith@nwoca.org
date Wed, 23 May 2018 17:19:07 +0100
parents a7ae41f4a55b
children 30d959c35269
comparison
equal deleted inserted replaced
250:a7ae41f4a55b 251:bb2791f6d619
33 && apt-get install -y curl \ 33 && apt-get install -y curl \
34 34
35 && apt-get install -y unzip \ 35 && apt-get install -y unzip \
36 36
37 && apt-get install -y openjdk-8-jdk 37 && apt-get install -y openjdk-8-jdk
38
39 ENV ANT_VERSION 1.10.3
40 RUN cd && \
41 curl -fL -o apache-ant-bin.tar.gz http://www.us.apache.org/dist//ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz && \
42 tar -xzf apache-ant-bin.tar.gz && \
43 mv apache-ant-${ANT_VERSION} /opt/ant && \
44 rm apache-ant-${ANT_VERSION}-bin.tar.gz
45 ENV ANT_HOME /opt/ant
46 ENV PATH ${PATH}:/opt/ant/bin
38 47
39 RUN curl -fL -o docker.tgz "https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz"; 48 RUN curl -fL -o docker.tgz "https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz";
40 RUN tar --extract \ 49 RUN tar --extract \
41 --file docker.tgz \ 50 --file docker.tgz \
42 --strip-components 1 \ 51 --strip-components 1 \
50 docker -v 59 docker -v
51 60
52 #COPY modprobe.sh /usr/local/bin/modprobe 61 #COPY modprobe.sh /usr/local/bin/modprobe
53 COPY docker-entrypoint.sh /usr/local/bin/ 62 COPY docker-entrypoint.sh /usr/local/bin/
54 63
55
56 run chmod +x /usr/local/bin/docker-entrypoint.sh 64 run chmod +x /usr/local/bin/docker-entrypoint.sh
57 65
58 #EXPOSE 2375/tcp 66 #EXPOSE 2375/tcp
59 67
60
61 COPY atlassian-bamboo-agent-installer-6.5.0.jar /root 68 COPY atlassian-bamboo-agent-installer-6.5.0.jar /root
62 69
70 RUN mkdir -p /root/bamboo-agent-home/bin
71 COPY bamboo-capabilities.properties /root/bamboo-agent-home/bin/bamboo-capabilities.properties
63 72
64 ENTRYPOINT ["docker-entrypoint.sh"] 73 ENTRYPOINT ["docker-entrypoint.sh"]
65 74
66 CMD java -jar /root/atlassian-bamboo-agent-installer-6.5.0.jar $BAMBOO_SERVER/agentServer/ 75 CMD java -jar /root/atlassian-bamboo-agent-installer-6.5.0.jar $BAMBOO_SERVER/agentServer/
67 #CMD [] 76 #CMD []