Skip to content

PUDAP/biologic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

biologic

Monorepo for the Biologic edge service.

What It Does

  • Runs the Biologic machine edge service.
  • Connects to NATS and translates commands into machine actions.
  • Communicates with the Biologic device over the network (IP).

Prerequisites

  • Docker and Docker Compose installed
  • Python 3.14+ and uv (for baremetal mode)
  • Biologic device reachable on the network

Environment Setup

From repo root:

cp edge/.env.example edge/.env

Edit edge/.env and configure:

  • MACHINE_ID
  • NATS_SERVERS
  • BIOLOGIC_IP

Run With Docker (Recommended)

All commands below are run from repo root.

Build and start:

docker compose -f edge/compose.yml up -d --build

View logs:

docker compose -f edge/compose.yml logs -f

Stop:

docker compose -f edge/compose.yml down

Run Baremetal (uv)

From repo root:

uv sync --all-packages
uv run --package biologic-edge python edge/main.py

Build and Push Image (GHCR)

Login:

echo $GITHUB_TOKEN | docker login ghcr.io -u USERNAME --password-stdin

Build:

docker compose -f edge/compose.yml build

Push:

docker push ghcr.io/PUDAP/biologic-edge:latest

Or with Compose:

docker compose -f edge/compose.yml push

Notes

  • Docker build context is workspace root (.. in edge/compose.yml).
  • Dockerfile path is edge/Dockerfile.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages