Add tzdata for localised timezone support

This commit is contained in:
thespad 2025-08-19 20:10:09 +01:00
parent 2826c352f8
commit 05cf6a3773
No known key found for this signature in database
5 changed files with 14 additions and 3 deletions

View File

@ -14,7 +14,8 @@ RUN \
echo "**** install build packages ****" && \
apk add --no-cache \
alpine-release \
curl && \
curl \
tzdata && \
if [ -z ${HAPROXY_VERSION+x} ]; then \
HAPROXY_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
&& awk '/^P:haproxy$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \

View File

@ -14,7 +14,8 @@ RUN \
echo "**** install build packages ****" && \
apk add --no-cache \
alpine-release \
curl && \
curl \
tzdata && \
if [ -z ${HAPROXY_VERSION+x} ]; then \
HAPROXY_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
&& awk '/^P:haproxy$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \

View File

@ -14,7 +14,8 @@ RUN \
echo "**** install build packages ****" && \
apk add --no-cache \
alpine-release \
curl && \
curl \
tzdata && \
if [ -z ${HAPROXY_VERSION+x} ]; then \
HAPROXY_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
&& awk '/^P:haproxy$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \

View File

@ -108,6 +108,7 @@ services:
- SWARM=0 #optional
- SYSTEM=0 #optional
- TASKS=0 #optional
- TZ=Etc/UTC #optional
- VERSION=1 #optional
- VOLUMES=0 #optional
volumes:
@ -149,6 +150,7 @@ docker run -d \
-e SWARM=0 `#optional` \
-e SYSTEM=0 `#optional` \
-e TASKS=0 `#optional` \
-e TZ=Etc/UTC `#optional` \
-e VERSION=1 `#optional` \
-e VOLUMES=0 `#optional` \
-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
| `-e SWARM=0` | `/swarm` |
| `-e SYSTEM=0` | `/system` |
| `-e TASKS=0` | `/tasks` |
| `-e TZ=Etc/UTC` | `Set container timezone` |
| `-e VERSION=1` | `/version` |
| `-e VOLUMES=0` | `/volumes` |
| `-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
## Versions
* **19.08.25:** - Add tzdata for localised logging timestamps.
* **03.06.25:** - Rebase to Alpine 3.22. Add RISCV support.
* **08.04.25:** - Add `LOG_LEVEL` back.
* **06.04.25:** - Switch back to haproxy for better handling of `docker exec` connection hijacking.

View File

@ -115,6 +115,7 @@ full_custom_readme: |
- SWARM=0 #optional
- SYSTEM=0 #optional
- TASKS=0 #optional
- TZ=Etc/UTC #optional
- VERSION=1 #optional
- VOLUMES=0 #optional
volumes:
@ -156,6 +157,7 @@ full_custom_readme: |
-e SWARM=0 `#optional` \
-e SYSTEM=0 `#optional` \
-e TASKS=0 `#optional` \
-e TZ=Etc/UTC `#optional` \
-e VERSION=1 `#optional` \
-e VOLUMES=0 `#optional` \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
@ -197,6 +199,7 @@ full_custom_readme: |
| `-e SWARM=0` | `/swarm` |
| `-e SYSTEM=0` | `/system` |
| `-e TASKS=0` | `/tasks` |
| `-e TZ=Etc/UTC` | `Set container timezone` |
| `-e VERSION=1` | `/version` |
| `-e VOLUMES=0` | `/volumes` |
| `-v /var/run/docker.sock:ro` | Mount the host docker socket into the container. |
@ -323,6 +326,7 @@ full_custom_readme: |
## Versions
* **19.08.25:** - Add tzdata for localised logging timestamps.
* **03.06.25:** - Rebase to Alpine 3.22. Add RISCV support.
* **08.04.25:** - Add `LOG_LEVEL` back.
* **06.04.25:** - Switch back to haproxy for better handling of `docker exec` connection hijacking.