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.
Bits currently supports WebDAV and the following Fog connectors:
- AWS S3
- Azure
- Local (NFS)
- Openstack
The CI config is in the bits-service-ci repo.
It can be used standalone or through its BOSH-release.
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:
-
Install ginkgo
-
Configure
$PATH
:export PATH=$GOPATH/bin:$PATH
-
Run tests with
scripts/run-unit-tests