Proper way to use this repository
Hi, thanks for making this. I'm pretty new to dev containers, but as far as I understand there are dev container templates that can be used to create projects on. Can I use this repo as a template somehow?
What's the proper way to use this dev container setup for a project? I think it is Dev containers: Clone Repository in Container Volume and then point to this Github repo. Then I replace the files with my code. I notice in this case VScode calls the container 'python-uv' but I'd like to call it something related to my project. I'm not sure how to rename it or where even that string comes from (probably github repo name).
Or do I just copy in the .devcontainer directory into my project and build a container? Anyhow, maybe a few sentences in the README might help to get started.
@valankar Thank you for your issue!
You can use this repo as a template in the way you pointed out.
- Dev containers: Clone (or fork and rename) Repository in Container Volume
- point to this Github repo
- replace the files with my code
Thanks, I notice if I do this and create multiple containers, it ends up looking like this:
i.e it becomes difficult to know what source tree is in each container. Also you cannot tell in File -> Open Recent either.
I’m not sure what actions were taken or what went wrong. Could you please explain what the ideal outcome was, what steps you took, and what the actual result was?
I've made a screen capture. I'm not actually sure how I ended up with 2 python-uv containers in my screenshot. But here is an example of now trying to create 2 different containers. Only the first one is created, and trying another clone just ends up re-opening the first one.
https://youtu.be/wigVzIdr48A?si=OUcrKsoA28Tf7BmN
So basically I'm trying to figure out how to use this for multiple projects/source trees.
Thanks to the video you provided, I now have a clear understanding of what you want to achieve! I believe you can accomplish it by following these steps:Here's how you can do it, just like I did:
- Clone this repository.
- Rename the cloned directory from step 1 to python-uv.
- Open the renamed directory from step 2 in a DevContainer.
- Clone this repository again (for the second time).
- Rename the cloned directory from step 4 to python-uv.
- Open the renamed directory from step 5 in a DevContainer.
Ah I see, so clone before opening in a dev container. That works.
I'm glad the issue has been resolved! Is it okay to go ahead and close the issue now?
All good.