|  | 
| 1 |  | -# BBS Server [](https://godoc.org/github.com/cloudfoundry/bbs) | 
| 2 |  | - | 
| 3 |  | -**Note**: This repository should be imported as `code.cloudfoundry.org/bbs`. | 
| 4 |  | - | 
| 5 |  | -API to access the database for Diego. | 
| 6 |  | - | 
| 7 |  | -A general overview of the BBS is documented [here](doc). | 
| 8 |  | - | 
| 9 |  | -## Reporting issues and requesting features | 
| 10 |  | - | 
| 11 |  | -Please report all issues and feature requests in [cloudfoundry/diego-release](https://github.com/cloudfoundry/diego-release/issues). | 
| 12 |  | - | 
| 13 |  | -## API | 
| 14 |  | - | 
| 15 |  | -To interact with the BBS from outside of Diego, use the methods provided on the | 
| 16 |  | -[`Client` interface](https://godoc.org/github.com/cloudfoundry/bbs#Client). | 
| 17 |  | - | 
| 18 |  | -Components within Diego may use the full [`InternalClient` | 
| 19 |  | -interface](https://godoc.org/github.com/cloudfoundry/bbs#InternalClient) to modify internal state. | 
| 20 |  | - | 
| 21 |  | -## Code Generation | 
| 22 |  | - | 
| 23 |  | -The protobuf models in this repository require version 3.5 or later of the `protoc` compiler. | 
| 24 |  | - | 
| 25 |  | -### OSX | 
| 26 |  | - | 
| 27 |  | -On Mac OS X with [Homebrew](http://brew.sh/), run the following to install it: | 
| 28 |  | - | 
| 29 |  | -``` | 
| 30 |  | -brew install protobuf | 
| 31 |  | -``` | 
| 32 |  | - | 
| 33 |  | -### Linux | 
| 34 |  | - | 
| 35 |  | -1. Download a zip archive of the latest protobuf release from [here](https://github.com/google/protobuf/releases). | 
| 36 |  | -1. Unzip the archive in `/usr/local` (including /bin and /include folders). | 
| 37 |  | -1. `chmod a+x /usr/local/bin/protoc` to make sure you can use the binary. | 
| 38 |  | - | 
| 39 |  | -> If you already have an older version of protobuf installed, you must | 
| 40 |  | -> uninstall it first by running `brew uninstall protobuf` | 
| 41 |  | -
 | 
| 42 |  | -Install the `gogoproto` compiler by running: | 
| 43 |  | - | 
| 44 |  | -``` | 
| 45 |  | -go install github.com/gogo/protobuf/protoc-gen-gogoslick | 
| 46 |  | -``` | 
| 47 |  | - | 
| 48 |  | -Run `go generate ./...` from the root directory of this repository to generate code from the `.proto` files as well as to generate fake implementations of certain interfaces for use in test code. | 
| 49 |  | - | 
| 50 |  | -### Generating ruby models for BBS models | 
| 51 |  | - | 
| 52 |  | -The following documentation assume the following versions: | 
| 53 |  | - | 
| 54 |  | -1. [protoc](https://github.com/google/protobuf/releases) `> v3.5.0` | 
| 55 |  | -2. [ruby protobuf gem](https://github.com/ruby-protobuf/protobuf) `> 3.6.12` | 
| 56 |  | - | 
| 57 |  | -Run the following commands from the `models` directory to generate `.pb.rb` | 
| 58 |  | -files for the BBS models: | 
| 59 |  | - | 
| 60 |  | -1. `sed -i'' -e 's/package models/package diego.bbs.models/' ./*.proto` | 
| 61 |  | -1. `protoc -I../../vendor --proto_path=. --ruby_out=/path/to/ruby/files *.proto` | 
| 62 |  | - | 
| 63 |  | -**Note** Replace `/path/to/ruby/files` with the desired destination of the | 
| 64 |  | -`.pb.rb` files. That directory must exist before running this command. | 
| 65 |  | - | 
| 66 |  | -**Note** The above steps assume that | 
| 67 |  | -`github.com/gogo/protobuf/gogoproto/gogo.proto` is on the `GOPATH`. | 
| 68 |  | - | 
| 69 |  | -## SQL | 
| 70 |  | -See [Migrations](https://github.com/cloudfoundry/bbs/blob/master/doc/bbs-migration.md) for information about writing database migrations. | 
| 71 |  | - | 
| 72 |  | -## Run Tests | 
| 73 |  | -See the instructions in [the Diego Release contributing guide](https://github.com/cloudfoundry/diego-release/blob/develop/.github/CONTRIBUTING.md#running-tests) | 
| 74 |  | -for how to run all tests | 
|  | 1 | +# BBS | 
|  | 2 | + | 
|  | 3 | +Bulletin Board System (BBS) is the API to access the database for Diego. | 
|  | 4 | +It communicates via protocol-buffer-encoded RPC-style calls over HTTP. | 
|  | 5 | + | 
|  | 6 | +> \[!NOTE\] | 
|  | 7 | +> | 
|  | 8 | +> This repository should be imported as `code.cloudfoundry.org/bbs`. | 
|  | 9 | +
 | 
|  | 10 | +# Docs | 
|  | 11 | + | 
|  | 12 | +-   [BBS API Overview](./docs/010-overview.md) | 
|  | 13 | +-   [The components of a Diego Cell overview](./docs/011-cells.md) | 
|  | 14 | +-   [Cells API](./docs/012-api-cells.md) | 
|  | 15 | +-   [Overview of Tasks](./docs/020-tasks.md) | 
|  | 16 | +-   [Defining Tasks](./docs/021-defining-tasks.md) | 
|  | 17 | +-   [Task Examples](./docs/022-task-examples.md) | 
|  | 18 | +-   [Tasks API](./docs/023-api-tasks.md) | 
|  | 19 | +-   [Tasks Internal API](./docs/024-api-tasks-internal.md) | 
|  | 20 | +-   [Overview of LRPs: Long Running Processes](./docs/030-lrps.md) | 
|  | 21 | +-   [Defining LRPs](./docs/031-defining-lrps.md) | 
|  | 22 | +-   [LRP Examples](./docs/032-lrp-examples.md) | 
|  | 23 | +-   [LRP API Reference](./docs/033-api-lrps.md) | 
|  | 24 | +-   [Actual LRPs Internal API](./docs/034-api-lrps-internal.md) | 
|  | 25 | +-   [BBS DB Schema](./docs/040-schema-description.md) | 
|  | 26 | +-   [BBS API Versioning | 
|  | 27 | +    Conventions](./docs/041-revisioning-bbs-api-endpoints.md) | 
|  | 28 | +-   [BBS Migrations](./docs/042-bbs-migration.md) | 
|  | 29 | +-   [Domains](./docs/050-domains.md) | 
|  | 30 | +-   [Container Runtime Environment Variables](./docs/051-environment.md) | 
|  | 31 | +-   [BBS Events](./docs/052-events.md) | 
|  | 32 | +-   [Actions](./docs/053-actions.md) | 
|  | 33 | +-   [BBS Models](./docs/054-common-models.md) | 
|  | 34 | + | 
|  | 35 | +# Contributing | 
|  | 36 | + | 
|  | 37 | +See the [Contributing.md](./.github/CONTRIBUTING.md) for more | 
|  | 38 | +information on how to contribute. | 
|  | 39 | + | 
|  | 40 | +# Working Group Charter | 
|  | 41 | + | 
|  | 42 | +This repository is maintained by [App Runtime | 
|  | 43 | +Platform](https://github.com/cloudfoundry/community/blob/main/toc/working-groups/app-runtime-platform.md) | 
|  | 44 | +under `Diego` area. | 
|  | 45 | + | 
|  | 46 | +> \[!IMPORTANT\] | 
|  | 47 | +> | 
|  | 48 | +> Content in this file is managed by the [CI task | 
|  | 49 | +> `sync-readme`](https://github.com/cloudfoundry/wg-app-platform-runtime-ci/blob/c83c224ad06515ed52f51bdadf6075f56300ec93/shared/tasks/sync-readme/metadata.yml) | 
|  | 50 | +> and is generated by CI following a convention. | 
0 commit comments