Skip to content

Commit 05cf6a3

Browse files
committed
Add tzdata for localised timezone support
1 parent 2826c35 commit 05cf6a3

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ RUN \
1414
echo "**** install build packages ****" && \
1515
apk add --no-cache \
1616
alpine-release \
17-
curl && \
17+
curl \
18+
tzdata && \
1819
if [ -z ${HAPROXY_VERSION+x} ]; then \
1920
HAPROXY_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2021
&& awk '/^P:haproxy$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \

Dockerfile.aarch64

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ RUN \
1414
echo "**** install build packages ****" && \
1515
apk add --no-cache \
1616
alpine-release \
17-
curl && \
17+
curl \
18+
tzdata && \
1819
if [ -z ${HAPROXY_VERSION+x} ]; then \
1920
HAPROXY_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2021
&& awk '/^P:haproxy$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \

Dockerfile.riscv64

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ RUN \
1414
echo "**** install build packages ****" && \
1515
apk add --no-cache \
1616
alpine-release \
17-
curl && \
17+
curl \
18+
tzdata && \
1819
if [ -z ${HAPROXY_VERSION+x} ]; then \
1920
HAPROXY_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2021
&& awk '/^P:haproxy$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ services:
108108
- SWARM=0 #optional
109109
- SYSTEM=0 #optional
110110
- TASKS=0 #optional
111+
- TZ=Etc/UTC #optional
111112
- VERSION=1 #optional
112113
- VOLUMES=0 #optional
113114
volumes:
@@ -149,6 +150,7 @@ docker run -d \
149150
-e SWARM=0 `#optional` \
150151
-e SYSTEM=0 `#optional` \
151152
-e TASKS=0 `#optional` \
153+
-e TZ=Etc/UTC `#optional` \
152154
-e VERSION=1 `#optional` \
153155
-e VOLUMES=0 `#optional` \
154156
-v /var/run/docker.sock:/var/run/docker.sock:ro \
@@ -190,6 +192,7 @@ Containers are configured using parameters passed at runtime (such as those abov
190192
| `-e SWARM=0` | `/swarm` |
191193
| `-e SYSTEM=0` | `/system` |
192194
| `-e TASKS=0` | `/tasks` |
195+
| `-e TZ=Etc/UTC` | `Set container timezone` |
193196
| `-e VERSION=1` | `/version` |
194197
| `-e VOLUMES=0` | `/volumes` |
195198
| `-v /var/run/docker.sock:ro` | Mount the host docker socket into the container. |
@@ -316,6 +319,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
316319

317320
## Versions
318321

322+
* **19.08.25:** - Add tzdata for localised logging timestamps.
319323
* **03.06.25:** - Rebase to Alpine 3.22. Add RISCV support.
320324
* **08.04.25:** - Add `LOG_LEVEL` back.
321325
* **06.04.25:** - Switch back to haproxy for better handling of `docker exec` connection hijacking.

readme-vars.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ full_custom_readme: |
115115
- SWARM=0 #optional
116116
- SYSTEM=0 #optional
117117
- TASKS=0 #optional
118+
- TZ=Etc/UTC #optional
118119
- VERSION=1 #optional
119120
- VOLUMES=0 #optional
120121
volumes:
@@ -156,6 +157,7 @@ full_custom_readme: |
156157
-e SWARM=0 `#optional` \
157158
-e SYSTEM=0 `#optional` \
158159
-e TASKS=0 `#optional` \
160+
-e TZ=Etc/UTC `#optional` \
159161
-e VERSION=1 `#optional` \
160162
-e VOLUMES=0 `#optional` \
161163
-v /var/run/docker.sock:/var/run/docker.sock:ro \
@@ -197,6 +199,7 @@ full_custom_readme: |
197199
| `-e SWARM=0` | `/swarm` |
198200
| `-e SYSTEM=0` | `/system` |
199201
| `-e TASKS=0` | `/tasks` |
202+
| `-e TZ=Etc/UTC` | `Set container timezone` |
200203
| `-e VERSION=1` | `/version` |
201204
| `-e VOLUMES=0` | `/volumes` |
202205
| `-v /var/run/docker.sock:ro` | Mount the host docker socket into the container. |
@@ -323,6 +326,7 @@ full_custom_readme: |
323326
324327
## Versions
325328
329+
* **19.08.25:** - Add tzdata for localised logging timestamps.
326330
* **03.06.25:** - Rebase to Alpine 3.22. Add RISCV support.
327331
* **08.04.25:** - Add `LOG_LEVEL` back.
328332
* **06.04.25:** - Switch back to haproxy for better handling of `docker exec` connection hijacking.

0 commit comments

Comments
 (0)