forked from ivantichy/jira-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (20 loc) · 1.06 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
FROM debian:stretch
RUN useradd -u 1100 postgres && useradd -u 1099 dummyuser
RUN apt-get -y update && \
apt-get -y install wget nano git postgresql && rm -rf /var/lib/apt/lists/*
RUN mkdir /home/dbbackup && cp -r /var/lib/postgresql/9.6/main/* /home/dbbackup/
COPY check.gpr /check.gpr
COPY ./installjira /installjira
COPY ./dbconfig.xml /var/atlassian/jira-home/dbconfig.xml
RUN cd / && wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.6.0-x64.bin \
&& sha256sum -c check.gpr \
&& chmod a+x atlassian-jira-software-7.6.0-x64.bin \
&& cd / && ./atlassian-jira-software-7.6.0-x64.bin < ./installjira \
&& rm /atlassian-jira-software-7.6.0-x64.bin \
&& mkdir /home/jira-app-backup/ && cp -r /var/atlassian/jira-app/* /home/jira-app-backup/ \
&& mkdir /home/jira-home-backup/ && cp -r /var/atlassian/jira-home/* /home/jira-home-backup/
VOLUME /var/lib/postgresql/9.6/main /var/atlassian/jira-app /var/atlassian/jira-home
EXPOSE 8080
COPY ./entrypoint.sh /entrypoint.sh
COPY ./createdb.sql /createdb.sql
ENTRYPOINT [ "/entrypoint.sh" ]