Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wixyvir committed Nov 9, 2015
1 parent 693db07 commit ed8b1a3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM debian:jessie

MAINTAINER Cyprien DIOT <[email protected]>

RUN apt-get update && apt-get install -y openntpd && apt-get clean && rm -rf /var/lib/dpkg/* && rm -rf /var/lib/apt/lists/*

ENTRYPOINT [ "/usr/sbin/openntpd", "-d", "-f", "/etc/openntpd/ntpd.conf" ]
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Docker-OpenNTPD

This container starts a OpenNTPD server to serve time.

21 changes: 21 additions & 0 deletions ntpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $
# sample ntpd configuration file, see ntpd.conf(5)

# Addresses to listen on (ntpd does not listen by default)
#listen on *
#listen on 127.0.0.1
#listen on ::1

# sync to a single server
#server ntp.example.org

# use a random selection of 8 public stratum 2 servers
# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers
#servers pool.ntp.org

# Choose servers announced from Debian NTP Pool
servers 0.debian.pool.ntp.org
servers 1.debian.pool.ntp.org
servers 2.debian.pool.ntp.org
servers 3.debian.pool.ntp.org

0 comments on commit ed8b1a3

Please sign in to comment.