This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
61 lines (45 loc) · 2.1 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
58
59
60
61
FROM ffquintella/docker-puppet:latest
MAINTAINER Felipe Quintella <[email protected]>
LABEL version="8.2.4.1"
LABEL description="This image contais the jira 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 JIRA_VERSION "8.2.4"
ENV JIRA_INSTALLDIR "/opt/jira"
ENV JIRA_HOME "/opt/jira-home"
ENV JIRA_CHECKSUM "f045c6c1ef35f6d11a84409286fb3bad"
ENV JIRA_DOWNLOAD_URL "https://www.atlassian.com/software/jira/downloads/binary/"
ENV FACTER_JIRA_VERSION $JIRA_VERSION
ENV FACTER_JIRA_CHECKSUM $JIRA_CHECKSUM
ENV FACTER_JIRA_INSTALLDIR $JIRA_INSTALLDIR
ENV FACTER_JIRA_HOME $JIRA_HOME
ENV FACTER_JIRA_DOWNLOAD_URL $JIRA_DOWNLOAD_URL
ENV FACTER_JAVA_HOME "/opt/java_home"
ENV FACTER_JAVA_VERSION "8"
ENV FACTER_JAVA_VERSION_UPDATE "212"
ENV FACTER_JAVA_VERSION_BUILD "04"
ENV FACTER_JAVA_VERSION_HASH "59066701cf1a433da9770636fbc4c9aa"
ENV JVM_MINIMUM_MEMORY 1024m
ENV JVM_MAXIMUM_MEMORY 6144m
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 ; \
/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
COPY setenv.sh ${JIRA_INSTALLDIR}/atlassian-jira-software-${JIRA_VERSION}-standalone/bin/
RUN chmod +x ${JIRA_INSTALLDIR}/atlassian-jira-software-${JIRA_VERSION}-standalone/bin/setenv.sh
# Ports Jira web interface
EXPOSE 8080/tcp
WORKDIR $FACTER_JIRA_INSTALLDIR
# Configurations folder, install dir
VOLUME $JIRA_HOME
#CMD /opt/puppetlabs/puppet/bin/puppet apply -l /tmp/puppet.log --modulepath=/etc/puppet/modules /etc/puppet/manifests/start.pp
CMD ["start-service"]