commit | author | age
|
fd7413
|
1 |
FROM openjdk:8-jre-slim-stretch |
bfbd53
|
2 |
|
JK |
3 |
ENV DEBIAN_FRONTEND noninteractive |
d6614a
|
4 |
ENV RDECK_JVM_SETTINGS "-Xmx1024m -Xms256m -XX:MaxMetaspaceSize=256m -server" |
bfbd53
|
5 |
|
JK |
6 |
EXPOSE 4440 |
|
7 |
|
cf017b
|
8 |
ADD *-gpg.key /root/ |
aee79d
|
9 |
RUN apt-get -y update \ |
bdb887
|
10 |
&& apt-get -y upgrade \ |
d6614a
|
11 |
&& apt-get -y install openssh-client wget gnupg \ |
JK |
12 |
&& echo "deb http://dl.bintray.com/rundeck/rundeck-deb /" \ |
|
13 |
> /etc/apt/sources.list.d/rundeck.list \ |
aee79d
|
14 |
&& cat /root/*-gpg.key | apt-key add - \ |
JK |
15 |
&& apt-get -y update \ |
d6614a
|
16 |
&& apt-get -y install rundeck \ |
aee79d
|
17 |
&& apt-get -y clean \ |
JK |
18 |
&& rm -Rf /var/lib/apt/lists/* |
bfbd53
|
19 |
|
fd7413
|
20 |
RUN echo "deb http://ftp.debian.org/debian stretch-backports main" \ |
JK |
21 |
> /etc/apt/sources.list.d/backports.list \ |
|
22 |
&& apt-get -y update \ |
|
23 |
&& apt-get -y upgrade \ |
|
24 |
&& apt-get -y -t stretch-backports install \ |
|
25 |
ansible git python-netaddr python3-netaddr \ |
|
26 |
&& apt-get -y clean \ |
|
27 |
&& rm -Rf /var/lib/apt/lists/* |
|
28 |
|
bdb887
|
29 |
RUN mkdir /etc/rundeck-org \ |
d6614a
|
30 |
&& mv /etc/rundeck/* /etc/rundeck-org/ |
bfbd53
|
31 |
|
JK |
32 |
ADD run.sh / |
|
33 |
CMD /run.sh |
|
34 |
|
|
35 |
VOLUME /etc/rundeck |
|
36 |
VOLUME /var/lib/rundeck/data |
|
37 |
VOLUME /var/lib/rundeck/logs |
|
38 |
VOLUME /var/rundeck |