CloudFoundry Enterprise Storefront Backend

A backend Cobol service providing a list of products used by the frontend.

Deploy the backend app to CFEE

  1. Use your Kubernetes cluster where your CFEE instance been deployed on.

  2. Log in to IBM Cloud, target your Kubernetes cluster. Copy and paste the export command to set the KUBECONFIG environment variable as directed.

    ibmcloud login
    ibmcloud cs cluster-config cluster-name
  3. From your terminal, clone the app if you haven't already.

    git clone https://github.com/IBM-Cloud/cfee-eirini-storefront
  4. cd into the backend app.

    cd backend
  5. Copy template.local.env to local.env

  6. Set values to match your cluster environment. You can get the details below from the IBM Cloud dashboard under your cluster.

    • REGISTRY_URL
    • REGISTRY_NAMESPACE
    • IMAGE_NAME
    • PIPELINE_KUBERNETES_CLUSTER_NAME
  7. Build and push the image.

    source local.env
    ./scripts/pipeline-BUILD.sh
  8. Edit the app.yaml file, in line 30 update the below three items:

    • REGISTRY_URL
    • REGISTRY_NAMESPACE
    • IMAGE_NAME You have already added these values to the local.env already in step
  9. Deploy to your cluster.

  10. Done, next deploy the frontend.

Issues

If you have any question or doubt, please create an issue.

License

Licensed under the Apache License, Version 2.0.