-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
34 lines (23 loc) · 1.2 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
# Dockerfile for docker image of RunDeck
# https://github.com/bhalothia/docker-rundeck
# RunDeck plugins from https://github.com/rundeck-plugins
FROM debian:wheezy
MAINTAINER Virendra Singh Bhalothia <[email protected]>
#ENV DEBIAN_FRONTEND noninteractive
ENV SERVER_URL http://localhost:4440
ENV RDECK_BASE /var/lib/rundeck
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update && apt-get -qqy upgrade && apt-get -qqy install --no-install-recommends bash supervisor procps sudo ca-certificates openjdk-7-jre-headless openssh-client mysql-server mysql-client pwgen curl git && apt-get clean
ADD http://dl.bintray.com/rundeck/rundeck-deb/rundeck-2.5.3-1-GA.deb /tmp/rundeck.deb
ADD prerequisites/ /
RUN dpkg -i /tmp/rundeck.deb && rm /tmp/rundeck.deb
RUN chown rundeck:rundeck /tmp/rundeck
RUN chmod u+x /opt/run
RUN mkdir -p $RDECK_BASE/.ssh
RUN chown rundeck:rundeck $RDECK_BASE/.ssh
# Supervisor Settings
RUN mkdir -p /var/log/supervisor && mkdir -p /opt/supervisor
RUN 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"]
# Start Supervisor
ENTRYPOINT ["/opt/run"]