Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

question: How do I install on Ubuntu? #1220

Closed

Description

@johnandersen777
No description provided.

Activity

  1. johnandersen777 commented on Sep 8, 2021

    @johnandersen777
    Author
    # apt-get update -qyy
    # apt-get install -qyy python3 python3-pip
    # update-alternatives --install /usr/local/bin/python python /usr/bin/python3 40
    # python -m pip install --upgrade pip
    # python -m pip install --upgrade setuptools wheel
    # python -m pip install --upgrade dffml-service-http
    # dffml service http server --help
    usage: dffml service http server [-h] [-mc-config MC_CONFIG] [-mc-atomic] [-key KEY] [-cert CERT] [-port PORT] [-addr ADDR] [-upload-dir UPLOAD_DIR] [-static STATIC] [-js] [-insecure] [-cors-domains CORS_DOMAINS [CORS_DOMAINS ...]] [-allow-caching] [-models MODELS] [-sources SOURCES [SOURCES ...]]
                                     [-redirect REDIRECT [REDIRECT ...]] [-portfile PORTFILE] [-log LOG]
    HTTP server providing access to DFFML APIs
    optional arguments:
      -h, --help            show this help message and exit
      -mc-config MC_CONFIG  MultiComm config directory (default: None)
      -mc-atomic            No routes other than dataflows registered at startup (default: False)
      -key KEY              Path to key file (default: server.key)
      -cert CERT            Path to cert file (default: server.pem)
      -port PORT            Port to bind to (default: 8080)
      -addr ADDR            Address to bind to (default: 127.0.0.1)
      -upload-dir UPLOAD_DIR
                            Directory to store uploaded files in (default: None)
      -static STATIC        Directory to serve static content from (default: None)
      -js                   Serve JavaScript API file at /api.js (default: False)
      -insecure             Start without TLS encryption (default: False)
      -cors-domains CORS_DOMAINS [CORS_DOMAINS ...]
                            Domains to allow CORS for (see keys in defaults dict for aiohttp_cors.setup) (default: [])
      -allow-caching        Allow caching of HTTP responses (default: False)
      -models MODELS        Models configured on start (default: [])
      -sources SOURCES [SOURCES ...]
                            Sources configured on start (default: [])
      -redirect REDIRECT [REDIRECT ...]
                            list of METHOD SOURCE_PATH DESTINATION_PATH pairs, number of elements must be divisible by 3 (default: [])
      -portfile PORTFILE    File to write bound port to when starting. Helpful when port 0 was requeseted to bind to any free port (default: None)
      -log LOG              Logging level (default: 20)
  2. locked and limited conversation to collaborators on Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions