From 20150e9768cfcab1ea2e2141adaf052b26570245 Mon Sep 17 00:00:00 2001 From: Lianet Sepulveda Torres Date: Fri, 20 Sep 2024 17:34:24 -0400 Subject: [PATCH] removing profile from docker-compose --- README.md | 16 ++++++++-------- docker-compose.yml | 4 ++-- init_ht_indexer.sh | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index fcc4897..37b30ee 100644 --- a/README.md +++ b/README.md @@ -82,15 +82,15 @@ In your workdir: 1. Retriever service - `docker compose --profile retriever up document_retriever -d` + `docker compose up document_retriever -d` 2. Generator service - `docker compose --profile generator up document_generator -d` + `docker compose up document_generator -d` 3. Indexer service - `docker compose --profile indexer up document_indexer -d` + `docker compose up document_indexer -d` If you want to run the application in your local environment and outside the docker container, you should follow the steps mentioned in the section [How to set up your python environment](#project-set-up-local-environment) @@ -255,7 +255,7 @@ docker compose exec document_retriever python document_retriever_service/run_ret * **Generator service** ``` -docker compose --profile generator up document_generator -d +docker compose up document_generator -d ``` This container will automatically start the script `python document_generator/document_generator_service.py` that will @@ -264,7 +264,7 @@ be retrieving the documents from the retriever_queue and will be published a new * **Indexer service** ``` -docker compose --profile indexer up document_indexer -d +docker compose up document_indexer -d ``` This container will automatically start the script `python document_indexer_service/document_indexer_service.py` that @@ -310,13 +310,13 @@ In the working directory, * Run document_retriever_service container and test it -```docker compose --profile retriever up document_retriever -d``` +```docker compose up document_retriever -d``` ```docker compose exec document_retriever pytest document_retriever_service catalog_metadata ht_utils ``` * Run document_generator_service container and test it -```docker compose --profile generator up document_generator -d``` +```docker compose up document_generator -d``` ```docker compose exec document_generator pytest document_generator ht_document ht_queue_service ht_utils``` @@ -328,7 +328,7 @@ starting the container. export SOLR_USER=your_solr_username export SOLR_PASSWORD=your_solr_password -```docker compose --profile indexer up document_indexer -d``` +```docker compose up document_indexer -d``` ```docker compose exec document_indexer pytest document_indexer_service ht_indexer_api ht_queue_service``` diff --git a/docker-compose.yml b/docker-compose.yml index 7bcba39..c896b40 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -55,7 +55,7 @@ services: ZK_HOST: zoo1:2181 SOLR_OPTS: -XX:-UseLargePages SOLR_USER: solr - SOLR_PASSWORD: solrRocks + SOLR_PASSWORD: 'solrRocks' depends_on: zoo1: condition: service_healthy @@ -144,7 +144,7 @@ services: QUEUE_PASS: guest QUEUE_USER: guest SOLR_USER: solr - SOLR_PASSWORD: solrRocks + SOLR_PASSWORD: 'solrRocks' command: [ "python", "document_indexer_service/document_indexer_service.py", "--solr_indexing_api", "http://solr-lss-dev:8983/solr/#/core-x/" ] rabbitmq: container_name: rabbitmq diff --git a/init_ht_indexer.sh b/init_ht_indexer.sh index fc4e9db..b53b096 100755 --- a/init_ht_indexer.sh +++ b/init_ht_indexer.sh @@ -5,13 +5,13 @@ echo "🚢 Build docker images" docker build -t document_generator . echo "🚢 Run document_retriever" -docker compose retriever up document_retriever -d +docker compose up document_retriever -d echo "🌎 Run document_retriever test" docker compose exec document_retriever pytest document_retriever_service catalog_metadata ht_utils echo "🚢 Run document_generator" -docker compose generator up document_generator -d +docker compose up document_generator -d echo "🌎 Run document_generator test" docker compose exec document_generator pytest document_generator ht_document ht_queue_service ht_utils