Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve test environment setup #46

Open
eddiebrissow opened this issue Nov 13, 2024 · 0 comments
Open

Improve test environment setup #46

eddiebrissow opened this issue Nov 13, 2024 · 0 comments

Comments

@eddiebrissow
Copy link
Collaborator

eddiebrissow commented Nov 13, 2024

Improve containers, add Redis and MongoDB dependencies.
Integration tests:
das-query-engine test environment
https://github.com/singnet/das-query-engine/blob/master/compose_das_alpine.yaml

Unit Tests:

As a suggestion, create a docker-compose to wrap the environment and dependencies.
quick eg:

services:
  redis:
    image: redis:latest
    container_name: redis
    
  mongo:
    image: mongo:latest
    container_name: mongo
    environment:
      MONGO_INITDB_ROOT_USERNAME: dbadmin
      MONGO_INITDB_ROOT_PASSWORD: dassecret

  das-attention-broker:
    build:
      context: docker
    container_name: das-attention-broker-build
    depends_on:
      - redis
      - mongo
    volumes:
      - .:/opt/das-attention-broker 
    command: ../scripts/bazel_test.sh

    working_dir: /opt/das-attention-broker/src  

To run
docker compose up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant