This repository has been archived by the owner on Sep 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
53 lines (48 loc) · 1.61 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
#
# SINCE JIRA 7.13 WE USE OFFICAL OPENJDK ALPINE IMAGE
#
FROM openjdk:8u181-alpine3.8
ENV JIRA_VERSION 8.0.1
#
# INSTALL FONTCONFIG AND FIX LD_LIBRARY_PATH
#
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/jvm/java-1.8-openjdk/lib/amd64/:/usr/lib/:/lib/
RUN apk add --no-cache libgcc \
ttf-dejavu \
fontconfig \
libgcc
#
# TEST FONT CONFIG (there should be no errors)
#
RUN mkdir -p /opt/test-fontconfig
ADD test.ttf /opt/test-fontconfig/
ADD TestFontConfig.java /opt/test-fontconfig/
RUN cd /opt/test-fontconfig/ && \
javac TestFontConfig.java && \
java -Dsun.java2d.debugfonts=true -cp . TestFontConfig
#
# INSTALL
#
RUN addgroup -g 10777 worker && \
adduser -h /work -H -D -G worker -u 10777 worker && \
mkdir -p /work && \
mkdir -p /work-private && \
mkdir /jira && mkdir /jira-home && mkdir /jira-shared-home && \
chown -R worker:worker /work/ && \
chown -R worker:worker /work-private/ && \
apk add --no-cache \
bash \
curl \
tar \
python \
py-pip && \
pip install shinto-cli && \
curl -jkSL -o /opt/jira.tar.gz \
https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz && \
tar zxf /opt/jira.tar.gz -C /jira && \
cd /jira && \
ln -s atlassian-jira-software-${JIRA_VERSION}-standalone atlassian-jira-software-latest-standalone && \
rm /opt/jira.tar.gz && \
chown -R worker:worker /jira && \
chown -R worker:worker /jira-home/ && \
chown -R worker:worker /jira-shared-home