Creating Container Spaces
You create Container Spaces using your preferred hosted development environment.
Dev Containers is an open specification for defining coding environments.
We used GitHub Codespaces to develop this approach. This approach should be general enough to work elsewhere, but contact us (support at pairspaces dot com) if you experience challenges using PairSpaces with your Dev Container.
gh secret set PS_SPACE_KEY --app codespaces --repos OWNER/REPO
Alternatively, you can use the GitHub UI:
PS_SPACE_KEY..devcontainer.json file.{
...,
"features": {
"ghcr.io/pairspaces/devcontainers/pairspaces": {}
},
"postAttachCommand": "/opt/pair/pair spaces create",
"remoteUser": "root",
...
}
After you create your Codespace, the Dev Container feature will complete in a few seconds in a separate terminal.
