Cloud Foundry Bits-Service repository
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
acceptance_test
api-doc
assets
blobstores
ccupdater
cmd
config
docs
httputil
images
logger
matchers
middlewares
pathsigner
routes
scripts
statsd
testutil
util
.gitignore
LICENSE
NOTICE
README.md
app_stash_handler.go
app_stash_handler_test.go
bitsgo_suite_test.go
blobstore.go
body_size_limit.go
body_size_limit_test.go
glide.lock
glide.yaml
metrics_service.go
mock_blobstore_test.go
mock_metricsservice_test.go
mock_noredirectblobstore_test.go
mock_readcloser_test.go
mock_resourcesigner_test.go
mock_updater_test.go
package_bundle.go
package_bundle_test.go
performance-comparison.md
resource_handler.go
resource_handler_test.go
sign_handler.go
sign_handler_test.go

README.md

Bits Service

The bits-service is an extraction from existing functionality of the cloud controller. It encapsulates all "bits operations" into its own, separately scalable service. All bits operations comprise buildpacks, droplets, app_stashes, packages and the buildpack_cache.

The API is a work in progress and will most likely change.

Supported Backends

Bits currently supports WebDAV and the following Fog connectors:

  • AWS S3
  • Azure
  • Google
  • Local (NFS)
  • Openstack

Development

The CI config is in the bits-service-ci repo.

Additional Notes

It can be used standalone or through its BOSH-release.

Getting Started

Make sure you have a working Go environment and the Go vendoring tool glide is properly installed.

To install bitsgo:

mkdir -p $GOPATH/src/github.com/cloudfoundry-incubator
cd $GOPATH/src/github.com/cloudfoundry-incubator

git clone https://github.com/cloudfoundry-incubator/bits-service.git
cd bits-service

glide install

cd cmd/bitsgo
go install

Then run it:

bitsgo --config my/path/to/config.yml

To run tests:

  1. Install ginkgo

  2. Configure $PATH:

    export PATH=$GOPATH/bin:$PATH
  3. Run tests with

    scripts/run-unit-tests