account-app/Dockerfile

36 lines
1.0 KiB
Docker
Raw Normal View History

FROM jetty:jre8-alpine
2014-05-01 18:16:21 +00:00
LABEL \
Description="Deploy Jenkins infra account app" \
Project="https://github.com/jenkins-infra/account-app" \
Maintainer="infra@lists.jenkins-ci.org"
2017-05-09 15:01:48 +00:00
ENV ELECTION_LOGDIR=/var/log/accountapp/elections
2017-05-09 15:23:03 +00:00
ENV CIRCUIT_BREAKER_FILE=/etc/accountapp/circuitBreaker.txt
ENV SMTP_SERVER=localhost
ENV JIRA_URL=https://issues.jenkins-ci.org
ENV APP_URL=http://accounts.jenkins.io/
2017-05-09 15:01:48 +00:00
EXPOSE 8080
2014-05-01 18:16:21 +00:00
# /home/jetty/.app is apparently needed by Stapler for some weird reason. O_O
2017-05-09 15:01:48 +00:00
RUN mkdir -p /home/jetty/.app &&\
mkdir -p /etc/accountapp &&\
mkdir -p $ELECTION_LOGDIR
COPY config.properties.example /etc/accountapp/config.properties.example
COPY circuitBreaker.txt /etc/accountapp/circuitBreaker.txt
COPY entrypoint.sh /entrypoint.sh
2017-04-27 13:20:06 +00:00
COPY build/libs/accountapp*.war /var/lib/jetty/webapps/ROOT.war
2017-05-09 15:01:48 +00:00
RUN chmod 0755 /entrypoint.sh &&\
chown -R jetty:root /etc/accountapp &&\
chown -R jetty:root /var/lib/jetty &&\
chown -R jetty:root $ELECTION_LOGDIR
USER jetty
2014-05-01 18:16:21 +00:00
ENTRYPOINT /entrypoint.sh