Mercurial > public > ssdt-docker
annotate bamboo-agent/Dockerfile @ 377:c1e8c755bce2 production
flow: Promoted <release> 'v2.11.0' (c6b2a1abecb8) to 'production'.
author | Marc Davis <davis@ssdt-ohio.org> |
---|---|
date | Fri, 10 Sep 2021 07:47:54 -0400 |
parents | 83f30dc7e9fb |
children |
rev | line source |
---|---|
249 | 1 FROM ubuntu:16.04 |
2 | |
3 RUN apt-get update | |
4 RUN apt-get install -y ca-certificates | |
5 | |
316
83f30dc7e9fb
adjusting docker script to test notifications
aldrich@ssdt-ohio.org
parents:
315
diff
changeset
|
6 ####NOTE we are no longer using the docker-bamboo agent images due to migration to mutli-agent servers. |
83f30dc7e9fb
adjusting docker script to test notifications
aldrich@ssdt-ohio.org
parents:
315
diff
changeset
|
7 |
249 | 8 # set up nsswitch.conf for Go's "netgo" implementation (which Docker explicitly uses) |
9 # - https://github.com/docker/docker-ce/blob/v17.09.0-ce/components/engine/hack/make.sh#L149 | |
10 # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275 | |
11 # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf | |
12 RUN echo 'hosts: files dns' > /etc/nsswitch.conf | |
13 | |
14 ENV DOCKER_CHANNEL stable | |
15 ENV DOCKER_VERSION 17.03.2-ce | |
16 ENV PATH "$PATH:/usr/local/bin" | |
17 ENV DOCKER_HOST unix:///var/run/docker.sock | |
18 #RUN set -ex | |
19 # why we use "curl" instead of "wget": | |
20 # + wget -O docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-17.03.1-ce.tgz | |
21 # Connecting to download.docker.com (54.230.87.253:443) | |
22 # wget: error getting response: Connection reset by peer | |
23 | |
24 RUN apt-get update -y | |
25 | |
26 | |
27 RUN apt-get install -y mercurial \ | |
28 | |
253
538179e4c675
adding bamboo agent configuration files - fix 2
aldrich@nwoca.org
parents:
252
diff
changeset
|
29 # && apt-get install -y vim \ |
249 | 30 |
253
538179e4c675
adding bamboo agent configuration files - fix 2
aldrich@nwoca.org
parents:
252
diff
changeset
|
31 # && apt-get install -y nano \ |
249 | 32 |
33 && apt-get install -y tar \ | |
34 | |
35 && apt-get install -y curl \ | |
250
a7ae41f4a55b
adding bamboo agent configuration files - fix 1
aldrich@nwoca.org
parents:
249
diff
changeset
|
36 |
a7ae41f4a55b
adding bamboo agent configuration files - fix 1
aldrich@nwoca.org
parents:
249
diff
changeset
|
37 && apt-get install -y unzip \ |
249 | 38 |
258 | 39 && apt-get install -y openjdk-8-jdk \ |
40 | |
310 | 41 && apt-get install -y zip |
305 | 42 |
311 | 43 |
44 | |
307 | 45 #RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \ |
46 #dpkg-reconfigure -f noninteractive tzdata | |
305 | 47 |
251 | 48 |
315 | 49 ENV ANT_VERSION 1.10.6 |
251 | 50 RUN cd && \ |
51 curl -fL -o apache-ant-bin.tar.gz http://www.us.apache.org/dist//ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz && \ | |
52 tar -xzf apache-ant-bin.tar.gz && \ | |
53 mv apache-ant-${ANT_VERSION} /opt/ant && \ | |
252 | 54 rm apache-ant-bin.tar.gz |
251 | 55 ENV ANT_HOME /opt/ant |
56 ENV PATH ${PATH}:/opt/ant/bin | |
249 | 57 |
296 | 58 |
59 RUN cd && \ | |
60 curl -fL -o apache-maven-bin.tar.gz http://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.0.3/apache-maven-3.0.3-bin.tar.gz && \ | |
61 tar -xzf apache-maven-bin.tar.gz && \ | |
62 mv apache-maven-3.0.3 /usr/share && \ | |
63 rm apache-maven-bin.tar.gz | |
64 ENV PATH ${PATH}:/usr/share/apache-maven-3.0.3/bin | |
65 | |
249 | 66 RUN curl -fL -o docker.tgz "https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz"; |
67 RUN tar --extract \ | |
68 --file docker.tgz \ | |
69 --strip-components 1 \ | |
70 --directory /usr/local/bin/ \ | |
71 ; \ | |
72 rm docker.tgz; \ | |
73 \ | |
74 apt-get autoremove \ | |
75 \ | |
76 dockerd -v; \ | |
77 docker -v | |
78 | |
79 #COPY modprobe.sh /usr/local/bin/modprobe | |
80 COPY docker-entrypoint.sh /usr/local/bin/ | |
81 | |
82 run chmod +x /usr/local/bin/docker-entrypoint.sh | |
83 | |
84 #EXPOSE 2375/tcp | |
85 | |
86 COPY atlassian-bamboo-agent-installer-6.5.0.jar /root | |
87 | |
251 | 88 RUN mkdir -p /root/bamboo-agent-home/bin |
89 COPY bamboo-capabilities.properties /root/bamboo-agent-home/bin/bamboo-capabilities.properties | |
249 | 90 |
253
538179e4c675
adding bamboo agent configuration files - fix 2
aldrich@nwoca.org
parents:
252
diff
changeset
|
91 RUN curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose |
538179e4c675
adding bamboo agent configuration files - fix 2
aldrich@nwoca.org
parents:
252
diff
changeset
|
92 |
538179e4c675
adding bamboo agent configuration files - fix 2
aldrich@nwoca.org
parents:
252
diff
changeset
|
93 RUN chmod +x /usr/local/bin/docker-compose |
538179e4c675
adding bamboo agent configuration files - fix 2
aldrich@nwoca.org
parents:
252
diff
changeset
|
94 |
312 | 95 RUN apt-get install tzdata |
96 | |
313 | 97 RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \ |
98 dpkg-reconfigure -f noninteractive tzdata | |
312 | 99 |
249 | 100 ENTRYPOINT ["docker-entrypoint.sh"] |
101 | |
102 CMD java -jar /root/atlassian-bamboo-agent-installer-6.5.0.jar $BAMBOO_SERVER/agentServer/ | |
103 #CMD [] | |
104 |