Tecnativa/docker-duplicity

[Enhncement] Timezone configuration

Closed this issue · 3 comments

dw72 commented

Can you add possibility to set timezone via environment variable?

yajo commented

I gess it could be done, yes. PRs welcome! 😉

dw72 commented

I try add timzone support but when I try to run container using image builded myself from your repository I have:

C:\Work\docker-duplicity (master -> origin) 
λ docker run --rm dw72/duplicity:docker duplicity --help
': No such file or directory

When build image without my additions effect is the sam :(

So if you can add this to Dockerfile:

RUN apk add --no-cache tzdata

this should be enough to add timezone support.

I do this manualy on container:

λ docker run --rm -it tecnativa/duplicity sh                                                         
/ # apk add tzdata
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/1) Installing tzdata (2019a-r0)
Executing busybox-1.29.3-r10.trigger
OK: 97 MiB in 89 packages
/ # date
Fri May 10 11:57:53 UTC 2019
/ # export TZ="Europe/Warsaw"
/ # date
Fri May 10 13:58:10 CEST 2019
/ #
yajo commented

Will do, thanks for the explanation.