Tanzu-Solutions-Engineering / tanzu-to-go-workshop

Workshop content for creating a standalone Kubernetes development environment built entirely on open source
31 stars 22 forks source link

Add container runtime and build env vars to supply chain #8

Open bbertka-pivotal opened 2 years ago

bbertka-pivotal commented 2 years ago

Would be nice to have environment variables specified in the supply chain and be able to modify these as part of the lab within workload.yaml. This will allow attendees porting an app from another cloud native platform such as CF to quickly get an app running. For example build pack config environment variable, or user runtime container environment variables specified in workload.yaml.

apiVersion: carto.run/v1alpha1
kind: Workload
metadata:
  name: tanzu-java-web-app
  labels:
    apps.tanzu.vmware.com/workload-type: web
spec:
  env:
    - name: CONTAINER_VAR
      value: "1234567890"
  source:
    git:
      url: https://github.com/bbertka-pivotal/tanzu-java-web-app
      ref:
        branch: main
  build:
    env:
      - name: JBP_CONFIG_OPEN_JDK_JRE 
        value: '{ jre: { version: 11.+ }, memory_calculator: { stack_threads: 25 } }'