Skip to content

Commit

Permalink
chore: updates to fix stability of integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdebarros committed Dec 9, 2022
1 parent 326545b commit 63e9a38
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ jobs:
# docker-compose build
## Lets pull only the Services needed for the Integration Test
docker-compose pull mysql kafka
docker-compose pull mysql kafka init-kafka
## Lets startup only the Services needed for the Integration Test
docker-compose up -d mysql kafka
docker-compose up -d mysql kafka init-kafka
## Check straight away to see if any containers have exited
docker-compose ps
Expand Down
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,25 @@ services:
start_period: 40s
interval: 30s

init-kafka:
container_name: cl_init_kafka
networks:
- cl-mojaloop-net
image: docker.io/bitnami/kafka:3.2
depends_on:
- kafka
entrypoint: [ '/bin/sh', '-c' ]
command: |
"
# blocks until kafka is reachable
kafka-topics.sh --bootstrap-server kafka:29092 --list
echo -e 'Creating kafka topics'
kafka-topics.sh --bootstrap-server kafka:29092 --create --if-not-exists --topic topic-sdk-outbound-command-events --replication-factor 1 --partitions 1
kafka-topics.sh --bootstrap-server kafka:29092 --create --if-not-exists --topic topic-sdk-outbound-domain-events --replication-factor 1 --partitions 1
echo -e 'Successfully created the following topics:'
kafka-topics.sh --bootstrap-server kafka:29092 --list
"
objstore:
image: mongo:latest
container_name: cl_objstore
Expand Down

0 comments on commit 63e9a38

Please sign in to comment.