comparison bamboo-agent/Dockerfile @ 264:3754be907d9b production vv2.1.0

flow: Merged <release> 'v2.1.0' to <master> ('production').
author aldrich@nwoca.org
date Thu, 26 Jul 2018 14:27:43 +0100
parents 0fae07b2519b
children 477609392d1b
comparison
equal deleted inserted replaced
247:b8ee60469db7 264:3754be907d9b
1 FROM ubuntu:16.04
2
3 RUN apt-get update
4 RUN apt-get install -y ca-certificates
5
6 # set up nsswitch.conf for Go's "netgo" implementation (which Docker explicitly uses)
7 # - https://github.com/docker/docker-ce/blob/v17.09.0-ce/components/engine/hack/make.sh#L149
8 # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
9 # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
10 RUN echo 'hosts: files dns' > /etc/nsswitch.conf
11
12 ENV DOCKER_CHANNEL stable
13 ENV DOCKER_VERSION 17.03.2-ce
14 ENV PATH "$PATH:/usr/local/bin"
15 ENV DOCKER_HOST unix:///var/run/docker.sock
16 #RUN set -ex
17 # why we use "curl" instead of "wget":
18 # + wget -O docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-17.03.1-ce.tgz
19 # Connecting to download.docker.com (54.230.87.253:443)
20 # wget: error getting response: Connection reset by peer
21
22 RUN apt-get update -y
23
24
25 RUN apt-get install -y mercurial \
26
27 # && apt-get install -y vim \
28
29 # && apt-get install -y nano \
30
31 && apt-get install -y tar \
32
33 && apt-get install -y curl \
34
35 && apt-get install -y unzip \
36
37 && apt-get install -y openjdk-8-jdk \
38
39 && apt-get install -y zip
40
41 ENV ANT_VERSION 1.10.3
42 RUN cd && \
43 curl -fL -o apache-ant-bin.tar.gz http://www.us.apache.org/dist//ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz && \
44 tar -xzf apache-ant-bin.tar.gz && \
45 mv apache-ant-${ANT_VERSION} /opt/ant && \
46 rm apache-ant-bin.tar.gz
47 ENV ANT_HOME /opt/ant
48 ENV PATH ${PATH}:/opt/ant/bin
49
50 RUN curl -fL -o docker.tgz "https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz";
51 RUN tar --extract \
52 --file docker.tgz \
53 --strip-components 1 \
54 --directory /usr/local/bin/ \
55 ; \
56 rm docker.tgz; \
57 \
58 apt-get autoremove \
59 \
60 dockerd -v; \
61 docker -v
62
63 #COPY modprobe.sh /usr/local/bin/modprobe
64 COPY docker-entrypoint.sh /usr/local/bin/
65
66 run chmod +x /usr/local/bin/docker-entrypoint.sh
67
68 #EXPOSE 2375/tcp
69
70 COPY atlassian-bamboo-agent-installer-6.5.0.jar /root
71
72 RUN mkdir -p /root/bamboo-agent-home/bin
73 COPY bamboo-capabilities.properties /root/bamboo-agent-home/bin/bamboo-capabilities.properties
74
75 RUN curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
76
77 RUN chmod +x /usr/local/bin/docker-compose
78
79 ENTRYPOINT ["docker-entrypoint.sh"]
80
81 CMD java -jar /root/atlassian-bamboo-agent-installer-6.5.0.jar $BAMBOO_SERVER/agentServer/
82 #CMD []
83