Explorar el Código

Set host timezone for unbound and solr

André Peters hace 6 años
padre
commit
86b11870e6
Se han modificado 3 ficheros con 3 adiciones y 1 borrados
  1. 1 1
      data/Dockerfiles/solr/Dockerfile
  2. 1 0
      data/Dockerfiles/unbound/Dockerfile
  3. 1 0
      docker-compose.yml

+ 1 - 1
data/Dockerfiles/solr/Dockerfile

@@ -2,7 +2,7 @@ FROM solr:7-alpine
 USER root
 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 \
   && /docker-entrypoint.sh --bootstrap
 

+ 1 - 0
data/Dockerfiles/unbound/Dockerfile

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

+ 1 - 0
docker-compose.yml

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