forked from jjethwa/rundeck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
52 lines (44 loc) · 2.73 KB
/
Dockerfile
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
50
51
52
# Dockerfile for rundeck
# https://github.com/jjethwa/rundeck
FROM debian:stretch
MAINTAINER Jordan Jethwa
ENV SERVER_URL=https://localhost:4443 \
RUNDECK_STORAGE_PROVIDER=file \
RUNDECK_PROJECT_STORAGE_TYPE=file \
NO_LOCAL_MYSQL=false \
LOGIN_MODULE=RDpropertyfilelogin \
JAAS_CONF_FILE=jaas-loginmodule.conf \
KEYSTORE_PASS=adminadmin \
TRUSTSTORE_PASS=adminadmin \
CLUSTER_MODE=false
RUN export DEBIAN_FRONTEND=noninteractive && \
echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list && \
apt-get -qq update && \
apt-get -qqy install -t stretch-backports --no-install-recommends bash openjdk-8-jre-headless ca-certificates-java supervisor procps sudo ca-certificates openssh-client mysql-server mysql-client postgresql-9.6 postgresql-client-9.6 pwgen curl git uuid-runtime parallel jq && \
cd /tmp/ && \
curl -Lo /tmp/rundeck.deb http://dl.bintray.com/rundeck/rundeck-deb/rundeck_3.0.1.20180803-1.201808032143_all.deb && \
echo '6e86290b1394ab50e9886b9158cba28b806f440b58a2d1aa08ebe81c4b6c1862 rundeck.deb' > /tmp/rundeck.sig && \
shasum -a256 -c /tmp/rundeck.sig && \
curl -Lo /tmp/rundeck-cli.deb https://github.com/rundeck/rundeck-cli/releases/download/v1.0.29/rundeck-cli_1.0.29-1_all.deb && \
echo '6708723c41858b81bde450eb69d6f605d655c62b546b5ed0ba351fb95cff0d60 rundeck-cli.deb' > /tmp/rundeck-cli.sig && \
shasum -a256 -c /tmp/rundeck-cli.sig && \
cd - && \
dpkg -i /tmp/rundeck*.deb && rm /tmp/rundeck*.deb && \
chown rundeck:rundeck /tmp/rundeck && \
mkdir -p /var/lib/rundeck/.ssh && \
chown rundeck:rundeck /var/lib/rundeck/.ssh && \
sed -i "s/export RDECK_JVM=\"/export RDECK_JVM=\"\${RDECK_JVM} /" /etc/rundeck/profile && \
curl -Lo /var/lib/rundeck/libext/rundeck-slack-incoming-webhook-plugin-0.6.jar https://github.com/higanworks/rundeck-slack-incoming-webhook-plugin/releases/download/v0.6.dev/rundeck-slack-incoming-webhook-plugin-0.6.jar && \
echo 'd23b31ec4791dff1a7051f1f012725f20a1e3e9f85f64a874115e46df77e00b5 rundeck-slack-incoming-webhook-plugin-0.6.jar' > /tmp/rundeck-slack-plugin.sig && \
cd /var/lib/rundeck/libext/ && \
shasum -a256 -c /tmp/rundeck-slack-plugin.sig && \
cd - && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ADD content/ /
RUN chmod u+x /opt/run && \
mkdir -p /var/log/supervisor && mkdir -p /opt/supervisor && \
chmod u+x /opt/supervisor/rundeck && chmod u+x /opt/supervisor/mysql_supervisor && chmod u+x /opt/supervisor/fatalservicelistener
EXPOSE 4440 4443
VOLUME ["/etc/rundeck", "/var/rundeck", "/var/lib/rundeck", "/var/lib/mysql", "/var/log/rundeck", "/opt/rundeck-plugins", "/var/lib/rundeck/logs", "/var/lib/rundeck/var/storage"]
ENTRYPOINT ["/opt/run"]