-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (22 loc) · 1018 Bytes
/
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
FROM registry.gitlab.com/jitesoft/dockerfiles/openjdk:latest
ARG VERSION="2019.1.50916"
LABEL youtrack.version="${VERSION}"
ENV PORT=8080 \
PUBLIC_URI="http://127.0.0.1:8080"
ADD startup.sh /startup.sh
ADD healthcheck.sh /healthcheck.sh
# Using the zip installation for the ability to use an external hub if wanted.
RUN apk add --no-cache --virtual .trash unzip \
&& wget https://download.jetbrains.com/charisma/youtrack-${VERSION}.zip \
&& wget https://download.jetbrains.com/charisma/youtrack-${VERSION}.zip.sha256 \
&& grep "youtrack-${VERSION}.zip\$" youtrack-${VERSION}.zip.sha256 | sha256sum -c - \
&& unzip youtrack-${VERSION}.zip \
&& rm youtrack-${VERSION}.zip youtrack-${VERSION}.zip.sha256 \
&& mv youtrack-* youtrack \
&& apk del .trash \
&& chmod +x /startup.sh \
&& chmod +x /healthcheck.sh \
&& rm -rf youtrack/internal/java
VOLUME ["/youtrack/logs", "/youtrack/backups", "/youtrack/logs", "/youtrack/data"]
HEALTHCHECK --interval=2m --timeout=5s CMD /healthcheck.sh
CMD ["/startup.sh"]