mirror of
https://github.com/hanzoai/compute.git
synced 2026-10-30 14:50:41 +00:00
salvage/visor-drop-allinone
A build enqueued without an explicit `dockerTarget` gets the LAST stage, and
the last stage was ALLINONE — which fails:
apt-get install -y mariadb-server … exit code 127
127 is command-not-found. ALLINONE sits on `guacd`, an alpine base with no
apt, so this stage cannot have built for as long as that base has been alpine.
Every default-target build of this repo has been failing on a stage nobody
ships.
It is dead by every measure: nothing in CI, compose, the chart or universe
references it, and the live deployment runs STANDARD. Its only mention
anywhere is the header comment of its own entrypoint script, removed here
with it.
It also bundled a MariaDB SERVER into the application image, which is the
opposite of the storage directive — SQLite by default, and if a server is
genuinely required then ONE shared instance for the ecosystem, never one per
app, still less one per container.
`guacd` goes too: it existed only as ALLINONE's base and nothing COPYs
--from=guacd.
STANDARD is now the last stage, so a build with no target picks the image we
actually ship. That removes the footgun rather than documenting it.
Hanzo Visor
Cloud operating-system management platform (Go + React).
Architecture
Hanzo Visor has two parts:
| Name | Description | Language | Source code |
|---|---|---|---|
| Frontend | Web UI | JavaScript + React | https://github.com/hanzoai/visor/tree/main/web |
| Backend | RESTful API + Beego | Go + Beego + Postgres | https://github.com/hanzoai/visor |
Installation
Hanzo Visor uses Hanzo IAM as the authentication system. Create an organization and an application for Visor in your IAM instance, then wire it via app.conf.
Necessary configuration
Get the code
git clone https://github.com/hanzoai/iam
git clone https://github.com/hanzoai/visor
Setup database
Visor stores users, nodes, and resource information in a Postgres database named visor (auto-created). The DB connection string is configured in conf/app.conf:
dataSourceName = postgres://user:pass@localhost:5432/visor
Configure IAM
After creating an organization and an application in Hanzo IAM, update clientID, clientSecret, iamOrganization, and iamApplication in app.conf.
Run
go run main.go
Open browser: http://localhost:16001/
Optional
RDP
Run guacd for RDP connections:
docker run --name guacd -d -p 4822:4822 guacamole/guacd
License
Languages
Go
99.9%