Project

droxy

0.0
No commit activity in last 3 years
No release in over 3 years
A small DNS server and resolver hook to route machine.dock tp $(docker-machine ip machine)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
>= 0
~> 10.0

Runtime

~> 1.0
~> 0.19
 Project Readme

Droxy

Like pow, but for docker machines.

With droxy running, dev.dock:3000 will resolve to $(docker-machine ip dev):3000.

N.B. droxy uses /etc/resolver, and thus will likely only work on OSX

Installation

One-time setup:

$ gem install droxy
$ sudo droxy install

Droxy writes a /etc/resolver file, and thus needs sudo access to install.

Once droxy is installed, run the dns server with

$ droxy start

You will, of course, need docker-machine installed and available.

TODO

  • Have installer write a plist file to auto-start on boot
  • Some mechanism for showing errors (is the docker machine not running?)
  • Better way to restart the network config after writing a resolver file?
  • More Celluloid
    • Port to Celluloid::DNS once it's fully extracted
    • Make the ip (pre-)fetcher/cache an actor