-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (37 loc) · 1.41 KB
/
Dockerfile
File metadata and controls
49 lines (37 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM java:openjdk-7-jdk
MAINTAINER Edu Herraiz <ghark@gmail.com>
ENV GRAILS_VERSION 3.1.0
RUN \
echo "deb http://dl.bintray.com/rundeck/rundeck-deb /" | tee -a /etc/apt/sources.list.d/rundeck.list && \
wget -qO- https://bintray.com/user/downloadSubjectPublicKey?username=bintray | apt-key add -
COPY system-requirements.txt /root/system-requirements.txt
RUN \
apt-get update && \
apt-get -y upgrade && \
apt-get -y autoremove && \
xargs apt-get -y -q install < /root/system-requirements.txt && \
apt-get clean
COPY requirements.txt /root/requirements.txt
RUN pip install -r /root/requirements.txt
# RUN curl -s get.sdkman.io | bash && \
# chmod +x /root/.sdkman/bin/sdkman-init.sh && \
# /root/.sdkman/bin/sdkman-init.sh && \
# yes | sdk install grails
ENV HOME /var/lib/rundeck
ENV SHELL bash
ENV WORKON_HOME /var/lib/rundeck
WORKDIR /var/lib/rundeck
# Install grails necessary to send mails
RUN wget https://github.com/grails/grails-core/releases/download/v$GRAILS_VERSION/grails-$GRAILS_VERSION.zip && \
unzip grails-$GRAILS_VERSION.zip && \
rm -rf grails-$GRAILS_VERSION.zip && \
ln -s grails-$GRAILS_VERSION grails
ENV GRAILS_HOME /var/lib/rundeck/grails
ENV PATH $GRAILS_HOME/bin:$PATH
VOLUME /data
COPY conf /root/rundeck-config
COPY conf-templates /root/rundeck-config-templates
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["rundeck"]
EXPOSE 4440