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

[RN] Specify which files from /home/tooling/.config should be copied

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Release Notes
    • Hide
      = Specify files to copy for user home persistence

      When the `spec.devEnvironments.persistUserHome` feature is enabled, you can now specify files to be copied from `/home/tooling/` to `/home/user/` instead of being symbolically linked. This is useful for configuration files that you want to edit and have the changes persist.

      To specify which files to copy, create a `.copy-files` file in the `/home/tooling/` directory of your Universal Developer Image (UDI). In your `Dockerfile`, add the names of the files to this list.

      For example, to copy the `.my-config` file:

      [source,dockerfile]
      ----
      FROM quay.io/devfile/base-developer-image:ubi9-latest
      ...
      RUN echo ".my-config" >> /home/tooling/.copy-files
      ...
      ----
      Show
      = Specify files to copy for user home persistence When the `spec.devEnvironments.persistUserHome` feature is enabled, you can now specify files to be copied from `/home/tooling/` to `/home/user/` instead of being symbolically linked. This is useful for configuration files that you want to edit and have the changes persist. To specify which files to copy, create a `.copy-files` file in the `/home/tooling/` directory of your Universal Developer Image (UDI). In your `Dockerfile`, add the names of the files to this list. For example, to copy the `.my-config` file: [source,dockerfile] ---- FROM quay.io/devfile/base-developer-image:ubi9-latest ... RUN echo ".my-config" >> /home/tooling/.copy-files ... ----
    • Enhancement
    • Proposed

      When spec.devEnvironments.persistUserHome In some situations, it can be desirable to have files from /home/tooling/ copied to /home/user/ instead of creating a symlink. This can be useful for dotfiles or configurations, allowing users to edit and have their configurations stored in the persistent volume.

      The latest UDI allows specifying which files should be copied via the .copy-files file:
      FROM quay.io/devfile/base-developer-image:ubi9-latest
      ...
      RUN echo ".my-config" >> /home/tooling/.copy-files
      ...

              gtrivedi@redhat.com Gaurav Trivedi
              gtrivedi@redhat.com Gaurav Trivedi
              Roland Grunberg Roland Grunberg
              Gaurav Trivedi Gaurav Trivedi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: