This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run -it quay.io/travisci/travis-ruby /bin/bash | |
$ su - travis | |
$ GIMME_OUTPUT=$(gimme 1.6.3) && eval "$GIMME_OUTPUT" | |
$ export GOPATH=$HOME/gopath | |
$ export PATH=$HOME/gopath/bin:$PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
## PROJECT INFO ## | |
################################################################################ | |
GO_LIST_BUILD_INFO_CMD := go list -f '{{with $$ip:=.}}{{with $$ctx:=context}}{{printf "%s %s %s %s %s 0,%s" $$ip.ImportPath $$ip.Name $$ip.Dir $$ctx.GOOS $$ctx.GOARCH (join $$ctx.BuildTags ",")}}{{end}}{{end}}' | |
BUILD_INFO := $(shell $(GO_LIST_BUILD_INFO_CMD)) | |
ROOT_IMPORT_PATH := $(word 1,$(BUILD_INFO)) | |
ROOT_IMPORT_NAME := $(word 2,$(BUILD_INFO)) | |
ROOT_DIR := $(word 3,$(BUILD_INFO)) | |
GOOS ?= $(word 4,$(BUILD_INFO)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[0]akutz@pax:rexray$ glide up | |
[INFO] Downloading dependencies. Please wait... | |
[INFO] --> Fetching updates for github.com/go-yaml/yaml. | |
[INFO] --> Fetching updates for github.com/emccode/goscaleio. | |
[INFO] --> Fetching updates for github.com/akutz/gotil. | |
[INFO] --> Fetching updates for github.com/Sirupsen/logrus. | |
[INFO] --> Fetching updates for github.com/spf13/cobra. | |
[INFO] --> Fetching updates for google.golang.org/api. | |
[INFO] --> Fetching updates for github.com/akutz/gofig. | |
[INFO] --> Fetching updates for github.com/emccode/libstorage. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CachePath returns the path to a cached dependency's sources. | |
func CachePath(importPath string) { | |
if importPath == "" { | |
msg.Die("Missing import path") | |
} | |
cache.SystemLock() | |
base := "." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[0]akutz@pax:rexray$ make docker-build | |
docker exec -t build-rexray make -C /go/src/github.com/emccode/rexray | |
make: Entering directory '/go/src/github.com/emccode/rexray' | |
make deps | |
make[1]: Entering directory '/go/src/github.com/emccode/rexray' | |
go get -u github.com/Masterminds/glide | |
/go/bin/glide install && touch glide.lock.d | |
[INFO] Downloading dependencies. Please wait... | |
[INFO] --> Fetching github.com/akutz/gofig. | |
[INFO] --> Fetching github.com/aws/aws-sdk-go. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make docker-build | |
docker exec -t build-rexray env make -C /go/src/github.com/emccode/rexray deps && \ | |
docker exec -t build-rexray env GOOS=darwin GOARCH=amd64 make -C /go/src/github.com/emccode/rexray -j build | |
make: Entering directory '/go/src/github.com/emccode/rexray' | |
go get -u github.com/Masterminds/glide | |
/go/bin/glide install && touch glide.lock.d | |
[INFO] Downloading dependencies. Please wait... | |
[INFO] --> Fetching github.com/akutz/gofig. | |
[INFO] --> Fetching github.com/akutz/goof. | |
[INFO] --> Fetching github.com/akutz/gotil. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone -b feature/docker-build https://github.com/akutz/rexray && cd rexray | |
Cloning into 'rexray'... | |
remote: Counting objects: 3682, done. | |
remote: Compressing objects: 100% (23/23), done. | |
remote: Total 3682 (delta 4), reused 0 (delta 0), pack-reused 3658 | |
Receiving objects: 100% (3682/3682), 11.13 MiB | 5.40 MiB/s, done. | |
Resolving deltas: 100% (1897/1897), done. | |
Checking connectivity... done. | |
akutz@mea:~/rexray$ pwd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[0]akutz@pax:~$ git clone https://github.com/emccode/rexray.git && cd rexray && make docker-build | |
Cloning into 'rexray'... | |
remote: Counting objects: 3752, done. | |
remote: Compressing objects: 100% (27/27), done. | |
remote: Total 3752 (delta 5), reused 0 (delta 0), pack-reused 3723 | |
Receiving objects: 100% (3752/3752), 11.40 MiB | 2.03 MiB/s, done. | |
Resolving deltas: 100% (1914/1914), done. | |
Checking connectivity... done. | |
docker exec -t build-rexray env make -C /go/src/github.com/emccode/rexray deps && \ | |
docker exec -t build-rexray \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[0]akutz@pax:rexray$ time make docker-build | |
docker exec -t build-rexray env make -C /go/src/github.com/emccode/rexray deps | |
make: Entering directory '/go/src/github.com/emccode/rexray' | |
go get -u github.com/Masterminds/glide | |
/go/bin/glide install && touch glide.lock.d | |
[INFO] Downloading dependencies. Please wait... | |
[INFO] --> Fetching github.com/akutz/gofig. | |
[INFO] --> Fetching github.com/akutz/golf. | |
[INFO] --> Fetching github.com/akutz/goof. | |
[INFO] --> Fetching github.com/appropriate/go-virtualboxclient. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@8ce06d35c09d:/go/src/github.com/emccode/rexray# time glide up | |
[INFO] Downloading dependencies. Please wait... | |
[INFO] --> Fetching github.com/Sirupsen/logrus. | |
[INFO] --> Fetching github.com/akutz/gotil. | |
[INFO] --> Fetching github.com/emccode/libstorage. | |
[INFO] --> Fetching github.com/akutz/goof. | |
[INFO] --> Fetching github.com/akutz/golf. | |
[INFO] --> Fetching github.com/akutz/gofig. | |
[INFO] --> Fetching github.com/spf13/pflag. | |
[INFO] --> Fetching github.com/spf13/cobra. |