c0c0n3 / kitt4sme.live

On a mission to bring AI to the shop floor: https://kitt4sme.eu/
MIT License
1 stars 28 forks source link

upload the k4s adaptive questionnaire for SMEs #227

Closed vcutrona closed 1 year ago

vcutrona commented 1 year ago

This pull request changes the AQ deployment to include the adaptive questionnaire for SMEs defined in K4S. Tested locally with Docker Compose, using the following docker-compose.yml file:

version: '3.3'

services:

  db:
    image: postgres:15.2-alpine
    environment:
      POSTGRES_USER: "ada"
      POSTGRES_PASSWORD: "ada"
      POSTGRES_DB: "adaptive"
    restart: unless-stopped
    ports:
      - "5432:5432"

  backend:
    image: ghcr.io/idsia/adapquest:v1.6.3
    environment:
      MAGIC_API_KEY: "QWRhcHRpdmUgU3VydmV5"

      DB_DBMS: "postgresql"
      DB_HOSTNAME: "db"
      DB_PORT: "5432"
      DB_SCHEMA: "adaptive"
      DB_USERNAME: "ada"
      DB_PASSWORD: "ada"

      ADAPQUEST_CONTROLLER_ASSISTANT: "false"
      ADAPQUEST_CONTROLLER_CONSOLE: "true"
      ADAPQUEST_CONTROLLER_DASHBOARD: "false"
      ADAPQUEST_CONTROLLER_DEMO: "true"
      ADAPQUEST_CONTROLLER_EXPERIMENTS: "false"

      ADAPQUEST_KEYCLOAK_ROLE: "user"
      ADAPQUEST_KEYCLOAK_ADMIN: "admin"

      KEYCLOAK_ENABLED: "false"
      KEYCLOAK_REALM: "<realm>"
      KEYCLOAK_AUTH_SERVER_URL: "<url>"
      KEYCLOAK_RESOURCE: "<client-name>"
      KEYCLOAK_PRINCIPAL_ATTRIBUTE: "preferred_username"
    volumes:
      - ./demo-data/surveys:/adaptive/data/surveys
    restart: unless-stopped
    ports:
      - "8080:8080"

Binded volume ./demo-data/surveys refers to the folder deployment/plat-app-services/aq/demo-data/surveys, and it includes the committed XLSX file.