This project aim to launch a dhcp4 server with only reservation capacibility. A postgres database contain reservation info, all database entry will be allocated with an ip and other will be ignored.
$ docker-compose up -d
$ make db-schema db-fixtures
$ make enter
You can now use commands
Get dependencies
# make deps
Build project
# make build
Run tests
# make test
You must at least run postgres container and populate it with schema and datas
$ make build
$ vagrant up pxe_server
$ vagrant ssh pxe_server
$ sudo su
# /vagrant/bin/go-postgresql-dhcp-server
Default env variable are set in vagrantfile with provisions here
In another terminal:
$ vagrant destroy blank_server -f && vagrant up blank_server
You can automate project if you uncomment this line
Then run this commands
- In docker
$ make watch-go
- In vagrant
$ make watch-bin
- In another terminal
$ vagrant rsync-auto