This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
forked from jjethwa/rundeck
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
51 lines (43 loc) · 2.61 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
# 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
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 libssl-dev ca-certificates-java supervisor procps sudo ca-certificates openssh-client mysql-server mysql-client pwgen curl git uuid-runtime parallel && \
cd /tmp/ && \
curl -Lo /tmp/rundeck.deb http://dl.bintray.com/rundeck/rundeck-deb/rundeck_2.10.6-1-GA_all.deb && \
echo '91f259838d99069ec2b80c13dd0baca54197d8cba3401dff5f7296adc6798838 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.22/rundeck-cli_1.0.22-1_all.deb && \
echo '2dd77e3ebda708fd80ce4630cc6d5a0a56b51399d35ef2bdf72ece8a2e401ecf 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
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"]