This is an automated email from the ASF dual-hosted git repository.

totemofwolf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-docker.git


The following commit(s) were added to refs/heads/master by this push:
     new dedf472  feat: timezone support via startup environment, for instance: 
"TZ=Asia/Shanghai" (#155)
dedf472 is described below

commit dedf47292ce87bcad3e330223b2bb74407a918f9
Author: wonglend <[email protected]>
AuthorDate: Sat Apr 3 11:40:20 2021 +0800

    feat: timezone support via startup environment, for instance: 
"TZ=Asia/Shanghai" (#155)
---
 alpine-dev/Dockerfile   | 2 +-
 alpine-local/Dockerfile | 2 +-
 alpine/Dockerfile       | 2 +-
 centos/Dockerfile       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/alpine-dev/Dockerfile b/alpine-dev/Dockerfile
index 1fadf7f..a2c29c3 100644
--- a/alpine-dev/Dockerfile
+++ b/alpine-dev/Dockerfile
@@ -26,7 +26,7 @@ ARG ENABLE_PROXY
 # add runtime for Apache APISIX
 RUN set -x \
     && (test "${ENABLE_PROXY}" != "true" || /bin/sed -i 
's,http://dl-cdn.alpinelinux.org,https://mirrors.aliyun.com,g' 
/etc/apk/repositories) \
-    && apk add --no-cache bash libstdc++ curl
+    && apk add --no-cache bash libstdc++ curl tzdata
 
 WORKDIR /usr/local/apisix
 
diff --git a/alpine-local/Dockerfile b/alpine-local/Dockerfile
index 1ce5f9b..75a88fa 100644
--- a/alpine-local/Dockerfile
+++ b/alpine-local/Dockerfile
@@ -26,7 +26,7 @@ ARG ENABLE_PROXY
 # add runtime for Apache APISIX
 RUN set -x \
     && (test "${ENABLE_PROXY}" != "true" || /bin/sed -i 
's,http://dl-cdn.alpinelinux.org,https://mirrors.aliyun.com,g' 
/etc/apk/repositories) \
-    && apk add --no-cache bash libstdc++ curl
+    && apk add --no-cache bash libstdc++ curl tzdata
 
 WORKDIR /usr/local/apisix
 
diff --git a/alpine/Dockerfile b/alpine/Dockerfile
index 7e5496f..0a839ee 100644
--- a/alpine/Dockerfile
+++ b/alpine/Dockerfile
@@ -30,7 +30,7 @@ ARG ENABLE_PROXY
 # add runtime for Apache APISIX
 RUN set -x \
     && (test "${ENABLE_PROXY}" != "true" || /bin/sed -i 
's,http://dl-cdn.alpinelinux.org,https://mirrors.aliyun.com,g' 
/etc/apk/repositories) \
-    && apk add --no-cache bash libstdc++ curl
+    && apk add --no-cache bash libstdc++ curl tzdata
 
 WORKDIR /usr/local/apisix
 
diff --git a/centos/Dockerfile b/centos/Dockerfile
index ddb06dd..4ca341a 100644
--- a/centos/Dockerfile
+++ b/centos/Dockerfile
@@ -5,7 +5,7 @@ LABEL apisix_version="${APISIX_VERSION}"
 
 RUN yum -y install yum-utils\
        && yum-config-manager --add-repo 
https://openresty.org/package/centos/openresty.repo \
-       && yum install -y openresty which \
+       && yum install -y openresty which tzdata \
        && yum install -y 
https://github.com/apache/apisix/releases/download/$APISIX_VERSION/apisix-$APISIX_VERSION-0.x86_64.rpm
 \
        && yum clean all \
        && sed -i 's/PASS_MAX_DAYS\t99999/PASS_MAX_DAYS\t60/g' /etc/login.defs

Reply via email to