Uploaded image for project: 'Red Hat OpenShift AI Engineering'
  1. Red Hat OpenShift AI Engineering
  2. RHOAIENG-377

Overriding the starting Home Directory: is it rude?

    XMLWordPrintable

Details

    • False
    • Hide

      None

      Show
      None
    • False
    • Moderate

    Description

      Description of problem:

      A customer of ours uses a Custom Notebook Image. 

      In previous versions of RHODS (1.15), when the user would log into the terminal, their location would be their home directory as defined in the image, i.e. /home/jovyan

      Now, in recent versions of RHODS, when the user logs into the image's Terminal, they land in /opt/app-root/src/

       

      Upon investigation, in the YAML for the notebook pod, the following statement appears

      This workingDir statement apparently overrides the defaults of the customer image. 

       

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. <steps>

      Actual results:

      Expected results:

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

      Workaround:

      We have told the customer to: 
      In your dockerfile, you have a statement that says:
      CMD ["start-notebook.sh"]
      replace it with
      CMD ["/bin/bash", "-c", "cd /home/jovyan ; start-notebook.sh"]
      then, rebuild the image.
      And that seems to have worked. 

       

      Additional info:

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              egranger@redhat.com Erwan Granger
              RHOAI Dashboard
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                PagerDuty