Update instructions to spin dependent services (#920)

Signed-off-by: Emanuel Alves <emanuel.j.b.alves@gmail.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
This commit is contained in:
Emanuel Alves 2023-09-22 18:35:14 +01:00 committed by GitHub
parent 29847ce9a1
commit 6c5aa6011a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 21 deletions

View File

@ -102,13 +102,9 @@ jobs:
docker stop dapr_placement docker stop dapr_placement
cd dapr cd dapr
./dist/linux_amd64/release/placement & ./dist/linux_amd64/release/placement &
- name: Install local Kafka using docker-compose - name: Spin local environment
run: | run: |
docker-compose -f ./sdk-tests/deploy/local-test-kafka.yml up -d docker-compose -f ./sdk-tests/deploy/local-test.yml up -d mongo kafka
docker ps
- name: Install local Mongo database using docker-compose
run: |
docker-compose -f ./sdk-tests/deploy/local-test-mongo.yml up -d
docker ps docker ps
- name: Install local ToxiProxy to simulate connectivity issues to Dapr sidecar - name: Install local ToxiProxy to simulate connectivity issues to Dapr sidecar
run: | run: |

View File

@ -102,7 +102,7 @@ jobs:
pip3 install mechanical-markdown pip3 install mechanical-markdown
- name: Install Local mongo database using docker-compose - name: Install Local mongo database using docker-compose
run: | run: |
docker-compose -f ./sdk-tests/deploy/local-test-mongo.yml up -d docker-compose -f ./sdk-tests/deploy/local-test.yml up -d mongo
docker ps docker ps
- name: Clean up files - name: Clean up files
run: mvn clean run: mvn clean

View File

@ -241,17 +241,13 @@ Similarly, all of these need to be run for running the ITs either individually o
Run the following commands from the root of the repo to start all the docker containers that the tests depend on. Run the following commands from the root of the repo to start all the docker containers that the tests depend on.
```bash ```bash
docker-compose -f ./sdk-tests/deploy/local-test-kafka.yml up -d docker-compose -f ./sdk-tests/deploy/local-test.yml up -d
docker-compose -f ./sdk-tests/deploy/local-test-mongo.yml up -d
docker-compose -f ./sdk-tests/deploy/local-test-vault.yml up -d
``` ```
To stop the containers and services, run the following commands. To stop the containers and services, run the following commands.
```bash ```bash
docker-compose -f ./sdk-tests/deploy/local-test-kafka.yml down docker-compose -f ./sdk-tests/deploy/local-test.yml down
docker-compose -f ./sdk-tests/deploy/local-test-mongo.yml down
docker-compose -f ./sdk-tests/deploy/local-test-vault.yml down
``` ```

View File

@ -1,6 +0,0 @@
version: '2'
services:
mongo:
image: mongo
ports:
- "27017:27017"

View File

@ -1,4 +1,4 @@
version: '2' version: '3'
services: services:
zookeeper: zookeeper:
image: wurstmeister/zookeeper:latest image: wurstmeister/zookeeper:latest
@ -13,4 +13,12 @@ services:
environment: environment:
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1 KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
KAFKA_CREATE_TOPICS: "sample:1:1" KAFKA_CREATE_TOPICS: "sample:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
mongo:
image: mongo
ports:
- "27017:27017"
redis:
image: redis
ports:
- "6379:6379"