-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
57 lines (39 loc) · 1.81 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
53
54
55
56
57
FROM ffquintella/docker-puppet:1.4.1
MAINTAINER Felipe Quintella <[email protected]>
LABEL version="3.0.7.1"
LABEL description="This image contais the rundeck application to be used \
as a server."
#ENV LANG=en_US.UTF-8
#ENV LANGUAGE=en_US.UTF-8
#ENV LC_ALL=en_US.UTF-8
ENV JAVA_HOME "/opt/java_home/java_home"
ENV RUNDECK_VERSION "3.0.7.20181008-1.201810082316"
# HSQL or DEDICATED
ENV RUNDECK_DB_TYPE "HSQL"
ENV RUNDECK_URL "http://127.0.0.1:4440"
ENV FACTER_RUNDECK_VERSION $RUNDECK_VERSION
ENV FACTER_RUNDECK_DB_TYPE $RUNDECK_DB_TYPE
#ENV FACTER_RUNDECK_DB_TECH $RUNDECK_DB_TECH
ENV FACTER_RUNDECK_URL $RUNDECK_URL
ENV FACTER_JAVA_HOME "/opt/java_home"
ENV FACTER_JAVA_VERSION "8"
ENV FACTER_JAVA_VERSION_UPDATE "192"
ENV FACTER_JAVA_VERSION_BUILD "12"
ENV FACTER_JAVA_VERSION_HASH "750e1c8617c5452694857ad95c3ee230"
ENV FACTER_PRE_RUN_CMD ""
ENV FACTER_EXTRA_PACKS ""
# Puppet stuff all the instalation is donne by puppet
# Just after it we clean up everthing so the end image isn't too big
RUN mkdir /etc/puppet; mkdir /etc/puppet/manifests ; mkdir /etc/puppet/modules ; mkdir /opt/scripts
COPY manifests /etc/puppet/manifests/
COPY modules /etc/puppet/modules/
COPY start-service.sh /opt/scripts/start-service.sh
RUN chmod +x /opt/scripts/start-service.sh ; ln -s /opt/scripts/start-service.sh /usr/bin/start-service ; /opt/puppetlabs/puppet/bin/puppet apply --modulepath=/etc/puppet/modules /etc/puppet/manifests/base.pp ;\
yum clean all ; rm -rf /tmp/* ; rm -rf /var/cache/* ; rm -rf /var/tmp/* ; rm -rf /var/opt/staging
# Ports Jira web interface
EXPOSE 4440/tcp
WORKDIR '/var/lib/rundeck'
# Configurations folder, install dir
#VOLUME $CONFLUENCE_HOME
#CMD /opt/puppetlabs/puppet/bin/puppet apply -l /tmp/puppet.log --modulepath=/etc/puppet/modules /etc/puppet/manifests/start.pp
CMD ["start-service"]