annotate bamboo-agent/Dockerfile @ 495:ee980c0dc774

USASR-5154 try adding to sources.list
author belknapSSDT <zach.belknap@mcoecn.org>
date Fri, 29 Sep 2023 10:44:20 -0400
parents 83f30dc7e9fb
children
rev   line source
249
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
1 FROM ubuntu:16.04
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
2
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
3 RUN apt-get update
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
4 RUN apt-get install -y ca-certificates
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
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
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
8 # set up nsswitch.conf for Go's "netgo" implementation (which Docker explicitly uses)
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
9 # - https://github.com/docker/docker-ce/blob/v17.09.0-ce/components/engine/hack/make.sh#L149
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
10 # - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
11 # - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
12 RUN echo 'hosts: files dns' > /etc/nsswitch.conf
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
13
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
14 ENV DOCKER_CHANNEL stable
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
15 ENV DOCKER_VERSION 17.03.2-ce
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
16 ENV PATH "$PATH:/usr/local/bin"
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
17 ENV DOCKER_HOST unix:///var/run/docker.sock
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
18 #RUN set -ex
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
19 # why we use "curl" instead of "wget":
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
20 # + wget -O docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-17.03.1-ce.tgz
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
21 # Connecting to download.docker.com (54.230.87.253:443)
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
22 # wget: error getting response: Connection reset by peer
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
23
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
24 RUN apt-get update -y
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
25
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
26
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
27 RUN apt-get install -y mercurial \
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
28
253
538179e4c675 adding bamboo agent configuration files - fix 2
aldrich@nwoca.org
parents: 252
diff changeset
29 # && apt-get install -y vim \
249
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
30
253
538179e4c675 adding bamboo agent configuration files - fix 2
aldrich@nwoca.org
parents: 252
diff changeset
31 # && apt-get install -y nano \
249
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
32
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
33 && apt-get install -y tar \
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
34
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
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
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
38
258
0fae07b2519b update bamboo agent
aldrich@nwoca.org
parents: 253
diff changeset
39 && apt-get install -y openjdk-8-jdk \
0fae07b2519b update bamboo agent
aldrich@nwoca.org
parents: 253
diff changeset
40
310
efffda6462a7 fix adding for timezone
aldrich@nwoca.org
parents: 309
diff changeset
41 && apt-get install -y zip
305
44f0c4e37a7c trying to fix time zone issue
aldrich@nwoca.org
parents: 296
diff changeset
42
311
e23a3e570b2d fix adding for timezone
aldrich@nwoca.org
parents: 310
diff changeset
43
e23a3e570b2d fix adding for timezone
aldrich@nwoca.org
parents: 310
diff changeset
44
307
9ed94580b4b5 fix adding for timezone
aldrich@nwoca.org
parents: 306
diff changeset
45 #RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
9ed94580b4b5 fix adding for timezone
aldrich@nwoca.org
parents: 306
diff changeset
46 #dpkg-reconfigure -f noninteractive tzdata
305
44f0c4e37a7c trying to fix time zone issue
aldrich@nwoca.org
parents: 296
diff changeset
47
251
bb2791f6d619 add ant
smith@nwoca.org
parents: 250
diff changeset
48
315
b67ceb4b6d04 adjusting docker script
aldrich@ssdt-ohio.org
parents: 313
diff changeset
49 ENV ANT_VERSION 1.10.6
251
bb2791f6d619 add ant
smith@nwoca.org
parents: 250
diff changeset
50 RUN cd && \
bb2791f6d619 add ant
smith@nwoca.org
parents: 250
diff changeset
51 curl -fL -o apache-ant-bin.tar.gz http://www.us.apache.org/dist//ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.gz && \
bb2791f6d619 add ant
smith@nwoca.org
parents: 250
diff changeset
52 tar -xzf apache-ant-bin.tar.gz && \
bb2791f6d619 add ant
smith@nwoca.org
parents: 250
diff changeset
53 mv apache-ant-${ANT_VERSION} /opt/ant && \
252
30d959c35269 fix ant install
smith@nwoca.org
parents: 251
diff changeset
54 rm apache-ant-bin.tar.gz
251
bb2791f6d619 add ant
smith@nwoca.org
parents: 250
diff changeset
55 ENV ANT_HOME /opt/ant
bb2791f6d619 add ant
smith@nwoca.org
parents: 250
diff changeset
56 ENV PATH ${PATH}:/opt/ant/bin
249
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
57
296
7fcdf01e19eb adding maven 3 to bamboo agents
aldrich@nwoca.org
parents: 286
diff changeset
58
7fcdf01e19eb adding maven 3 to bamboo agents
aldrich@nwoca.org
parents: 286
diff changeset
59 RUN cd && \
7fcdf01e19eb adding maven 3 to bamboo agents
aldrich@nwoca.org
parents: 286
diff changeset
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 && \
7fcdf01e19eb adding maven 3 to bamboo agents
aldrich@nwoca.org
parents: 286
diff changeset
61 tar -xzf apache-maven-bin.tar.gz && \
7fcdf01e19eb adding maven 3 to bamboo agents
aldrich@nwoca.org
parents: 286
diff changeset
62 mv apache-maven-3.0.3 /usr/share && \
7fcdf01e19eb adding maven 3 to bamboo agents
aldrich@nwoca.org
parents: 286
diff changeset
63 rm apache-maven-bin.tar.gz
7fcdf01e19eb adding maven 3 to bamboo agents
aldrich@nwoca.org
parents: 286
diff changeset
64 ENV PATH ${PATH}:/usr/share/apache-maven-3.0.3/bin
7fcdf01e19eb adding maven 3 to bamboo agents
aldrich@nwoca.org
parents: 286
diff changeset
65
249
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
66 RUN curl -fL -o docker.tgz "https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz";
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
67 RUN tar --extract \
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
68 --file docker.tgz \
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
69 --strip-components 1 \
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
70 --directory /usr/local/bin/ \
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
71 ; \
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
72 rm docker.tgz; \
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
73 \
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
74 apt-get autoremove \
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
75 \
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
76 dockerd -v; \
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
77 docker -v
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
78
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
79 #COPY modprobe.sh /usr/local/bin/modprobe
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
80 COPY docker-entrypoint.sh /usr/local/bin/
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
81
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
82 run chmod +x /usr/local/bin/docker-entrypoint.sh
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
83
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
84 #EXPOSE 2375/tcp
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
85
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
86 COPY atlassian-bamboo-agent-installer-6.5.0.jar /root
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
87
251
bb2791f6d619 add ant
smith@nwoca.org
parents: 250
diff changeset
88 RUN mkdir -p /root/bamboo-agent-home/bin
bb2791f6d619 add ant
smith@nwoca.org
parents: 250
diff changeset
89 COPY bamboo-capabilities.properties /root/bamboo-agent-home/bin/bamboo-capabilities.properties
249
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
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
6bd1eb71db59 fix adding for timezone
aldrich@nwoca.org
parents: 311
diff changeset
95 RUN apt-get install tzdata
6bd1eb71db59 fix adding for timezone
aldrich@nwoca.org
parents: 311
diff changeset
96
313
06e92ad77e7f fix adding for timezone
aldrich@nwoca.org
parents: 312
diff changeset
97 RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
06e92ad77e7f fix adding for timezone
aldrich@nwoca.org
parents: 312
diff changeset
98 dpkg-reconfigure -f noninteractive tzdata
312
6bd1eb71db59 fix adding for timezone
aldrich@nwoca.org
parents: 311
diff changeset
99
249
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
100 ENTRYPOINT ["docker-entrypoint.sh"]
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
101
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
102 CMD java -jar /root/atlassian-bamboo-agent-installer-6.5.0.jar $BAMBOO_SERVER/agentServer/
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
103 #CMD []
3799d9706864 adding bamboo agent configuration files
aldrich@nwoca.org
parents:
diff changeset
104