mirror of
https://github.com/costela/docker-etchosts.git
synced 2025-05-11 01:45:40 +02:00
fix install instructions for go <1.11
This commit is contained in:
parent
2f9507b054
commit
eb343c9158
2 changed files with 6 additions and 2 deletions
|
@ -11,9 +11,12 @@ Inspired by [`vagrant-hostmanager`](https://github.com/devopsgroup-io/vagrant-ho
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
To install from source:
|
To install from source, [dep](github.com/golang/dep) must be used:
|
||||||
```
|
```
|
||||||
go install github.com/costela/docker-etchosts
|
go get -d github.com/costela/docker-etchosts
|
||||||
|
cd $GOPATH/src/github.com/costela/docker-etchosts
|
||||||
|
dep ensure -vendor-only
|
||||||
|
go install
|
||||||
```
|
```
|
||||||
And run it as `docker-etchosts`
|
And run it as `docker-etchosts`
|
||||||
|
|
||||||
|
|
1
main.go
1
main.go
|
@ -30,6 +30,7 @@ import (
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// ConfigSpec holds the runtime configuration
|
||||||
type ConfigSpec struct {
|
type ConfigSpec struct {
|
||||||
LogLevel string `default:"warn" split_words:"true"`
|
LogLevel string `default:"warn" split_words:"true"`
|
||||||
EtcHostsPath string `default:"/etc/hosts" split_words:"true"`
|
EtcHostsPath string `default:"/etc/hosts" split_words:"true"`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue