Sign in
agent:

DagKnows app setup instructions for docker

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

The DagKnows app. This repo contains a minimal set of compose files for running a DagKnows app anywhere.

  1. 1

    Requirements

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    You will need a server with the following specs: * min 16GB RAM

    * min 100GB disk

    * min 2 CPUs * Ubuntu (20.04+)


    You need to have the following packages on the VM. Most of the Linux distributions have it by default. If not, please install. * git * python (3.10+)


    The application will be served on port 443. Therefore port 443 needs to be accessible through the firewall.


    1
  2. 2

    Setup your Environment (dkapp setup)

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    2
    1. 2.1

      Checkout this dkapp repo.

      There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
      git clone https://github.com/dagknows/dkapp.git
      copied
      2.1
    2. 2.2

      Install required packages (dkapp setup)

      There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.


      cd dkapp sudo apt update && sudo apt upgrade -y sudo apt-get install -y make make prepare
      copied
      2.2
    3. 2.3

      Restart Docker

      There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.


      sudo systemctl restart docker
      copied
      2.3
  3. 3

    Setup .env params

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    In your .env file set values for the last 7 params:


    DAGKNOWS_URL=https://<YOUR_PUBLIC_IP_HERE>

    MAIL_DEFAULT_SENDER=info@dagknows.com

    MAIL_USERNAME=

    MAIL_SERVER=

    MAIL_PASSWORD=

    OPENAI_API_KEY=

    OPENAI_ORG_ID=

    3
  4. 4

    Encrypt the file containing all the secrets

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    The following command encrypts all the secrets such as passwords and API keys kept in .env file using gpg utility. It will ask you for a passphrase during encryption and decryption.

    make encrypt
    copied
    4
  5. 5

    (Optionally) Add ubuntu user to docker group

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    sudo usermod -aG docker ubuntu newgrp docker # To refresh group membership and not do a shell session restart
    copied
    5
  6. 6

    Run your DB

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    make updb dblogs
    copied
    6
  7. 7

    Run you App

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.


    make up logs
    copied
    7
  8. 8

    Integration with community.dagknows.com

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    You can now integrate your DagKnows instance with the https://community.dagknows.com. With this integration, you can download the runbooks available on https://community.dagknows.com. You simply need to search in your own instance for the runbooks and the search results will include all the community runbooks as well that have a special icon next to them called "community".


    To do this integration, follow the steps:

    1. Request a token from DagKnows for this integration.
    2. Then in your local instance of DagKnows, click "Integrations" icon in the left navbar.
    3. Click on "Other Tools" tab. You will notice an integration card for "DagKnows Community"
    4. Click on the toggle button to enable integration and edit settings. A pop-up will appear.
    5. Provide the URL: https://community.dagknows.com
    6. Provide the token you got from DagKnows
    7. Turn on "Enable Download" button so you can download runbooks locally.
    8. In case you want to upload your own runbooks to community and contribute then turn on "Enable Upload" button
    9. If you want to use DagKnows AI for generating runbooks, instead of your own AI engine, turn on "Use GenAI". Note that the runbook you created with this option will be first created on community and then downloaded locally. If you care about privacy, turn this option off.
    10. Save options
    11. Reload this page and ensure that all your settings are still there for this integration and integration is turned on.




    8
  9. 9

    Download a special runbook from community.

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    Search for "Adding, Deleting, Listing DagKnows Proxy credentials or key-value pairs" in your local instance. A community runbook will show up in in the results. Click on the download icon next to it and fetch it locally. You will need this one to add key/value pairs or credentials in your vault.

    9