Skip to content

Files

Latest commit

author
Doug Davis
Apr 6, 2021
485c90a · Apr 6, 2021

History

History
This branch is 3 commits ahead of, 420 commits behind IBM/CodeEngine:main.

bind-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 13, 2020
Apr 6, 2021
Oct 13, 2020
Apr 5, 2021
Apr 6, 2021

Bind-App

This sample shows how to bind an instance of an IBM Cloud managed service to an Application. Under the covers this will query the service to get information such as the credentials to talk to it, and its location URL. Then it'll create a secret with that information and bind that secret to your App. Meaning, it'll make the secret name/value pairs visible as a set of environment variables. But as the App owner you only need to look at the new environment variables that will be added to the App.

In this sample we'll create an instance of a DB2 service.

Note: this sample will not work in the "eu-de" region because it uses a free tier of the DB2 service which is not available in that region.


As noted in the main README, this sample has two pieces:

  • a build script which will build the container image(s) used
  • a run script which deploys resources that use those images

The main purpose of this example is the run script, but the build script is included for complete educational (and reuse) purposes.