Set host timezone for unbound and solr

master
André Peters 2019-02-08 20:33:45 +01:00 committed by GitHub
commit 86b11870e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@ FROM solr:7-alpine
USER root USER root
COPY docker-entrypoint.sh / COPY docker-entrypoint.sh /
RUN apk --no-cache add su-exec curl \ RUN apk --no-cache add su-exec curl tzdata \
&& chmod +x /docker-entrypoint.sh \ && chmod +x /docker-entrypoint.sh \
&& /docker-entrypoint.sh --bootstrap && /docker-entrypoint.sh --bootstrap

View File

@ -8,6 +8,7 @@ RUN apk add --update --no-cache \
bash \ bash \
openssl \ openssl \
drill \ drill \
tzdata \
&& curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache \ && curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache \
&& chown root:unbound /etc/unbound \ && chown root:unbound /etc/unbound \
&& adduser unbound tty \ && adduser unbound tty \

View File

@ -403,6 +403,7 @@ services:
dns: dns:
- ${IPV4_NETWORK:-172.22.1}.254 - ${IPV4_NETWORK:-172.22.1}.254
environment: environment:
- TZ=${TZ}
- SOLR_HEAP=${SOLR_HEAP:-1024} - SOLR_HEAP=${SOLR_HEAP:-1024}
- SKIP_SOLR=${SKIP_SOLR:-y} - SKIP_SOLR=${SKIP_SOLR:-y}
networks: networks: