feat(skills): codify Phase 2 deploy-time hotfixes into installer + service modules #126
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_skills!126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_mik_phase2_install"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bundles the manual fixups previously documented in §4.5 / §10 / §11 of
docs/ops/DEPLOYMENT_NU_HERO_OS.md(tracker home#185) so a fresh herodemo-style deploy reaches working state without manualhero_proc action.setordocker runinvocations.Changes
Installers (
tools/modules/installers/installers.nu)install_basenow also installslibreoffice-{core,impress,writer,calc}for at-click PDF preview — closes home#178install_chrome— Google's apt repo +google-chrome-stable; the snap chromium fails on TF Grid flists — closes home#177install_onnxruntime— installs ONNX Runtime 1.23.2 →/usr/local/onnxruntimeAND 1.24.4 →/usr/local/onnxruntime-1.24side-by-side, so hero_embedder (rc.11 → 1.23.2) and hero_voice (rc.12 → 1.24.x) can each link the version theirort-syswants — closes home#162; partial home#173install_docker_btrfs— apt-installsdocker.io, configures/etc/docker/daemon.jsonwithdata-root=/data/docker+storage-driver=btrfs, starts dockerd viasystemctlORnohupfallback for TF Grid VMs — closes home#181install_coreinvokes all three afterinstall_baseBootstrap (
tools/install.sh)HERO_ROOTDIRenv override onfind_rootdir(), so non-interactive deploys (TF Grid provisioning, CI) can skip the macOS external-disk prompt and the default$HOME/heropick — closes home#164Service env wiring
service_embedder.nu— addsORT_LIB_LOCATION=/usr/local/onnxruntime/lib+LD_LIBRARY_PATH+EMBEDDER_MODELS=$HOME/hero/var/embedder/modelsto thehero_embedderdaction — closes home#166 for embedderservice_voice.nu— addsORT_LIB_LOCATION=/usr/local/onnxruntime-1.24/lib+LD_LIBRARY_PATH+ORT_PREFER_DYNAMIC_LINK=1to bothhero_voice_serverandhero_voice_uiactions; withoutORT_PREFER_DYNAMIC_LINKthe static-link fallback fails at runtime — closes home#166 for voice; deploy-side home#170service_office.nu— forwardsOO_UPSTREAM_BASEenv to thehero_office_uiaction (browser-sideOO_SERVER_URLis HTTPS-public, but the reverse proxy needs the internal HTTP target; the split is essential — see PR #3 on hero_office)packages.nu— uncommentsservice_voiceinservices_extra(was disabled before ONNX 1.24 was sorted out)New module:
tools/modules/services/service_onlyoffice.nuManages the OnlyOffice Document Server Docker container that hero_office depends on. Standalone (not hero_proc-supervised — OO ships as a Docker image,
restart-policy=unless-stoppedkeeps it alive).install—docker pull onlyoffice/documentserverstart—docker runwithJWT_ENABLED+JWT_SECRET+ waits for/healthcheck→true(~5 min timeout)stop/status/restartONLYOFFICE_BIND_ADDR(default10.1.2.2:8088),ONLYOFFICE_JWT_SECRET,ONLYOFFICE_IMAGECloses home#174 deploy-side.
New
service_completeaggregator (tools/modules/services/packages.nu)service_install_allonly builds binaries; per-servicestartdoes thehero_proc action.set/service.set/service.startdance.service_completeglues them together:service_install_allstarton every runtime service in dependency orderSkips
service_lib_rhai(library, no runtime). Re-exported fromservices/mod.nu.Closes home#167.
Validation
Every changed module loads cleanly under
nu -c "use ..."(parser-only — runtime validation needs a TF Grid VM).Tracker
home#185
Signed-off-by: mik-tf
Squash-merged to
developmentas7c823d1.7c823d1Feature branch
development_mik_phase2_installdeleted.Closed home issues: #162, #164, #166, #167, #177, #178, #181. Partials (deploy-side): #170, #173, #174.
hero_proc service startreturns 'service not found' #167Pull request closed