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
52 lines (47 loc) · 1.65 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
FROM adoptopenjdk/openjdk11:x86_64-ubuntu-jdk-11.0.3_7
ENV JIRA_VERSION 8.2.0
ENV DEBIAN_FRONTEND=noninteractive
#
# INSTALL FONTCONFIG AND FIX LD_LIBRARY_PATH
#
RUN apt-get update && apt-get -y install \
ttf-dejavu \
libfontconfig1
#
# 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 --gid 10777 worker && \
adduser --home /work --gid 10777 --uid 10777 --disabled-password --gecos "" 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/ && \
apt-get -y install \
bash \
curl \
tar \
postgresql \
postgresql-client \
python \
python-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 && \
chown -R worker:worker /opt/java/openjdk/