Customizing the build service to store build data

When you build your Streams applications, the build service can store data, such as build archives, compile results, and build artifacts, on the persistent volume.

About this task

To store build data, you must create a persistent volume claim and assign its name to the build.persistentVolumeClaim property.
Note: You can't use the same persistent volume claim for the build.persistentVolumeClaim property and the builder.persistentVolumeClaim property, which is used for specifying a storage location for specialized Streams toolkits.

Procedure

  1. Set up a storage location for build data on a persistent volume:
    1. Create a persistent volume and persistent volume claim to store build data. For more information about creating a persistent volume, see Creating a persistent volume for IBM Streams manually.
  2. Specify the name of the persistent volume claim in the build.persistentVolumeClaim parameter in the IBMStreamsBuild manifest before you create the build service.
    build:
      build.persistentVolumeClaim: mystreamsbuild-pvc