Skip to content

Commit

Permalink
removing profile from docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
liseli committed Sep 20, 2024
1 parent 5e11473 commit 20150e9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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```

Expand All @@ -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```

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions init_ht_indexer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20150e9

Please sign in to comment.