|
|
1 month ago | |
|---|---|---|
| .. | ||
| Dockerfile | 1 month ago | |
| README.md | 1 month ago | |
| entrypoint.sh | 1 month ago | |
| run-tests.sh | 1 month ago | |
Runs smartbotic-database + smartbotic-vectorapi from release .debs in a
Debian 13 container, so the web UI can be developed against a real backend.
Why this exists: the Void dev host cannot build the stack natively any more.
Void moved to protobuf 35, which removed google/protobuf/map_field_inl.h; the
database's generated protos include it, so libsmartbotic-db-client no longer
compiles or links there. Debian 13 pins the versions the code expects.
# 1. put the .debs here (server from dist/debian13, DB + client from the deb repo)
mkdir -p debs && cp ../../dist/debian13/smartbotic-vectorapi_*_amd64.deb \
"$DEB_REPO_DIR"/dist/smartbotic-database_2.11.3-1_amd64.deb \
"$DEB_REPO_DIR"/dist/libsmartbotic-db-client_2.11.3-1_amd64.deb debs/
# 2. build and run; the admin key is whatever you seed here
docker build -t svapi-devstack .
docker run -d --name svapi-dev -p 8080:8080 -e SMARTBOTIC_VECTORAPI_KEY=dev svapi-devstack
# 3. the Vite dev server already proxies /api and /ui to localhost:8080
cd ../../webui && npm run dev # http://localhost:3000
docker logs svapi-dev shows both services. The container has no systemd, so the
entrypoint starts the database, waits for :9004, then execs the API; systemctl
is a no-op shim purely so the packages' postinst scripts configure cleanly.