Sign inSign up

collinwebdesigns/fastapi-dls

By collinwebdesigns

•Updated about 1 year ago

Minimal Delegated License Service (DLS).

Image
51

100K+

collinwebdesigns/fastapi-dls repository overview

⁠FastAPI-DLS

Git Repo and README⁠, Backup Mirror⁠

There are also packages for Debian, Ubuntu and ArchLinux available. See complete Readme for more details⁠.

⁠Example Compose File

version: '3.9'

x-dls-variables: &dls-variables
  TZ: Europe/Berlin  # REQUIRED, set your timezone correctly on fastapi-dls AND YOUR CLIENTS !!!
  DLS_URL: localhost # REQUIRED, change to your ip or hostname
  DLS_PORT: 443
  LEASE_EXPIRE_DAYS: 90
  DATABASE: sqlite:////app/database/db.sqlite
  DEBUG: false

services:
  dls:
    image: collinwebdesigns/fastapi-dls:latest
    restart: always
    environment:
      <<: *dls-variables
    ports:
      - "443:443"  # internal port always is 443, so if you want to use 9443 instead, use "9443:443" and set "DLS_PORT: 9443"
    volumes:
      - /opt/docker/fastapi-dls/cert:/app/cert
      - db:/app/database

volumes:
  db:

⁠Setup (Client)

The token file has to be copied! It's not enough to C&P file contents, because there can be special characters.

⁠Linux

curl --insecure -X GET https://<dls-hostname-or-ip>/client-token -o /etc/nvidia/ClientConfigToken/client_configuration_token.tok
service nvidia-gridd restart
nvidia-smi -q | grep "License"

⁠Windows

Download file and place it into C:\Program Files\NVIDIA Corporation\vGPU Licensing\ClientConfigToken. Now restart NvContainerLocalSystem service.

Tag summary

Content type

Image

Digest

sha256:bd62fc80b…

Size

289.4 MB

Last updated

about 1 year ago

docker pull collinwebdesigns/fastapi-dls