Commit 138c9a28 authored by Petra Bierleutgeb's avatar Petra Bierleutgeb 🐒

Update readme

parent 48fe1b69
Pipeline #41699370 passed with stage
in 2 minutes and 40 seconds
......@@ -27,11 +27,10 @@ different ways and for different tools. As such, this system does not deal with
## Running
### Infrastructure
The easiest way to bootstrap the required infrastructure (Kafka, Zookeeper and Jaeger) is to make use of the
provided `docker-compose.yml` that can be found in `/infra/docker-compose/`.
provided `docker-compose.yml` that can be found in `/infra/`.
Before we can start the containers we need to set the `KAFKA_ADVERTISED_HOST_NAME` in our `docker-compose.yml`. Open the file in your favorite editor and look for the following part:
......@@ -47,10 +46,10 @@ Before we can start the containers we need to set the `KAFKA_ADVERTISED_HOST_NAM
Replace `your_ip_here` with your actual ip address. Note: Using localhost or 127.0.0.1 WILL NOT work.
Now, open a terminal and navigate into `/infra/docker-compose/`. Inside the directory run
Now, open a terminal inside the project directory and run
```bash
docker-compose up
docker-compose -f infra/docker-compose.yml up
```
If all goes well, you should see quite a lot of output for Kafka, Zookeeper and Jaeger. Among other lines you should see
......@@ -75,7 +74,7 @@ docker rm ctd-jaeger
### demo-system
First we have to set some environment variables to tell the demo system about Kafka and Jaeger:
First we have to set some environment variables to tell the demo system about Kafka and Jaeger. Open a new terminal inside the project directory and run
```bash
export JAEGER_HOST=`docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ctd-jaeger`
......
......@@ -17,7 +17,7 @@ services:
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: your_ip_here
KAFKA_ADVERTISED_HOST_NAME: 192.168.8.108
KAFKA_CREATE_TOPICS: "ctd-order-events:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment