Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1 from tutumcloud/staging
Browse files Browse the repository at this point in the history
remove cron job
  • Loading branch information
fermayo committed Jul 8, 2015
2 parents e8249f8 + dc3d0a4 commit 55bde5c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM alpine
FROM alpine:latest
MAINTAINER support@tutum.co
ADD ntpd /etc/periodic/daily/
CMD ["sh", "-c", "/etc/periodic/daily/ntpd && crond -f"]

ADD ntpd /etc/periodic/daily/ntpd
ADD run.sh /run.sh
CMD ["/run.sh"]
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

Keeps the host datetime in sync


## Usage


docker run -d --privileged tutum/ntpdate

2 changes: 1 addition & 1 deletion ntpd
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
ntpd -d -q -n -p ntp.ubuntu.com
ntpd -d -q -n -p 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org
3 changes: 3 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
/etc/periodic/daily/ntpd
exec crond -f

0 comments on commit 55bde5c

Please sign in to comment.