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
|
sudo apt-get install git graphviz -y
|
||||||
|
|
||||||
# pull latest code
|
# pull latest code
|
||||||
cd $GOPATH
|
mkdir -p $GOPATH/src/github.com/nate/ && cd $GOPATH/src/github.com/nate/
|
||||||
git clone https://github.com/nate/dockviz.git
|
git clone https://github.com/nate/dockviz.git && cd dockviz
|
||||||
|
|
||||||
# force static compilation for go language
|
# force static compilation for go language
|
||||||
export CGO_ENABLED=0
|
export CGO_ENABLED=0
|
||||||
|
|
||||||
# build go program
|
# fetch vendored dependencies
|
||||||
cd dockviz
|
govendor sync
|
||||||
go get
|
|
||||||
go build -a
|
# build
|
||||||
|
go build
|
||||||
|
|
||||||
# build docker image
|
# build docker image
|
||||||
docker build --no-cache=true -t "nate/dockviz:1.0" -t "nate/dockviz:latest" .
|
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
|
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