Fix devcontainer reliability and enable one-click full-stack desktop GUI launch#21
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR delivers two connected improvements:
What Changed
Devcontainer reliability
Updated
.devcontainer/devcontainer.json/workspaces/${localWorkspaceFolderBasename}for Codespaces compatibility.ghcr.io/devcontainers/features/docker-outside-of-docker:1.ms-python.python,ms-python.vscode-pylance,ms-azuretools.vscode-docker).postCreateCommandruns viabash .devcontainer/post_create.sh.Updated
.devcontainer/Dockerfilepython-is-python3,sudo,lsof,net-tools).libgl1,libegl1,libxkbcommon-x11-0,libdbus-1-3,xauth).ldconfigafter liboqs install.Reworked
.devcontainer/post_create.shrun_as_roothelper for root/sudo execution).aptandapk) for broader compatibility..venvbootstrap and Python dependency install fromrequirements.txt.MOHAWK_SKIP_LIBOQS_BUILD=1MOHAWK_SKIP_PY_DEPS=1Full-stack GUI launch wiring
Updated
mohawk_gui/main_window.pyQStatusBarbefore tab construction / refresh logic.MOHAWK_GUI_SERVICE_URLMOHAWK_WORKER_SERVICE_URLUpdated
launch.pylaunch_desktop_gui()helper.MOHAWK_SKIP_DESKTOP_GUI=1when calling compose (prevents duplicate GUI starts),Updated
launch.shPyQt6, ensuring GUI dependencies are installed in one-click flows.Updated
docker-compose.ymlmohawk-desktop-guiservice that waits for backend health and launches desktop GUI whenDISPLAYis available.MOHAWK_SKIP_DESKTOP_GUI.Updated
docker-compose.dev.ymlmohawk-gui,mohawk-worker, andmohawk-desktop-guifor full-stack parity.worker_securehost mapping from8003:8000to8005:8000to avoid port collision.Validation Performed
Static and syntax validation
python3 -m py_compile launch.py mohawk_gui/main_window.py mohawk_gui/main.pysucceeds.bash -n .devcontainer/post_create.shsucceeds..devcontainer/devcontainer.jsonsucceeds.Devcontainer post-create smoke test
MOHAWK_SKIP_LIBOQS_BUILD=1 MOHAWK_SKIP_PY_DEPS=1 bash .devcontainer/post_create.shsucceeds.Environment cleanup
Full functional validation (inference + model flows)
127.0.0.1:8003and127.0.0.1:8004.python test_user_functions.py./api/models),/api/models/load),/api/inference/chat, 3/3 requests passed).Notes
DISPLAY/X11).Documentation Update (2026-07-11)
Additional docs commit pushed to this PR:
17c1080.Updated:
README.mdQUICKSTART.mdDOCKER_SETUP.mdINSTALL.md(new)SETUP.md(new)CHANGELOG.mdThis adds clear install/setup instructions for launcher, Docker, native, and devcontainer flows, plus explicit model-select/chat-inference validation commands.