Add VSCode devcontainer configuration #209
Yeah, if we can make this seemless, I definitely think it should be an "OS tab/option" in the dev setup docs.
So, the tweak above worked. Onto new issues!
Git pull/push with SSH remotes doesn't work inside the container because the docker image lacks SSH. Fixable with
The more annoying (but less critical) thing I've run into is that GPG commit signing doesn't work. Like SSH, GPG is not installed in the image (easily fixable like above). Once it's there, it still doesn't work — the
Supposedly, this should work as of v118 of the remote-containers extension, but there's no documentation. However, another issue identifies a control to test against. When I try to gpg from inside the "try a sample" node container, I can see my keyring and a socket, and signing works fine:
My current hunch is that maybe the image needs to contain GPG already when it boots or the VSCode remote-containers extension doesn't try to set up forwarding.
Per the docs, we can directly specify an image in devcontainer.json: https://code.visualstudio.com/docs/remote/devcontainerjson-reference