Skip to content

Commit ab9bec4

Browse files
author
yb
committed
add image timezone
1 parent 02c3969 commit ab9bec4

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

image/exporter/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ FROM prometheuscommunity/postgres-exporter
44
COPY autofailover_queries.yaml /etc/autofailover_queries.yaml
55
COPY queries.yaml /etc/queries.yaml
66

7+
ENV TZ=Asia/Shanghai
78
USER root

image/postgres-operator/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Build container
22
FROM python:3.10-slim
33

4+
ENV TZ=Asia/Shanghai
45
RUN mkdir -pv /src
56

67
WORKDIR /src

image/postgresql/Dockerfile.template

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ RUN cd /var/lib/postgresql; \
118118
FROM debian:{{ .debian }}
119119

120120
ENV LANG en_US.utf8
121+
ENV TZ=Asia/Shanghai
121122
ENV DATA /var/lib/postgresql/data
122123
ENV XDG_CONFIG_HOME /var/lib/postgresql/data/auto_failover
123124
ENV XDG_DATA_HOME /var/lib/postgresql/data/auto_failover

0 commit comments

Comments
 (0)