[PR #2099] [MERGED] Fix Docker runtime data bind mount #5437

Closed
opened 2026-10-22 04:16:19 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2099
Author: @cha1latte
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/docker-runtime-data-bind


📝 Commits (6)

  • a3c43e4 Fix Docker runtime data bind mount
  • 3d0e8fd Preserve Docker data volume by default
  • 04a98a1 Clarify Docker data migration override
  • 780dc96 Document Docker bind mount ownership risk
  • d7977fe Clarify Docker compose data docs
  • a70b8ea Document Docker legacy data root layout

📊 Changes

5 files changed (+42 additions, -3 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 CONTRIBUTING.md (+10 -1)
📝 README.md (+12 -0)
📝 docker-compose.yml (+1 -1)
📝 docs/developer/run-build.html (+18 -1)

📄 Description

Linked issue

No linked GitHub issue yet. This is from a reported refactor Docker migration parity bug where the remote runtime container could not see the expected app data folder.

Why this change

  • Docker Compose persists /data in a named Docker volume by default. That is safe for existing Docker users, but testers also need an intentional way to bind copied app data into the runtime for migration parity checks.

What changed

  • Kept the Compose-managed marinara-server-data volume as the default Compose /data mount.
  • Added MARINARA_HOST_DATA_DIR as an override for binding a copied app data directory into the container.
  • Documented how earlier .docker-marinara-data/ test users can keep using that folder explicitly with MARINARA_HOST_DATA_DIR.
  • Updated README, contributing docs, and developer docs to explain the Docker data path and migration-parity workflow.
  • Ignored .docker-marinara-data/ in git.

Refactor impact

Primary owner:

Remote runtime / Docker runtime configuration.

Impact areas reviewed:

  • Docker Compose runtime data mount
  • Remote runtime MARINARA_DATA_DIR=/data contract
  • README, CONTRIBUTING, and developer run/build docs

Boundary notes:

  • No engine, feature UI, shared API, Tauri command, or Rust storage migration code changed.
  • The fix is a runtime configuration contract change: Compose preserves the existing Docker data volume by default while allowing an explicit host bind mount for migration parity testing.

Pressure points touched:

  • Docker remote runtime data persistence and migration parity.
  • No ModeSurface, GameSurface, command registration, or import modules touched.

Validation

  • Focused proof or matching lane command passes locally
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Codex focused proof: node scratch\docker-data-volume-repro.mjs passed after confirming Compose preserves the Compose-managed marinara-server-data default and supports MARINARA_HOST_DATA_DIR.
  • Codex default config proof: docker compose config resolved /data to the Compose-managed marinara-server-data volume.
  • Codex override proof: MARINARA_HOST_DATA_DIR=C:\tmp\marinara-docker-data docker compose config resolved /data to the host bind mount C:\tmp\marinara-docker-data.
  • Codex docs check: pnpm check:docs passed.
  • Codex pre-PR gate: pnpm check passed.
  • Bunny review: passed before PR open; later Bunny comments about volume compatibility, project-scoped volume wording, and live-data/root-write risk were addressed by keeping the Compose-managed volume default, documenting migration parity against copied app data, warning about root-owned host files, and documenting the .docker-marinara-data/ compatibility override.
  • Manual gap: actual migration with the reporter's copied app data folder was not run in this environment. Keep the PR draft until someone points MARINARA_HOST_DATA_DIR at a throwaway copy of real app data and confirms the migration path behaves as expected.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • This is a Docker runtime compatibility/configuration fix and documentation update, not an in-app discoverable feature.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

Docs updated: README, CONTRIBUTING, and developer run/build docs now describe the default Compose-managed Docker data volume, .docker-marinara-data/ compatibility override, root-owned-file risk, and migration-parity override.

UI evidence

N/A. No visible UI changed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/2099 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 6/3/2026 **Status:** ✅ Merged **Merged:** 6/3/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/docker-runtime-data-bind` --- ### 📝 Commits (6) - [`a3c43e4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a3c43e44adbd2a55d16e8746b8e480f1b9e47043) Fix Docker runtime data bind mount - [`3d0e8fd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3d0e8fd47a2e683899c764669365340a3abcf04f) Preserve Docker data volume by default - [`04a98a1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/04a98a13e65b3112f5062431cfd0cb9651de1ad6) Clarify Docker data migration override - [`780dc96`](https://github.com/Pasta-Devs/Marinara-Engine/commit/780dc967d4782f42a408b56716d200b88062fd74) Document Docker bind mount ownership risk - [`d7977fe`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d7977fe1fed0480325499772dcb2b9d99a6ccf20) Clarify Docker compose data docs - [`a70b8ea`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a70b8ead9aa218f142049b44116a50c86c74b453) Document Docker legacy data root layout ### 📊 Changes **5 files changed** (+42 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `CONTRIBUTING.md` (+10 -1) 📝 `README.md` (+12 -0) 📝 `docker-compose.yml` (+1 -1) 📝 `docs/developer/run-build.html` (+18 -1) </details> ### 📄 Description <!-- Target branch: `refactor`. Change the base to `refactor` before submitting unless a maintainer explicitly asked for another base. --> <!-- Keep all checkboxes unchecked until a human has actually verified them. --> ## Linked issue No linked GitHub issue yet. This is from a reported refactor Docker migration parity bug where the remote runtime container could not see the expected app data folder. ## Why this change - Docker Compose persists `/data` in a named Docker volume by default. That is safe for existing Docker users, but testers also need an intentional way to bind copied app data into the runtime for migration parity checks. ## What changed - Kept the Compose-managed `marinara-server-data` volume as the default Compose `/data` mount. - Added `MARINARA_HOST_DATA_DIR` as an override for binding a copied app data directory into the container. - Documented how earlier `.docker-marinara-data/` test users can keep using that folder explicitly with `MARINARA_HOST_DATA_DIR`. - Updated README, contributing docs, and developer docs to explain the Docker data path and migration-parity workflow. - Ignored `.docker-marinara-data/` in git. ## Refactor impact Primary owner: Remote runtime / Docker runtime configuration. Impact areas reviewed: - Docker Compose runtime data mount - Remote runtime `MARINARA_DATA_DIR=/data` contract - README, CONTRIBUTING, and developer run/build docs Boundary notes: - No engine, feature UI, shared API, Tauri command, or Rust storage migration code changed. - The fix is a runtime configuration contract change: Compose preserves the existing Docker data volume by default while allowing an explicit host bind mount for migration parity testing. Pressure points touched: - Docker remote runtime data persistence and migration parity. - No ModeSurface, GameSurface, command registration, or import modules touched. ## Validation <!-- Check only what you personally ran or manually verified. Treat unchecked items as explicit TODOs. --> - [ ] Focused proof or matching lane command passes locally - [ ] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - Codex focused proof: `node scratch\docker-data-volume-repro.mjs` passed after confirming Compose preserves the Compose-managed `marinara-server-data` default and supports `MARINARA_HOST_DATA_DIR`. - Codex default config proof: `docker compose config` resolved `/data` to the Compose-managed `marinara-server-data` volume. - Codex override proof: `MARINARA_HOST_DATA_DIR=C:\tmp\marinara-docker-data docker compose config` resolved `/data` to the host bind mount `C:\tmp\marinara-docker-data`. - Codex docs check: `pnpm check:docs` passed. - Codex pre-PR gate: `pnpm check` passed. - Bunny review: passed before PR open; later Bunny comments about volume compatibility, project-scoped volume wording, and live-data/root-write risk were addressed by keeping the Compose-managed volume default, documenting migration parity against copied app data, warning about root-owned host files, and documenting the `.docker-marinara-data/` compatibility override. - Manual gap: actual migration with the reporter's copied app data folder was not run in this environment. Keep the PR draft until someone points `MARINARA_HOST_DATA_DIR` at a throwaway copy of real app data and confirms the migration path behaves as expected. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [ ] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - This is a Docker runtime compatibility/configuration fix and documentation update, not an in-app discoverable feature. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [ ] Confirmed this PR does not restore old staging/package-workspace/release claims Docs updated: README, CONTRIBUTING, and developer run/build docs now describe the default Compose-managed Docker data volume, `.docker-marinara-data/` compatibility override, root-owned-file risk, and migration-parity override. ## UI evidence N/A. No visible UI changed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:16:19 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5437
No description provided.