Skip to content

Add versioned system dir, /opt/dockside.img staging, and rsync entrypoint upgrade#30

Open
struanb wants to merge 3 commits intomainfrom
claude/versioned-system-rsync-P3IUo
Open

Add versioned system dir, /opt/dockside.img staging, and rsync entrypoint upgrade#30
struanb wants to merge 3 commits intomainfrom
claude/versioned-system-rsync-P3IUo

Conversation

@struanb
Copy link
Copy Markdown
Contributor

@struanb struanb commented Mar 15, 2026

  • Dockerfile: build /opt/dockside content at /opt/dockside.img (staging area)
    rather than directly in the named volume path. A final RUN moves the
    populated /opt/dockside tree to /opt/dockside.img, leaving /opt/dockside
    empty for the named volume. This allows the entrypoint rsync to bring
    the volume up to date on every container start, enabling single-step upgrades.

  • Dockerfile (system stage): convert system/latest/ from a plain directory
    to a versioned directory named after DOCKSIDE_VERSION (e.g. system/3.2.0/),
    with system/latest as a symlink — matching the pattern used for IDEs.
    DOCKSIDE_VERSION is a new build ARG auto-detected from git tags in build.sh.

  • entrypoint.sh: add rsync step at container start that syncs
    /opt/dockside.img/ → /opt/dockside/ using --archive without --delete for
    ide/ (preserving old IDE versions that running devtainers may still use),
    and --archive --delete for bin/, system/, and all other non-IDE paths.

  • launch.sh: resolve IDE_PATH and IIDE_PATH via busybox readlink -f before
    use, pinning running devtainers to a specific versioned directory and
    making them unaffected by a subsequent latest symlink update during upgrade.

https://claude.ai/code/session_011v8HBRuJBorZTbQLXY7xKA

claude and others added 3 commits March 15, 2026 11:52
…oint upgrade

- Dockerfile: build /opt/dockside content at /opt/dockside.img (staging area)
  rather than directly in the named volume path. A final RUN moves the
  populated /opt/dockside tree to /opt/dockside.img, leaving /opt/dockside
  empty for the named volume. This allows the entrypoint rsync to bring
  the volume up to date on every container start, enabling single-step upgrades.

- Dockerfile (system stage): convert system/latest/ from a plain directory
  to a versioned directory named after DOCKSIDE_VERSION (e.g. system/3.2.0/),
  with system/latest as a symlink — matching the pattern used for IDEs.
  DOCKSIDE_VERSION is a new build ARG auto-detected from git tags in build.sh.

- entrypoint.sh: add rsync step at container start that syncs
  /opt/dockside.img/ → /opt/dockside/ using --archive without --delete for
  ide/ (preserving old IDE versions that running devtainers may still use),
  and --archive --delete for bin/, system/, and all other non-IDE paths.

- launch.sh: resolve IDE_PATH and IIDE_PATH via busybox readlink -f before
  use, pinning running devtainers to a specific versioned directory and
  making them unaffected by a subsequent latest symlink update during upgrade.

https://claude.ai/code/session_011v8HBRuJBorZTbQLXY7xKA
rsync is unnecessary here: cp -a handles symlinks, permissions, and timestamps
identically, and is always available from coreutils with no extra package needed.

The cp -a loop mirrors the pattern already used in the (now defunct) upgrade
script: iterate over version dirs, skip if already present, copy if new.
The latest symlinks and bin/ are always overwritten as they are small and safe.

https://claude.ai/code/session_011v8HBRuJBorZTbQLXY7xKA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants