Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-1937

Classpath not fully parsed in TSBI images

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • All
    • Small

    Description

      In TSBI images we cannot set correctly the classpath variable due to :
      https://github.com/Talend/tsbi-images/blob/v2.7.0-20210527090437/tsbi/java8-base/entrypoint.sh#L20

      # Set Java classpath
      if [ -e "${TALEND_APP_HOME}/.tsbi.service.classpath" ]; then
          export CLASSPATH=$(cat ${TALEND_APP_HOME}/.tsbi.service.classpath)
      fi
      

      This is fix on master, waiting for next release to bump. Meanwhile a workaround (seen w/ Alain) has be made.
       https://github.com/Talend/tsbi-images/blob/main/tsbi/java8-base/entrypoint.sh#L18-L34

      # Set Java classpath
      if [ -n "$CLASSPATH_OVERRIDE" ]; then
          export CLASSPATH="$CLASSPATH_OVERRIDE"
          unset CLASSPATH_OVERRIDE
      else
          if [ -n "$CLASSPATH" ]; then
              if [ -e "${TALEND_APP_HOME}/.tsbi.service.classpath" ]; then
                  export CLASSPATH="$CLASSPATH:$(cat ${TALEND_APP_HOME}/.tsbi.service.classpath)"
              else
                  export CLASSPATH="$CLASSPATH"
              fi
          else
              if [ -e "${TALEND_APP_HOME}/.tsbi.service.classpath" ]; then
                  export CLASSPATH="$(cat ${TALEND_APP_HOME}/.tsbi.service.classpath)"
              fi
          fi
      fi
      
      

       

       

       

       

       

      Attachments

        Activity

          People

            emmanuel_g emmanuel gallois
            emmanuel_g emmanuel gallois
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: