Skip to content

Commit

Permalink
ビルド方法の見直し・ドキュメントの訂正
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuyui committed Dec 26, 2016
1 parent 816690a commit eb5eee4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
defaults/
myip
myip_*
go-myip
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ Choose your OS here: https://github.com/kitsuyui/go-myip/releases
# Build

```console
$ go get github.com/jteeuwen/go-bindata/...
$ go generate
$ go get -d ./...
$ go build
```

## with Docker

```console
$ docker run --rm -v "$(pwd)":/myip -w /myip tcnksm/gox sh -c "go get -d ./... && gox -ldflags '-w -s'"
$ docker run --rm -v "$(pwd)":/myip -w /myip tcnksm/gox sh -c "./build.sh"
```
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
go get github.com/jteeuwen/go-bindata/...
go generate
go get -d ./...
gox -ldflags '-w -s'

0 comments on commit eb5eee4

Please sign in to comment.