-
Notifications
You must be signed in to change notification settings - Fork 137
/
Dockerfile
47 lines (39 loc) · 2.43 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
# Dockerfile for rundeck
# https://github.com/jjethwa/rundeck
FROM debian:bullseye
MAINTAINER Jordan Jethwa
ENV SERVER_URL=https://localhost:4443 \
RUNDECK_STORAGE_PROVIDER=db \
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 bullseye-backports main" >> /etc/apt/sources.list && \
apt-get -qq update && \
apt-get -qqy install -t bullseye-backports --no-install-recommends apt-transport-https curl ca-certificates && \
curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | bash -s -- --mariadb-server-version=10.5 && \
apt-get -qqy install -t bullseye-backports --no-install-recommends bash openjdk-11-jre-headless ca-certificates-java supervisor procps sudo openssh-client mariadb-server mariadb-client postgresql postgresql-client pwgen git uuid-runtime parallel jq libxml2-utils html2text unzip && \
curl -s https://packagecloud.io/install/repositories/pagerduty/rundeck/script.deb.sh | os=any dist=any bash && \
apt-get -qqy install rundeck rundeck-cli && \
mkdir -p /tmp/rundeck && \
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/slack-incoming-webhook-plugin-1.2.5.jar https://github.com/rundeck-plugins/slack-incoming-webhook-plugin/releases/download/v1.2.5/slack-incoming-webhook-plugin-1.2.5.jar && \
echo 'e386b8cf06678ffee2c1282160efbdb5d51283e4d7c72f6fd0feb1f69f128532 slack-incoming-webhook-plugin-1.2.5.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/mariadb_supervisor && chmod u+x /opt/supervisor/fatalservicelistener
EXPOSE 4440 4443
VOLUME ["/etc/rundeck", "/var/rundeck", "/var/lib/mysql", "/var/log/rundeck", "/opt/rundeck-plugins", "/var/lib/rundeck/logs", "/var/lib/rundeck/var/storage"]
ENTRYPOINT ["/opt/run"]