Search code examples
phpopenshiftopenshift-origins2i

Wrap given s2i scripts with my snippets of code


I want to wrap the existing s2i scripts given in openshift. I want to add to export two more environment variables in the run script.

I don't want to override the existing ones , i just want to extend them.

Cheers


Solution

  • You don't need to wrap the run script. You can specify extra environment variables to be embedded in the image by adding a .s2i/environment file and adding them in there as A=B values.

    You could also just set them on the deployment configuration using oc set env command.