HUB
Sign inSign up
admin logo

netgrif/admin

By netgrif

•Updated 6 days ago

NETGRIF Application Engine admin: cluster nodes, zones, processes, users, auth and configuration.

Image
Developer tools
Content management system
0

184

netgrif/admin repository overview

⁠Netgrif Admin

Administration and management service for the NETGRIF Application Engine (NAE) — the platform for building and running process-driven applications in the Petriflow⁠ language.

The image contains the admin backend (Java 21 / Spring Boot) with REST and gRPC APIs, plus the admin web console served at /.

⁠Features

  • Cluster management — registry and health of all platform nodes (engines, workers, gateways, search), topology, node proxies
  • Zones — logical grouping of engines, gateways and search nodes
  • Processes — upload, deploy and version Petriflow models, manage applications and process roles
  • Users & security — realms, users, groups, roles, auth providers (basic, LDAP, Kerberos, OIDC, FIDO2), MFA
  • Configuration — Spring Cloud Config server (/config), application and frontend application properties
  • Operations — scripts, caches, logs, Prometheus metrics, OpenTelemetry tracing

⁠Requirements

  • MongoDB 8 running as a replica set (rs0)
  • Redis 7 for HTTP sessions
  • Engines, gateways and search nodes of the same platform namespace connect to this service over REST and gRPC

⁠Quick start

docker pull netgrif/admin:1.1.0

Minimal compose.yaml:

services:
  admin:
    image: netgrif/admin:1.1.0
    ports:
      - "8888:8888"   # HTTP
      - "9999:9999"   # gRPC
    environment:
      NETGRIF_ADMIN_NAMESPACE: netgrif
      NETGRIF_ADMIN_HOST: admin
      NETGRIF_ADMIN_DATA_MONGODB_URI: mongodb://mongo:27017/netgrif_admin?replicaSet=rs0
      NETGRIF_ADMIN_DATA_REDIS_HOST: redis
      NETGRIF_ADMIN_SETUP_ADMIN_PASSWORD: change-me
    volumes:
      - ./admin/storage:/opt/netgrif/admin/storage
      - ./admin/log:/opt/netgrif/admin/log
    depends_on:
      mongo:
        condition: service_healthy
      redis:
        condition: service_healthy

  mongo:
    image: mongo:8.0.3
    command: [ "--replSet", "rs0", "--bind_ip_all" ]
    healthcheck:
      test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'mongo:27017'}]}) }" | mongosh --port 27017 --quiet
      interval: 5s
      retries: 10

  redis:
    image: redis:7.4.1
    healthcheck:
      test: [ "CMD", "redis-cli", "ping" ]
      interval: 5s
      retries: 10

The container runs as non-root UID/GID 10001, so prepare the mounted folders accordingly:

mkdir -p admin/storage admin/log && sudo chown -R 10001:10001 admin

On the first start the service creates the Admin realm and the admin user. If NETGRIF_ADMIN_SETUP_ADMIN_PASSWORD is not set, a random password is generated and printed to the container log.

⁠Ports and endpoints

PortProtocolDescription
8888HTTPREST API, admin console, /config
9999gRPCplatform node API
  • Health: GET /manage/health
  • Metrics: GET /manage/metric (Prometheus)
  • OpenAPI: /v3/api-docs, Swagger UI: /swagger-ui/index.html

⁠Configuration

All settings are environment variables. Dotted property names are accepted too, e.g. netgrif.admin.setup.zones[0].name.

VariableDefaultDescription
NETGRIF_ADMIN_NAMESPACE—required, platform namespace
NETGRIF_ADMIN_HOSTlocalhosthostname other nodes use to reach this container
NETGRIF_ADMIN_REST_PORT8888HTTP listen port and advertised port
NETGRIF_ADMIN_PROTOCOLhttphttp or https
NETGRIF_ADMIN_DATA_MONGODB_URImongodb://localhost:27017MongoDB connection string (replica set)
NETGRIF_ADMIN_DATA_MONGODB_DATABASEnetgrif_admindatabase name
NETGRIF_ADMIN_DATA_REDIS_HOSTlocalhostRedis host
NETGRIF_ADMIN_DATA_REDIS_PORT6379Redis port
NETGRIF_ADMIN_DATA_REDIS_PASSWORD—Redis password
NETGRIF_ADMIN_SETUP_ADMIN_PASSWORDrandompassword of the first admin user
OTEL_SDK_DISABLEDtrueenable OpenTelemetry export

⁠Volumes

PathContent
/opt/netgrif/admin/storageuploaded process models
/opt/netgrif/admin/modulesoptional extension modules (JAR)
/opt/netgrif/admin/loglog files

⁠License

NETGRIF Community License 2.0: free for development, testing, evaluation, education, and other non-production use. Production use requires a commercial license from NETGRIF, s.r.o. See netgrif.com/license⁠.

Tag summary
Recent tags
Content type
Image
Digest
sha256:3ca45b514…
Size
233.2 MB
Last updated
6 days ago
docker pull netgrif/admin:1.1.1