Giter Club home page Giter Club logo

go-postgresql-dhcp-server's Introduction

Docker Automated build

go-postgresql-dhcp-server

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.

Work in docker container

Initialisation

$ docker-compose up -d
$ make db-schema db-fixtures
$ make enter

Commands

You can now use commands

Get dependencies

# make deps

Build project

# make build

Run tests

# make test

Test in Vagrant environment

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

Automation

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

Source and documentation

License

AGPL

go-postgresql-dhcp-server's People

Contributors

its-alex avatar stephane-klein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

harobed

go-postgresql-dhcp-server's Issues

Wrong server ip

After send reply in discover when receive request for ip server ip didn't match

Add subnet mask option in reply

Currently subnet mask is not used from database

Need to add it in dhcp option in each request from reservations in database

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.