Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
area:workflowDeveloper workflow, commands, rules, skillseffort:largeMore than 4 hours or multi-sessionfeatureNew feature or request
Description
Context
devc-remote.sh assumes the remote host is fully set up: devcontainer image available, repos cloned, init-workspace.sh run. This makes first-time use on a new remote (e.g. ksb-meatgrinder) a manual multi-step process.
Proposal
Add devc-remote.sh --bootstrap <ssh-host> that performs one-time remote setup:
1. Interactive first-run setup
On first bootstrap (no config file exists yet), prompt the user:
No devc-remote config found on ksb-meatgrinder.
Where should projects be cloned? [~/Projects]:
Creating ~/.config/devc-remote/config.yaml on ksb-meatgrinder...
- Prompt for
projects_dirwith sensible default (~/Projects) - Write config, print its path so user knows where to edit later:
Config written to ~/.config/devc-remote/config.yaml — edit to customize. --yesflag skips prompt, uses defaults
2. Remote config file
~/.config/devc-remote/config.yaml on the remote:
projects_dir: ~/Projects # where repos get cloned
devcontainer_repo: vig-os/devcontainer # which repo to build the base image from
devcontainer_path: ~/Projects/devcontainer # resolved path
image_tag: dev # tag used by build.sh
registry: ghcr.io/vig-os/devcontainer- Created with user input (or defaults with
--yes) on first--bootstrap - User can edit afterwards to change paths, registry, etc.
- Subsequent
devc-remotecommands read this config
3. GHCR auth forwarding
Forward local container registry credentials to the remote:
- Copy
~/.config/containers/auth.json(podman) or~/.docker/config.jsonto remote - Or use a scoped GHCR token via env var (
GHCR_TOKEN) - Needed so the remote can pull base images or fallback layers
4. Build devcontainer image locally on remote
- Clone
vig-os/devcontainertoconfig.devcontainer_path - Run
scripts/build.sh→ produces localghcr.io/vig-os/devcontainer:dev - All downstream project repos use this cached image (no registry pull needed)
5. Re-run behavior
--bootstrap on an already-bootstrapped host:
- Reads existing config (doesn't overwrite, doesn't re-prompt)
git pullin devcontainer repo- Rebuilds image (picks up changes)
- Prints:
Config: ~/.config/devc-remote/config.yaml (existing, not modified)
Acceptance criteria
- First run prompts for
projects_dirwith default, mentions config file path -
--yesskips prompt, uses defaults - Config file is human-editable, controls
projects_dirand image settings - GHCR auth forwarded from local to remote
- Devcontainer image built locally on remote
- Re-running bootstrap reads existing config without re-prompting
- Tests for config creation and re-run idempotency
Metadata
Metadata
Assignees
Labels
area:workflowDeveloper workflow, commands, rules, skillseffort:largeMore than 4 hours or multi-sessionfeatureNew feature or request
Activity
test(remote): add failing tests for --bootstrap flag and bootstrap flow
feat(remote): add --bootstrap for one-time remote host setup with con…
c-vigo commentedon Jul 8, 2026
Closing as part of an agreed backlog cleanup (with @gerchowl). The remote-devcontainer /
devc-remote/ Tailscale initiative predates the Nix + Claude-native migration (#625) and has had no activity since Feb–Mar 2026. If remote provisioning is wanted again it will be re-planned from scratch after the devkit rename (#781). Reopen/refile if revived.