Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-3285

[EAP] Add env variable similar to CUSTOM_INSTALL_DIRECTORIES to aid in extending scripts

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • EAP72 7.2.2.GA
    • EAP7, EAP_CD
    • None

      Description of problem:

      Customer is requesting for an enhancement to the base image to include certain env variables as in
      https://github.com/jboss-openshift/openshift-examples/tree/master/custom-install-directories
      For example, they are adding a script to extend the java keystore:

      Add root certificate to java keystore

      ADD certificates /usr/local/s2i/platform/certificates
      RUN printf 'CONFIGURE_SCRIPTS=("${CONFIGURE_SCRIPTS[@]}" "/usr/local/s2i/platform/certificates/certificate.sh")\n' >> /opt/eap/bin/launch/openshift-common.sh
      

      This is relying on the script to be always at the same place. If the script is moved in an update - all their images will break since the customization will not take that in to count. Using an env variable similar to CUSTOM_INSTALL_DIRECTORIES for BuildConfigs would allow them to extend the configuration in base-image without having to rely on a specific script being in a specific directory.

      Please let us know if this could be considered.

            kwills@redhat.com Ken Wills
            rhn-support-trogers Travis Rogers (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: