devika icon indicating copy to clipboard operation
devika copied to clipboard

Update Dockerfile and config.py to align with renamed sample.config.toml

Open nullbyte91 opened this issue 1 year ago • 2 comments

This commit updates the Dockerfile and config.py to reference the newly renamed configuration file (from config.toml to sample.config.toml).

nullbyte91 avatar Mar 28 '24 17:03 nullbyte91

For me I modify the docker-compose.yml to add a link to config.toml with volume

  devika-backend-engine:
    build:
      context: .
      dockerfile: devika.dockerfile
    expose:
      - 1337
    ports:
      - 1337:1337
    environment:
      - OLLAMA_HOST=http://IP_OLLAMA_SERVER:11434
    healthcheck:
      test: ["CMD-SHELL", "curl -f http://localhost:1337/ || exit 1"]
      interval: 5s
      timeout: 30s
      retries: 5
      start_period: 30s
    volumes:
      - /srv/docker-data/devika/config.toml:/home/nonroot/devika/config.toml
      - devika-backend-dbstore:/home/nonroot/devika/db
    networks:
      - devika-subnetwork

Guerdal avatar Mar 28 '24 18:03 Guerdal

and It's normal, https://github.com/stitionai/devika/pull/197 replace it by sample.config.toml. So you need to create config.toml before launch docker build. And my modification to docker-compose.yaml permit to modify the config whitout reconstruct the docker image

Guerdal avatar Mar 28 '24 19:03 Guerdal

@rohittp0 Yes. It make sense.

nullbyte91 avatar Mar 29 '24 03:03 nullbyte91