Skip to content

Qarik-Group/librdkafka-buildpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

librdkafka buildpack for Cloud Foundry

librdkafka is the Apache Kafka C/C++ library by Magnus Edenhill. It is required to be installed before using language binding libraries like Python's confluent-kafka. This buildpack will install a pre-compiled version of librdkafka that will immediately work with your Cloud Foundry application.

Updates via CI

A new version of this buildpack will be automatically published for each new librdkafka release from our CI pipeline.

Buildpack User Documentation

Building the Buildpack

To build this buildpack, run the following command from the buildpack's directory:

  1. Source the .envrc file in the buildpack directory.

    source .envrc

    To simplify the process in the future, install direnv which will automatically source .envrc when you change directories.

  2. Install buildpack-packager

    ./scripts/install_tools.sh
  3. Build the buildpack

    buildpack-packager build -stack cflinuxfs3 -cached
  4. Use in Cloud Foundry

    Upload the buildpack to your Cloud Foundry and optionally specify it by name

    cf create-buildpack librdkafka_buildpack librdkafka_buildpack*.zip 100
    cf push my_app -b librdkafka_buildpack -b python_buildpack

Testing

Buildpacks use the Cutlass framework for running integration tests.

To test this buildpack, run the following command from the buildpack's directory:

  1. Source the .envrc file in the buildpack directory.

    source .envrc

    To simplify the process in the future, install direnv which will automatically source .envrc when you change directories.

  2. Run integration tests

    ./scripts/integration.sh

    More information can be found on Github cutlass.

Reporting Issues

Open an issue on this project

Disclaimer

This buildpack is experimental and not yet intended for production use.