vendor deps with govendor
This commit is contained in:
parent
7b8aa57592
commit
2af445f27a
2 changed files with 10 additions and 10 deletions
17
README.md
17
README.md
|
@ -242,16 +242,17 @@ See the [releases](https://github.com/justone/dockviz/releases) area for binarie
|
|||
sudo apt-get install git graphviz -y
|
||||
|
||||
# pull latest code
|
||||
cd $GOPATH
|
||||
git clone https://github.com/nate/dockviz.git
|
||||
mkdir -p $GOPATH/src/github.com/nate/ && cd $GOPATH/src/github.com/nate/
|
||||
git clone https://github.com/nate/dockviz.git && cd dockviz
|
||||
|
||||
# force static compilation for go language
|
||||
export CGO_ENABLED=0
|
||||
|
||||
# build go program
|
||||
cd dockviz
|
||||
go get
|
||||
go build -a
|
||||
# fetch vendored dependencies
|
||||
govendor sync
|
||||
|
||||
# build
|
||||
go build
|
||||
|
||||
# build docker image
|
||||
docker build --no-cache=true -t "nate/dockviz:1.0" -t "nate/dockviz:latest" .
|
||||
|
@ -261,7 +262,3 @@ docker login --username=mygituser --password=xxxxxxx
|
|||
docker push nate/dockviz
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
3
vendor/.gitignore
vendored
Normal file
3
vendor/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
*
|
||||
!.gitignore
|
||||
!vendor/vendor.json
|
Loading…
Reference in a new issue