HUB
Sign inSign up

whitesscott/pinmux

By whitesscott

•Updated 7 months ago

Image
0

1.2K

whitesscott/pinmux repository overview

Docker implementation of "Jetson Thor Series Modules Pinmux Template". The container can be run on Jetson or Host x86-64/amd64. It can be used to configure and create device tree source files for Thor.

┌─────────┬────────────────────────────────────────────────────────────────────────────────────────┐
│ Stage │ What happens │
├─────────┼────────────────────────────────────────────────────────────────────────────────────────┤ │ builder │ Installs Node 20, runs npm ci + vite build for frontend, npm ci --omit=dev for backend │
├─────────┼────────────────────────────────────────────────────────────────────────────────────────┤ │ runtime │ Ubuntu Noble + PostgreSQL 16 + Node 20 + nginx + supervisor │
└─────────┴────────────────────────────────────────────────────────────────────────────────────────┘

On first docker run, the entrypoint:

  1. Starts a temporary PostgreSQL instance
  2. Checks if the pinmux database exists
  3. If not: CREATE DATABASE → loads schema.sql → loads seed.sql (1,062 pins)
  4. Stops the temporary instance
  5. Hands off to supervisord, which manages all three services permanently

nginx on port 80 serves the Vite static bundle and proxies /api/* → Node.js on 3001.

To run container:

docker run --rm --runtime=nvidia --name pinmux \
  --ipc=host --cap-add=CAP_SYS_PTRACE --ulimit memlock=-1 --ulimit stack=67108864 \
  -p 8080:80 \
  -v "$HOME/.cache/pinmux-pgdata:/var/lib/postgresql" \
  whitesscott/pinmux:{arm64 or amd64}  # choose your host architecture as suffix.

# Then to access the UI browse to:
http://localhost:8080

Tag summary

Content type

Image

Digest

sha256:4dfacbeed…

Size

191.2 MB

Last updated

7 months ago

docker pull whitesscott/pinmux