BOSH release for Cloud Foundry Bits-Service
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.final_builds
config
docker/cert-copier
jobs/bits-service
packages
releases/bits-service
scripts
spec
src Bump Ruby deps to fix security vulnerabilities Oct 1, 2018
standalone-dev-setup
test
.gitignore
.gitmodules
.rspec
.rubocop.yml
.ruby-version
Gemfile
Gemfile.lock
Guardfile
LICENSE
NOTICE
README.md
Rakefile

README.md

Bits Service Release

A BOSH release for deploying the bits-service.

Deployment

Deploy a CF on BOSH Lite with bits-service enabled

Simply follow instructions in cf-deployment and the Ops-file README for experimental to add bits-service.yml and other necessary Ops-files (documented there as well) to enable the Bits-Service.

Run Tests

To run bits-service tests, you need to deploy it with upload size limits set to lower values.

Generate deployment manifest with --size-limits and deploy.

./scripts/generate-cf-with-bits-service-enabled-bosh-lite-manifest local --size-limits

Be advised that the deployment should have succeeded before at least once, otherwise CloudFoundry post-install scripts will fail to run with this stricter limits.

Configure test execution:

export BITS_SERVICE_PRIVATE_ENDPOINT_IP=10.244.0.74
export BITS_SERVICE_MANIFEST=./deployments/cf-with-bits-service-enabled.yml
export CC_API=https://api.bosh-lite.com
export CC_PASSWORD=xxx
export CC_USER=admin

./scripts/add-route

The following two lines need to be present in your /etc/hosts to run the tests:

10.244.0.74 bits-service.service.cf.internal bits-service.bosh-lite.com
10.244.0.130 blobstore.service.cf.internal

Then run:

bundle install
bundle exec rake

CI Pipeline

The pipeline is publicly visible at flintstone.ci.cf-app.com. The sources are located at bits-service-ci.