-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
Description
Hi, and thanks for Kubedock.
I had the idea it might be possible to run devcontainers against Kubernetes with it. This would be really great because it gives a smoother experience than other tools with emulation at the kubernetes level.
I had to:
- Avoid anything trying to build the container through Kubedock (though would be really cool to have that implemented via e.g. Kaniko!)
- Prebuild the container with
devcontainer build - Create an override-devcontainer.json that just changes the image to the one that's already built
- Launch the devcontainer with
devcontainer up --workspace-folder . --override-config override-devcontainer.json - Launch vscode with DOCKER_HOST
- Prebuild the container with
- Add some missing support to kubedock
- Pretend to have implemented docker api version 1.35 and implement
exec --workdir - Implement handling of
exec --env - Introduce a fake
Mountsentry fordocker inspect. It didn't matter greatly that volume mounts aren't supported as long as I faked the one in the output ofdocker inspectthat it was expecting. I wonder how difficult it would be to support these kinds of mounts with PVCs more properly.
- Pretend to have implemented docker api version 1.35 and implement
I'm not getting the /workspaces/ copied across though. Did I misinterpret how that works? I was expecting kubedock to copy over the source as part of an init container step, but that doesn't seem to be happening here.
Thanks,
Dan.
Reactions are currently unavailable