Skip to content

Handle file mounting #6

Description

@Phillezi

Description

Mounting files as volumes works in Docker Compose, but this feature is not supported on kthcloud. To address this, we need to implement a workaround that checks if the volume's host path is a file and then creates a wrapping directory that contains only that file.

Proposed Solution

  1. Check if the volume's host path is a file.
  2. Create a wrapping directory that includes only the file.
  3. Upload the wrapping directory to the storage server under the project's directory.
  4. Ensure that the file is named on the deployment side based on the mount configuration (e.g., thisfilename.txt:otherfilename.otherext makes the file accessible as otherfilename.otherext).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions