Installation instructions

Clone the repository

git clone --recursive https://github.com/abh/ntppool.git
cd ntppool

Development under Docker

If you have Docker installed you can run a container with most of the dependencies already ready with

cp combust.docker.conf.sample combust.docker.conf
./docker/app

(Edit hostnames and database config in the new file after copying it.)

The docker container will “export” the web application to port 8299 on the docker host. If you are running Docker on OS X or Windows it will be running in a virtual machine so the IP will be different than “localhost”.

You can also run the other utilities, generally with a variation of

./docker/app sh ./pool zone

This for example would generate the json DNS data for the GeoDNS server.

Database setup

The system needs MySQL or MariaDB running.

If the database is accessible from the docker container you can start a MySQL prompt with

./docker/app  sh ./combust/bin/cmysql ntppool

Time zone tables

Your MySQL server needs timezone data loaded, if it doesn’t have it, run:

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql

Initial tables

mysqladmin -uroot create ntppool

./docker/app  sh ./combust/bin/cmysql ntppool < sql/tables.sql
./docker/app  sh ./combust/bin/cmysql ntppool < sql/zones.sql
./docker/app  sh ./combust/bin/database_update ntppool
./docker/app  sh ./combust/bin/database_update combust
./docker/app  sh ./combust/bin/database_update ntppool