ifconfigdockerhost

command module
v0.0.0-...-0e90089 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2016 License: MIT Imports: 11 Imported by: 0

README

ifconfigdockerhost

This is a pseudo daemon for osx only, that relyable calls "ifconfig alias lo0 192.168.23.1" for local development purposes.

Motivation

In development we are using the IP address 192.168.23.1 to have a relyable IP Address for dockerhost in changing network environments. To achieve this, we call sudo ifconfig lo0 alias 192.168.23.1. Unfourtunately there is no good way to do this ... therefor this daemon.

How does it work ?

It installs a launch daemon to /Library/LaunchDaemons/org.foomo.ifconfigdockerhost.plist and this program to /usr/local/bin. It also does initial loading etc for you.

Usage

Installation

go get -u github.com/foomo/ifconfigdockerhost
sudo $GOPATH/bin/ifconfigdockerhost -install
  • use launchctl for instaraction
  • logs go to /var/log/system.log

That´s it.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL