Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DevPod Kubernetes provider not handling bind mounts correctly #947

Open
nesta219 opened this issue Mar 6, 2024 · 1 comment
Open

DevPod Kubernetes provider not handling bind mounts correctly #947

nesta219 opened this issue Mar 6, 2024 · 1 comment
Labels

Comments

@nesta219
Copy link

nesta219 commented Mar 6, 2024

What happened?
I wanted to use devcontainer mounts to mount a pip.conf file to my DevPod container in order to pull private python dependencies. When I looked at the file on my DevPod's filesystem though, the pip.conf file was not a file, it was an empty directory.

What did you expect to happen instead?
I expected the pip.conf file to be created in the target location

How can we reproduce the bug? (as minimally and precisely as possible)

My devcontainer.json:

{
   ...
  "mounts": [
    {
      "source": "/opt/homebrew/etc/pip.conf",
      "target": "/tmp/pip.conf",
      "type": "bind"
    }
  ],
  ...
}

Local Environment:

  • DevPod Version: v0.5.4
  • Operating System: mac
  • ARCH of the OS: ARM64

DevPod Provider:

  • Cloud Provider: aws EKS
  • Kubernetes Provider: v1.28.4
  • Local/remote provider: ssh

Anything else we need to know?

@pascalbreuninger
Copy link
Member

Hey @nesta219,
I've been investigating this for a bit and haven't found a (quick) reliable solution for the kubernetes provider. The problem is that an empty volume mount will be usually (depends on the container runtime) created as a directory in the container.

There are ways around this but none of the ones I'm aware of are easy.
I'd keep this ticket open for now and see how many other people face this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants