You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Simplify Docker images to use package-installed script paths #564
Part of #561 (Make DocumentDB usable from package install)
Problem
Docker images currently COPY scripts from the build context into the image at build time, duplicating what the gateway package already installs. This creates two different code paths -- the Docker path and the package path -- that can drift apart. It also means the Docker image does not exercise the same file layout that package users get.
Solution
Since the gateway .deb now ships scripts at /usr/share/documentdb/scripts/ and sample data at /usr/share/documentdb/sample-data/ (#563), Docker images should use those package-installed paths directly.
Changes
Dockerfile_documentdb_local (main Docker image):
Remove COPY scripts/ lines
Use /usr/share/documentdb/scripts/ as WORKDIR and entrypoint
Add jq to package install (runtime dependency)
emulator_entrypoint.sh (Docker entrypoint):
Add dual-path resolution: check /usr/share/documentdb/scripts first, fall back to legacy /home/documentdb/gateway/scripts for backward compatibility
Use mktemp for runtime config copy (instead of predictable /tmp path)
Proper trap cleanup for temp files
Test Dockerfiles (DEB + RHEL-8 + RHEL-9 gateway tests):
Same migration: remove COPY lines, use package paths
Add jq install where needed
test-gateway-install-entrypoint.sh:
Update script path to /usr/share/documentdb/scripts/
Benefit
Single source of truth for script paths. Docker images and bare-metal installs use identical file layouts. Any script change in the repo automatically flows through packages to both Docker and bare-metal users.
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
👋 @guanzhousongmicrosoft — this issue has been assigned for 15 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
Status: dual-path script resolution, the mktemp config copy and the EXIT trap are on main. The image still COPYs scripts into the legacy path, because the packages don't yet ship every script the entrypoint sources (start_oss_server.sh, utils.sh, preload_libraries.sh, ...). That depends on #563. Moving this to Backlog, and I removed the stale merged label.
👋 @guanzhousongmicrosoft — this issue has been assigned for 23 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
Activity
sthapa commentedon May 18, 2026
Looking at making this change
documentdb-triage-tool commentedon Jun 2, 2026
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
sthapa commentedon Jun 6, 2026
yes, still working on it
documentdb-triage-tool commentedon Jun 20, 2026
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
documentdb-triage-tool commentedon Jul 5, 2026
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
documentdb-triage-tool commentedon Jul 20, 2026
👋 @guanzhousongmicrosoft — this issue has been assigned for 15 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
documentdb-triage-tool commentedon Aug 15, 2026
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
documentdb-triage-tool commentedon Aug 29, 2026
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
documentdb-triage-tool commentedon Sep 13, 2026
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
documentdb-triage-tool commentedon Sep 27, 2026
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
guanzhousongmicrosoft commentedon Oct 5, 2026
Status: dual-path script resolution, the
mktempconfig copy and the EXIT trap are on main. The image stillCOPYs scripts into the legacy path, because the packages don't yet ship every script the entrypoint sources (start_oss_server.sh,utils.sh,preload_libraries.sh, ...). That depends on #563. Moving this to Backlog, and I removed the stalemergedlabel.documentdb-triage-tool commentedon Oct 28, 2026
👋 @guanzhousongmicrosoft — this issue has been assigned for 23 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.
documentdb-triage-tool commentedon Nov 11, 2026
👋 @guanzhousongmicrosoft — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.