Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-8932

Persistent home feature does not work for files under /home/tooling/.config

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Release Notes
    • Hide
      = Persistent home feature works for files under /home/tooling/.config

      Previously, with the UDI it was not possible to persist /home/tooling/.config files when spec.devEnvironments.persistUserHome is enabled in the CheCluster. With this release, /home/tooling/.config files will be persisted by creating a symlink from files under /home/tooling/.config to /home/user/.config in the entrypoint of the UDI.
      Show
      = Persistent home feature works for files under /home/tooling/.config Previously, with the UDI it was not possible to persist /home/tooling/.config files when spec.devEnvironments.persistUserHome is enabled in the CheCluster. With this release, /home/tooling/.config files will be persisted by creating a symlink from files under /home/tooling/.config to /home/user/.config in the entrypoint of the UDI.
    • Bug Fix
    • Done

      The files under /home/tooling/.config are not moved to /home/user/.config when the persistent home feature is enabled in Dev Spaces.

      This is because /home/tooling/.config is in the stow_ignore file: [1]

      The technical reason why the .config folder is in the stow_ignore file was since stow is run in the dockerfile [2], the /home/user/.config was being created with permissions that caused podman 5.x to not run as expected, see [3]

      That is why [2] updates the UDI such that the /home/user/.config folder is created in the entrypoint, which results in owner permissions that don't cause problems with podman 5.x.

      We need to support a way to easily transfer over /home/tooling/.config files to /home/user/.config in the UDI entrypoint.

      [1]https://github.com/redhat-developer/devspaces-images/blob/173935c49d8844a3649a547468fad8763b26387b/devspaces-udi/etc/.stow-local-ignore#L10
      [2]https://github.com/redhat-developer/devspaces-images/blob/173935c49d8844a3649a547468fad8763b26387b/devspaces-udi/Dockerfile#L371
      [3]https://github.com/devfile/developer-images/pull/197

              dakwon@redhat.com David Kwon
              dakwon@redhat.com David Kwon
              Valerii Svydenko Valerii Svydenko
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: