Sign inSign up

fitzdockerhub/ntp-gps

By fitzdockerhub

•Updated almost 4 years ago

Stratum One NTP server using a USB GPS reciever

Image
0

462

fitzdockerhub/ntp-gps repository overview

A bare minimum GPS Stratum 1 NTP server built off alpine.

Documentation and build located at: https://github.com/GitHubberFitz/ntp-gps⁠

⁠Usage

⁠Pull the image:

docker pull fitzdockerhub/ntp-gps

⁠Configure

⁠Identify what your USB GPS device is mounted as in /dev/

docker run -d \
  --name=ntp-gps \
  --restart=unless-stopped \
  --cap-add SYS_TIME \
  --device=/dev/<Device ID> \ # Replace this with the locally mounted USB GPS receiver
  -e DEVICE=/dev/<Device ID> \ # Replace this with the locally mounted USB GPS receiver
  -e TZ=America/Denver \
  -p 123:123/udp \
ntp-gps:latest

⁠Example:

docker run -d \
  --name=ntp-gps \
  --restart=unless-stopped \
  --cap-add SYS_TIME \
  --device=/dev/ttyACM1 \
  -e DEVICE=/dev/ttyACM1 \
  -e TZ=America/Denver \
  -p 123:123/udp \
ntp-gps:latest

⁠Test

⁠Using nmap scripts to retrieve the time off the service

nmap --script ntp-info -p 123 -sUV -PN <ip address of docker host>

⁠Example:

nmap --script ntp-info -p 123 -sUV -PN 192.168.0.100

Tag summary

Content type

Image

Digest

sha256:ff80b9f00…

Size

21.5 MB

Last updated

almost 4 years ago

docker pull fitzdockerhub/ntp-gps