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

workspaceFolder specifies where the mount is #1362

Open
shyim opened this issue Nov 11, 2024 · 1 comment
Open

workspaceFolder specifies where the mount is #1362

shyim opened this issue Nov 11, 2024 · 1 comment
Labels

Comments

@shyim
Copy link

shyim commented Nov 11, 2024

What happened?
My docker image brings the most stuff; I just want to mount the code to a sub-directory. Therefore I have a script running in entry point which symlinks the folder /workspaces/<name> to /var/www/html/custom/plugins

I specify the workspaceFolder to /var/www/html, so the editor starts in the right folder (what works in GitHub Codespaces), but Devpod mounts my source code to /var/www/html and everything from the image is gone

What did you expect to happen instead?

Do the same as Codespaces / VSCode Official Plugin, clone always to /workspaces/<name> and use workspaceFolder just as editor startpoint

How can we reproduce the bug? (as minimally and precisely as possible)
Use my devcontainer.json there

My devcontainer.json:
https://github.com/FriendsOfShopware/FroshTools/blob/main/.devcontainer.json

Local Environment:

  • DevPod Version: [use devpod version]
  • Operating System: mac
  • ARCH of the OS: ARM64

DevPod Provider:

  • Local/remote provider: docker
@shyim shyim added the kind/bug label Nov 11, 2024
@pascalbreuninger
Copy link
Member

Hey @shyim, thanks for reporting this issue.
You're right, we need to change that in DevPod.
Until then, could you try to set workspaceFolder to /var/www/html and workspaceMount to source=${localWorkspaceFolder},target=/workspaces/${devcontainerId},type=bind?

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