Closed pascalandy closed 6 years ago
My last built using node:8.9.1
I setup at New-York time but the logs show 5 hours further.
➜ ghost-dev docker logs ghostUAT
=> Change config based on ENV parameters:
========================================================================
WEB_URL: http://localhost:2368
========================================================================
Database already exists. Executing migration (if needed)
[2017-11-15 00:05:49] INFO Finished database migration!
[2017-11-15 00:05:51] INFO Ghost is running in production...
[2017-11-15 00:05:51] INFO Your blog is now available on http://localhost:2368/
[2017-11-15 00:05:51] INFO Ctrl+C to shut down
[2017-11-15 00:05:51] INFO Ghost boot 1.296s
INFO [2017-11-15 00:06:01] "GET /contact/" 200 1807ms
INFO [2017-11-15 00:06:01] "GET /public/ghost-sdk.min.js?v=147205e9c5" 200 7ms
➜ ghost-dev docker exec -it ghostUAT sh /var/lib/ghost $ date Tue Nov 14 19:11:51 EST 2017
Oh !! I guess we need to install tzdata in the builder container as well! EDIT ... and set the local time
Yes maybe. I was looking documentation on this point yesterday evening but I found nothing interesting.
I think the tzdata package is required but we need to test. I'll try to propose you something later during the day.
On Nov 15, 2017 01:13, "Pascal Andy" notifications@github.com wrote:
Oh !! I guess we need to install tzdata in the builder container as well!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mmornati/docker-ghostblog/issues/15#issuecomment-344443557, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIgO-lVQO0eWlNa_xGZ9GyAtrVwS5txks5s2iyYgaJpZM4QeG1k .
Same issue when I setup my local time in the builder image.
Same result
Last login: Wed Nov 15 19:20:52 on ttys002
➜ ~ docker exec -it ghostUAT sh
/var/lib/ghost $ date
Wed Nov 15 21:03:47 EST 2017
/var/lib/ghost $ exit
➜ ~ docker logs ghostUAT
=> Change config based on ENV parameters:
========================================================================
WEB_URL: http://localhost:2368
========================================================================
Database already exists. Executing migration (if needed)
[2017-11-16 02:02:42] INFO Finished database migration!
With the latest changes you have to add -e TZ=America/New York
or something like that, to set your time zone.
I tested with date and it was working, but I didn't check the result in the ghost log. Maybe there is something else to set for ghost
In my dockerfile I used TZ="America/New_York".
This is what I have just executing the date
I think the problem is linked with all the things discussed here: https://github.com/TryGhost/Ghost/issues/1265
I guess you're right. Let's drop this. Thanks for the reference!
I tested to use tzdata on the final build.
when I type
date
in the container, my local time is right.But for some reason, the time on the logs from Ghost are not right. Any ideas?
P.S. I have to re-test using node:8!