Skip to content

Instantly share code, notes, and snippets.

@akutz
Last active May 8, 2017 06:22
Show Gist options
  • Save akutz/36b98da23b7c2809584096440f428fd4 to your computer and use it in GitHub Desktop.
Save akutz/36b98da23b7c2809584096440f428fd4 to your computer and use it in GitHub Desktop.
# look ma, no go!
$ which go
# look no, no git!
$ which git
# create cinder
$ ./ndp cinder
The plug-in has been successfully created!
To build the plug-in, please execute the following command:
$ DRIVERS=cinder make build-docker-plugin
To include this plug-in as part of REX-Ray's CI process,
please edit the .travis.yml file and find the section near
the top of the file that looks like this:
env:
- REXRAY_BUILD_TYPE=
- REXRAY_BUILD_TYPE=client
- REXRAY_BUILD_TYPE=agent
- REXRAY_BUILD_TYPE=controller
- REXRAY_BUILD_TYPE= DRIVERS=ebs
- REXRAY_BUILD_TYPE= DRIVERS=efs
...
Create a new entry at the end of the above section:
- REXRAY_BUILD_TYPE= DRIVERS=cinder
That's all there is to it! Now the new plug-in will be a
part of REX-Ray's CI proces, built and deployed with the
rest of the REX-Ray managed plug-ins for Docker!
Would you like to build the plug-in now? (yes/no) y
Beginning Build Process (may take a few minutes to complete)
DRIVERS=cinder DGOOS=linux make docker-build
docker exec -t build-rexray env make -C /go/src/github.com/codedellemc/rexray deps
make: Entering directory '/go/src/github.com/codedellemc/rexray'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 608 0 608 0 0 2439 0 --:--:-- --:--:-- --:--:-- 2432
100 3690k 100 3690k 0 0 1345k 0 0:00:02 0:00:02 --:--:-- 2473k
/go/bin/glide install && touch glide.lock.d
[INFO] Downloading dependencies. Please wait...
[INFO] --> Fetching updates for cloud.google.com/go.
[INFO] --> Fetching updates for github.com/akutz/gofig.
[INFO] --> Fetching updates for github.com/akutz/golf.
[INFO] --> Fetching updates for github.com/akutz/goof.
[INFO] --> Fetching updates for github.com/asaskevich/govalidator.
[INFO] --> Fetching updates for github.com/akutz/gotil.
[INFO] --> Fetching updates for github.com/aws/aws-sdk-go.
[INFO] --> Fetching updates for github.com/Azure/azure-sdk-for-go.
[INFO] --> Fetching updates for github.com/Azure/go-autorest.
[INFO] --> Fetching updates for github.com/cesanta/validate-json.
[INFO] --> Fetching updates for github.com/codedellemc/goscaleio.
[INFO] --> Fetching updates for github.com/cesanta/ucl.
[INFO] --> Fetching updates for github.com/digitalocean/godo.
[INFO] --> Fetching updates for github.com/codedellemc/goisilon.
[INFO] --> Fetching updates for github.com/codedellemc/gournal.
[INFO] --> Fetching updates for github.com/codedellemc/libstorage.
[INFO] --> Fetching updates for github.com/go-ini/ini.
[INFO] --> Fetching updates for github.com/appropriate/go-virtualboxclient.
[INFO] --> Fetching updates for github.com/fsnotify/fsnotify.
[INFO] --> Fetching updates for github.com/dgrijalva/jwt-go.
[INFO] --> Fetching updates for github.com/go-yaml/yaml.
[INFO] --> Fetching updates for github.com/golang/protobuf.
[INFO] --> Fetching updates for github.com/google/go-querystring.
[INFO] --> Fetching updates for github.com/googleapis/gax-go.
[INFO] --> Fetching updates for github.com/gorilla/context.
[INFO] --> Fetching updates for github.com/gophercloud/gophercloud.
[INFO] --> Fetching updates for github.com/gorilla/mux.
[INFO] --> Fetching updates for github.com/hashicorp/hcl.
[INFO] --> Fetching updates for github.com/inconshreveable/mousetrap.
[INFO] --> Fetching updates for github.com/jmespath/go-jmespath.
[INFO] --> Fetching updates for github.com/jteeuwen/go-bindata.
[INFO] --> Fetching updates for github.com/kardianos/osext.
[INFO] --> Fetching updates for github.com/kr/fs.
[INFO] --> Fetching updates for github.com/magiconair/properties.
[INFO] --> Fetching updates for github.com/mitchellh/mapstructure.
[INFO] --> Fetching updates for github.com/pelletier/go-buffruneio.
[INFO] --> Fetching updates for github.com/pelletier/go-toml.
[INFO] --> Fetching updates for github.com/pkg/errors.
[INFO] --> Fetching updates for github.com/pkg/sftp.
[INFO] --> Fetching updates for github.com/rubiojr/go-vhd.
[INFO] --> Fetching updates for github.com/SermoDigital/jose.
[INFO] --> Fetching updates for github.com/Sirupsen/logrus.
[INFO] --> Fetching updates for github.com/spf13/afero.
[INFO] --> Fetching updates for github.com/spf13/cast.
[INFO] --> Fetching updates for github.com/spf13/cobra.
[INFO] --> Fetching updates for github.com/spf13/jwalterweatherman.
[INFO] --> Fetching updates for github.com/spf13/pflag.
[INFO] --> Fetching updates for github.com/spf13/viper.
[INFO] --> Fetching updates for github.com/tent/http-link-go.
[INFO] --> Fetching updates for golang.org/x/crypto.
[INFO] --> Fetching updates for golang.org/x/net.
[INFO] --> Fetching updates for golang.org/x/oauth2.
[INFO] --> Fetching updates for golang.org/x/sys.
[INFO] --> Fetching updates for golang.org/x/text.
[INFO] --> Fetching updates for google.golang.org/api.
[INFO] --> Fetching updates for google.golang.org/appengine.
[INFO] --> Fetching updates for google.golang.org/grpc.
[INFO] --> Fetching updates for gopkg.in/yaml.v1.
[INFO] --> Fetching updates for gopkg.in/yaml.v2.
[INFO] Setting references.
[INFO] --> Setting version for github.com/asaskevich/govalidator to 7b3beb6df3c42abd3509abfc3bcacc0fbfb7c877.
[INFO] --> Setting version for github.com/Azure/go-autorest to 8a25372bbfec739b8719a9e3987400d15ef9e179.
[INFO] --> Setting version for github.com/codedellemc/gournal to 4293aaf7e91602963a5777caef4b346e1cf21936.
[INFO] --> Setting version for github.com/codedellemc/goscaleio to 485da3636bfcc8e70f74fe7bdc7cb25e5a6e4c4a.
[INFO] --> Setting version for github.com/Azure/azure-sdk-for-go to 0984e0641ae43b89283223034574d6465be93bf4.
[INFO] --> Setting version for github.com/akutz/gofig to 862741cad5edced279c57d1981e8e3e9fa54e8d5.
[INFO] --> Setting version for github.com/akutz/goof to 72efb1916248a881f8d39e20b9709696c5eda708.
[INFO] --> Setting version for github.com/appropriate/go-virtualboxclient to e0978ab2ed407095400a69d5933958dd260058cd.
[INFO] --> Setting version for github.com/cesanta/validate-json to 2f16017c76fc2403d143e93cea1e1b9526a01148.
[INFO] --> Setting version for github.com/akutz/golf to 296de562c59e98534dc2d7b49f6ba310e3edb69d.
[INFO] --> Setting version for github.com/akutz/gotil to 6fa2e80bd3ac40f15788cfc3d12ebba49a0add92.
[INFO] --> Setting version for github.com/dgrijalva/jwt-go to 2268707a8f0843315e2004ee4f1d021dc08baedf.
[INFO] --> Setting version for github.com/aws/aws-sdk-go to 3f8f870ec9939e32b3372abf74d24e468bcd285d.
[INFO] --> Setting version for github.com/fsnotify/fsnotify to fd9ec7deca8bf46ecd2a795baaacf2b3a9be1197.
[INFO] --> Setting version for github.com/codedellemc/libstorage to fa055d6da595602715bdfd5541b4aa6d4dcbcbd9.
[INFO] --> Setting version for github.com/digitalocean/godo to 83908b1ddd666d08a9b020c697b55ae3895be2fd.
[INFO] --> Setting version for github.com/go-ini/ini to 6e4869b434bd001f6983749881c7ead3545887d8.
[INFO] --> Setting version for github.com/codedellemc/goisilon to 2ea94fb4dd4f34507c9d67d8d2e35dcc0edb5f89.
[INFO] --> Setting version for github.com/cesanta/ucl to 97c016fce90e6af1b14558563ac46852167e6a76.
[INFO] --> Setting version for github.com/gorilla/mux to 757bef944d0f21880861c2dd9c871ca543023cba.
[INFO] --> Setting version for github.com/gophercloud/gophercloud to 9a5595b8ffe429439c63781cdc312c254e4ad990.
[INFO] --> Setting version for github.com/go-yaml/yaml to bc35f417f8a7664a73d46c9def2933417c03019f.
[INFO] --> Setting version for github.com/golang/protobuf to 8ee79997227bf9b34611aee7946ae64735e6fd93.
[INFO] --> Setting version for github.com/google/go-querystring to 53e6ce116135b80d037921a7fdd5138cf32d7a8a.
[INFO] --> Setting version for github.com/inconshreveable/mousetrap to 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75.
[INFO] --> Setting version for github.com/jteeuwen/go-bindata to 1dd44b25b79c4d9060e582e90798e4d72537818c.
[INFO] --> Setting version for github.com/hashicorp/hcl to f74cf8281543a0797d7b4ab7d88e76e7ba125308.
[INFO] --> Setting version for github.com/jmespath/go-jmespath to bd40a432e4c76585ef6b72d3fd96fb9b6dc7b68d.
[INFO] --> Setting version for github.com/googleapis/gax-go to da06d194a00e19ce00d9011a13931c3f6f6887c7.
[INFO] --> Setting version for github.com/gorilla/context to 08b5f424b9271eedf6f9f0ce86cb9396ed337a42.
[INFO] --> Setting version for github.com/kardianos/osext to 9d302b58e975387d0b4d9be876622c86cefe64be.
[INFO] --> Setting version for github.com/magiconair/properties to 0723e352fa358f9322c938cc2dadda874e9151a9.
[INFO] --> Setting version for github.com/kr/fs to 2788f0dbd16903de03cb8186e5c7d97b69ad387b.
[INFO] --> Setting version for github.com/mitchellh/mapstructure to f3009df150dadf309fdee4a54ed65c124afad715.
[INFO] --> Setting version for github.com/pelletier/go-buffruneio to df1e16fde7fc330a0ca68167c23bf7ed6ac31d6d.
[INFO] --> Setting version for github.com/pelletier/go-toml to 45932ad32dfdd20826f5671da37a5f3ce9f26a8d.
[INFO] --> Setting version for cloud.google.com/go to e4de3dc4493f142c5833f3185e1182025a61f805.
[INFO] --> Setting version for github.com/SermoDigital/jose to f6df55f235c24f236d11dbcf665249a59ac2021f.
[INFO] --> Setting version for github.com/rubiojr/go-vhd to 96a0db67ea8209453cfa694bdf03de202d6dd8f8.
[INFO] --> Setting version for github.com/Sirupsen/logrus to 5f376aa629ac60c3215cc368e674bd996093a01a.
[INFO] --> Setting version for github.com/spf13/cast to 2580bc98dc0e62908119e4737030cc2fdfc45e4c.
[INFO] --> Setting version for github.com/pkg/errors to 248dadf4e9068a0b3e79f02ed0a610d935de5302.
[INFO] --> Setting version for github.com/spf13/jwalterweatherman to 33c24e77fb80341fe7130ee7c594256ff08ccc46.
[INFO] --> Setting version for github.com/spf13/viper to 651d9d916abc3c3d6a91a12549495caba5edffd2.
[INFO] --> Setting version for golang.org/x/crypto to 453249f01cfeb54c3d549ddb75ff152ca243f9d8.
[INFO] --> Setting version for github.com/tent/http-link-go to ac974c61c2f990f4115b119354b5e0b47550e888.
[INFO] --> Setting version for github.com/spf13/cobra to 7be4beda01ec05d0b93d80b3facd2b6f44080d94.
[INFO] --> Setting version for golang.org/x/net to b336a971b799939dd16ae9b1df8334cb8b977c4d.
[INFO] --> Setting version for github.com/spf13/afero to 52e4a6cfac46163658bd4f123c49b6ee7dc75f78.
[INFO] --> Setting version for github.com/pkg/sftp to 4d0e916071f68db74f8a73926335f809396d6b42.
[INFO] --> Setting version for github.com/spf13/pflag to d16db1e50e33dff1b6cdf37596cef36742128670.
[INFO] --> Setting version for golang.org/x/text to 85c29909967d7f171f821e7a42e7b7af76fb9598.
[INFO] --> Setting version for golang.org/x/oauth2 to 314dd2c0bf3ebd592ec0d20847d27e79d0dbe8dd.
[INFO] --> Setting version for google.golang.org/api to d61af0b67e5c8213e8c260ac29a762487bad020d.
[INFO] --> Setting version for golang.org/x/sys to 002cbb5f952456d0c50e0d2aff17ea5eca716979.
[INFO] --> Setting version for gopkg.in/yaml.v1 to bc35f417f8a7664a73d46c9def2933417c03019f.
[INFO] --> Setting version for gopkg.in/yaml.v2 to bc35f417f8a7664a73d46c9def2933417c03019f.
[INFO] --> Setting version for google.golang.org/appengine to 2e4a801b39fc199db615bfca7d0b9f8cd9580599.
[INFO] --> Setting version for google.golang.org/grpc to cbcceb2942a489498cf22b2f918536e819d33f0a.
GOOS=linux GOARCH=amd64 go install github.com/codedellemc/rexray/vendor/github.com/jteeuwen/go-bindata/go-bindata
go get -u github.com/alecthomas/gometalinter
/go/bin/gometalinter --install --update && touch .gometalinter.tools.d
Installing:
goimports
golint
gosimple
ineffassign
lll
unconvert
aligncheck
gocyclo
gotype
safesql
staticcheck
structcheck
unparam
unused
errcheck
dupl
deadcode
goconst
interfacer
misspell
varcheck
gas
make: Leaving directory '/go/src/github.com/codedellemc/rexray'
docker exec -t build-rexray \
env BUILD_TAGS="gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" GOOS=linux GOARCH=amd64 DOCKER=1 \
make -C /go/src/github.com/codedellemc/rexray -j build
make: Entering directory '/go/src/github.com/codedellemc/rexray'
make build-libstorage
make[1]: Entering directory '/go/src/github.com/codedellemc/rexray'
cd vendor/github.com/codedellemc/libstorage && \
BUILD_TAGS="gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" make api/api_generated.go && \
cd -
cd vendor/github.com/codedellemc/libstorage && \
BUILD_TAGS="gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" make api/server/executors/executors_generated.go && \
cd -
make[2]: Entering directory '/go/src/github.com/codedellemc/rexray/vendor/github.com/codedellemc/libstorage'
make[2]: Entering directory '/go/src/github.com/codedellemc/rexray/vendor/github.com/codedellemc/libstorage'
echo generating api/api_generated.go
generating api/api_generated.go
make[2]: Leaving directory '/go/src/github.com/codedellemc/rexray/vendor/github.com/codedellemc/libstorage'
/go/src/github.com/codedellemc/rexray
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./api/types
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./drivers/storage/cinder
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./api/context
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./api/utils
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./api/client
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./api/registry
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./api/utils/config
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./imports/config
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./drivers/os/linux
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./drivers/storage/libstorage
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./drivers/integration/linux
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./imports/local
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./drivers/storage/cinder/executor
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./imports/executors
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./cli/lsx
GOOS=linux GOARCH=amd64 go install -tags "gofig libstorage_integration_driver_linux libstorage_storage_driver libstorage_storage_driver_cinder libstorage_storage_executor libstorage_storage_executor_cinder pflag scripts_generated" ./cli/lsx/lsx-linux
/go/bin/go-bindata -md5checksum -pkg executors -prefix api/server/executors/bin -o api/server/executors/executors_generated.go api/server/executors/bin/...
make[2]: Leaving directory '/go/src/github.com/codedellemc/rexray/vendor/github.com/codedellemc/libstorage'
/go/src/github.com/codedellemc/rexray
make[1]: Leaving directory '/go/src/github.com/codedellemc/rexray'
make build-generated
make[1]: Entering directory '/go/src/github.com/codedellemc/rexray'
make ./core/core_generated.go
make[2]: Entering directory '/go/src/github.com/codedellemc/rexray'
make[2]: 'core/core_generated.go' is up to date.
make[2]: Leaving directory '/go/src/github.com/codedellemc/rexray'
make[1]: Leaving directory '/go/src/github.com/codedellemc/rexray'
make build-rexray
make[1]: Entering directory '/go/src/github.com/codedellemc/rexray'
GOOS=linux GOARCH=amd64 go install -tags "gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" ./core
GOOS=linux GOARCH=amd64 go install -tags "gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" ./cli/cli/template
GOOS=linux GOARCH=amd64 go install -tags "gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" ./cli/cli/term
/go/bin/go-bindata -ignore 'test(?:\.sh)?' -tags "scripts_generated,!rexray_build_type_agent,!rexray_build_type_controller" -md5checksum -pkg scripts -prefix scripts/scripts -o scripts/scripts_generated.go scripts/scripts/...
GOOS=linux GOARCH=amd64 go install -tags "gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" ./scripts
GOOS=linux GOARCH=amd64 go install -tags "gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" ./util
GOOS=linux GOARCH=amd64 go install -tags "gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" .
GOOS=linux GOARCH=amd64 go install -tags "gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" ./daemon/module
GOOS=linux GOARCH=amd64 go install -tags "gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" ./daemon/module/docker/volumedriver
GOOS=linux GOARCH=amd64 go install -tags "gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" ./daemon
GOOS=linux GOARCH=amd64 go install -tags "gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" ./cli/cli
GOOS=linux GOARCH=amd64 go install -tags "gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" ./cli/rexray
GOOS=linux GOARCH=amd64 go install -tags "gofig pflag libstorage_integration_driver_linux scripts_generated libstorage_storage_driver libstorage_storage_executor libstorage_storage_driver_cinder libstorage_storage_executor_cinder" ./cli/rexray/rexray
make[1]: Leaving directory '/go/src/github.com/codedellemc/rexray'
make: Leaving directory '/go/src/github.com/codedellemc/rexray'
The rexray binary is 19MB and located at:
./rexray
DRIVERS=cinder make docker-build-plugin
cp rexray .docker/plugins/cinder/rexray
docker plugin rm rexray/cinder:0.1.0 2> /dev/null || true
sudo rm -fr .docker/plugins/cinder/rootfs
docker build -t rootfsimage .docker/plugins/cinder && \
id=$(docker create rootfsimage true) && \
sudo mkdir -p .docker/plugins/cinder/rootfs && \
sudo docker export "$id" | sudo tar -x -C .docker/plugins/cinder/rootfs && \
docker rm -vf "$id" && \
docker rmi rootfsimage
Sending build context to Docker daemon 20.56 MB
Step 1/13 : FROM alpine:3.5
---> 4a415e366388
Step 2/13 : LABEL drivers "cinder"
---> Running in 6267b4e7140f
---> c3628936bfe1
Removing intermediate container 6267b4e7140f
Step 3/13 : LABEL version "0.1.0"
---> Running in 9ad868948c59
---> eeb5c2266860
Removing intermediate container 9ad868948c59
Step 4/13 : RUN apk update
---> Running in 1fa765fffdc0
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
v3.5.2-71-g1050b6acec [http://dl-cdn.alpinelinux.org/alpine/v3.5/main]
v3.5.2-70-gec9876f375 [http://dl-cdn.alpinelinux.org/alpine/v3.5/community]
OK: 7961 distinct packages available
---> cadb30f3a548
Removing intermediate container 1fa765fffdc0
Step 5/13 : RUN apk add xfsprogs e2fsprogs ca-certificates
---> Running in dbbf1ecd0b6b
(1/7) Installing ca-certificates (20161130-r1)
(2/7) Installing libuuid (2.28.2-r1)
(3/7) Installing libblkid (2.28.2-r1)
(4/7) Installing libcom_err (1.43.3-r0)
(5/7) Installing e2fsprogs-libs (1.43.3-r0)
(6/7) Installing e2fsprogs (1.43.3-r0)
(7/7) Installing xfsprogs (4.5.0-r0)
Executing busybox-1.25.1-r0.trigger
Executing ca-certificates-20161130-r1.trigger
OK: 7 MiB in 18 packages
---> 644f0fc9a69a
Removing intermediate container dbbf1ecd0b6b
Step 6/13 : RUN mkdir -p /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
---> Running in d8164fa2d28c
---> 24121d80ff7e
Removing intermediate container d8164fa2d28c
Step 7/13 : RUN mkdir -p /etc/rexray /run/docker/plugins /var/lib/libstorage/volumes
---> Running in 0e6b00976cad
---> 6febd2ae096a
Removing intermediate container 0e6b00976cad
Step 8/13 : ADD rexray /usr/bin/rexray
---> 41110f8185e6
Removing intermediate container a9a426ce813e
Step 9/13 : ADD rexray.yml /etc/rexray/rexray.yml
---> fbd283872bf6
Removing intermediate container b6879f23a43e
Step 10/13 : ADD rexray.sh /rexray.sh
---> fbf42de42c26
Removing intermediate container a6b99a1059d3
Step 11/13 : RUN chmod +x /rexray.sh
---> Running in 30c1e23d5ce0
---> 4c337a5e94d4
Removing intermediate container 30c1e23d5ce0
Step 12/13 : CMD rexray start -f --nopid
---> Running in 8e7e96b6eafd
---> e4624768d95e
Removing intermediate container 8e7e96b6eafd
Step 13/13 : ENTRYPOINT /rexray.sh
---> Running in 347bbe8e2747
---> abb955664747
Removing intermediate container 347bbe8e2747
Successfully built abb955664747
bd8c64efe42d1604603e93fb38a9b975fb52a28eb4e2e312dc40813c9dd0dc67
Untagged: rootfsimage:latest
Deleted: sha256:abb955664747b002df543aa7649c9ccd749c7e53d45977da84a761bec2872f6c
Deleted: sha256:e4624768d95ed967d4936230a56ee87ee13c0fca56da09c6269d9cde55427bce
Deleted: sha256:4c337a5e94d49d7d4f7cf1ab71f263623506aa5e24cdf258673e555aad7f6a86
Deleted: sha256:93f9d0f05f4cdba0a5232386a2061d6c6a196d8f37aea6dce77911c8334f71a0
Deleted: sha256:fbf42de42c26d22479c484616e4893de02392b93b929202218d43065d760f061
Deleted: sha256:d5fe835bec32b981a8510cb6e43034bd334c37ae23decd8fa143e4f7e9d3c989
Deleted: sha256:fbd283872bf679ca261e922fbd8ce0c7b1d1bef52d6c49d7927c59984f244855
Deleted: sha256:b110365052e91121b6a0a6d2a74becc22dacb965c5247587087a25290a252866
Deleted: sha256:41110f8185e6f4477507cdd90815990dec4801db3f5874d7ebb384516c970d8e
Deleted: sha256:93acdba888c7c44cbbd78fae1f32200766533f83e8ea797d2242a4c9e665d1d8
Deleted: sha256:6febd2ae096a63a16a019ad9eacd6698b61373c278bf307470b8f485464de9d5
Deleted: sha256:ce18b1bcb6aab1871f46f4368a037bd7ca3fb0bf047f3ca4a1669da5609b1eef
Deleted: sha256:24121d80ff7eeb0f0681a338e21ba8c1416ff42392a29a9de086115ecb9a5732
Deleted: sha256:ad6cb56a51f44d7deab7efc8a2d726d8fca1140ef8777d73608d69c7d5ec6a34
Deleted: sha256:644f0fc9a69adf4b978e91aae2b0903789683fa92cd540a0615a8b67d7ec93c3
Deleted: sha256:e1e72b9f6d4f7688f47b79ee7ae3257a3712c63037fd0c4fcafe78214129f70d
Deleted: sha256:cadb30f3a548c2469df71d30aa0f6b6289e5bcb4a3922cbf93bdb5515da27643
Deleted: sha256:5f3042a88538ee2bfae158ef0ea18398646e627bae57f0df06666e0debf533b8
Deleted: sha256:eeb5c226686030ce45b8a2d2cb8076828c29de95240d84bd5bcaa2715054c29f
Deleted: sha256:c3628936bfe1336a47cabd99cf861ad3f4ca0603eeba8625ecd4e5ce0b900be1
sudo docker plugin create rexray/cinder:0.1.0 .docker/plugins/cinder
rexray/cinder:0.1.0
docker plugin ls
ID NAME DESCRIPTION ENABLED
6341d9128406 rexray/cinder:0.1.0 REX-Ray for cinder false
[0]akutz@pax:rexray$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment