comparison bamboo-agent/Dockerfile @ 249:3799d9706864

adding bamboo agent configuration files
author aldrich@nwoca.org
date Wed, 23 May 2018 16:43:34 +0100
parents
children a7ae41f4a55b
comparison
equal deleted inserted replaced
248:f994e8eca29f 249:3799d9706864
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 openjdk-8-jdk
36
37 RUN curl -fL -o docker.tgz "https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz";
38 RUN tar --extract \
39 --file docker.tgz \
40 --strip-components 1 \
41 --directory /usr/local/bin/ \
42 ; \
43 rm docker.tgz; \
44 \
45 apt-get autoremove \
46 \
47 dockerd -v; \
48 docker -v
49
50 #COPY modprobe.sh /usr/local/bin/modprobe
51 COPY docker-entrypoint.sh /usr/local/bin/
52
53
54 run chmod +x /usr/local/bin/docker-entrypoint.sh
55
56 #EXPOSE 2375/tcp
57
58
59 COPY atlassian-bamboo-agent-installer-6.5.0.jar /root
60
61
62 ENTRYPOINT ["docker-entrypoint.sh"]
63
64 CMD java -jar /root/atlassian-bamboo-agent-installer-6.5.0.jar $BAMBOO_SERVER/agentServer/
65 #CMD []
66