Add info about how to compile with Docker
This commit is contained in:
parent
42d005eb82
commit
c611a6ff70
1 changed files with 10 additions and 1 deletions
11
README.md
11
README.md
|
@ -13,10 +13,19 @@ A Web GUI written in Go to manage S3 buckets from any provider.
|
|||
|
||||
## Run locally
|
||||
|
||||
1. Set all environment variables
|
||||
1. Set all necessary environment variables
|
||||
1. Run `go build`
|
||||
1. Run the binary and visit <http://localhost:8080>
|
||||
|
||||
## Build with Docker
|
||||
|
||||
1. Run `docker run --rm -v "${PWD}:/go/src/github.com/mastertinner/s3-manager" -w /go/src/github.com/mastertinner/s3-manager golang curl https://glide.sh/get | sh && glide install && go build`
|
||||
|
||||
To cross-compile for windows, use the `-e "GOOS=windows" -e "GOARCH=amd64"` flags (depending on your system, you might have to adjust `GOARCH`)
|
||||
|
||||
To cross-compile for macOS, use the `-e "GOOS=darwin" -e "GOARCH=amd64"` flags (depending on your system, you might have to adjust `GOARCH`)
|
||||
|
||||
|
||||
## Push to Cloud Foundry
|
||||
|
||||
1. Set environment variables in `manifest.yml`
|
||||
|
|
Loading…
Reference in a new issue