forked from gocd/gocd-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.gocd-build-installer
20 lines (14 loc) · 1.06 KB
/
Dockerfile.gocd-build-installer
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Build using: docker build -f Dockerfile.gocd-build-installer -t gocd-build-installer .
FROM phusion/baseimage:0.9.16
MAINTAINER Aravind SV <[email protected]>
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
RUN apt-get update && apt-get install -y -q fakeroot git maven nsis openjdk-7-jdk rpm unzip zip
# install nodejs, update-alternatives is needed on ubuntu to enable command 'node'
RUN curl --silent --location https://deb.nodesource.com/setup_4.x | bash - && apt-get install --yes nodejs && update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
RUN git clone https://github.com/gocd/gocd.git /home/gocd
ADD gocd-build-installer/go-compile.sh /home/go-compile.sh
RUN /home/go-compile.sh
VOLUME ["/installers"]
ADD gocd-build-installer/go-build-installer.sh /home/go-build-installer.sh
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.m2/repository/com/thoughtworks/{go,gadgets}
ENTRYPOINT ["/sbin/my_init", "--quiet", "--skip-startup-files", "--skip-runit", "--no-kill-all-on-exit", "/home/go-build-installer.sh"]