From e06f194abb0590756f8097dca0a10416a94cd374 Mon Sep 17 00:00:00 2001 From: Vasi Vasireddy <41936996+vasireddy99@users.noreply.github.com> Date: Tue, 7 Nov 2023 12:11:43 -0800 Subject: [PATCH] Modify Root path in examples (#2449) * Modify Root path in examples * No Extra slash --- docs/developers/docker-demo.md | 6 +++--- examples/docker/docker-compose.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/developers/docker-demo.md b/docs/developers/docker-demo.md index 16b6ef17b..3eb639194 100644 --- a/docs/developers/docker-demo.md +++ b/docs/developers/docker-demo.md @@ -29,7 +29,7 @@ If you haven't setup your AWS Credential profile yet, please follow the [instruc docker run --rm -p 4317:4317 -p 55680:55680 -p 8889:8888 \ -e AWS_REGION=us-west-2 \ -e AWS_PROFILE=default \ - -v ~/.aws:/root/.aws \ + -v ~/.aws:/home/aoc/.aws \ -v "${PWD}/examples/docker/config-test.yaml":/otel-local-config.yaml \ --name awscollector public.ecr.aws/aws-observability/aws-otel-collector:latest \ --config otel-local-config.yaml; @@ -52,7 +52,7 @@ If you haven't setup your AWS Credential profile yet, please follow the [instruc #### Run ADOT Collector with Sample App in Docker Compose 1. Checkout `aws-otel-collector` source code, and open the ```docker-compose.yaml``` under ```examples``` folder. -Please make sure you have the right aws credential path (eg, `~/.aws:/root/.aws`) and the collector config file (eg, `../config.yaml:/etc/otel-agent-config.yaml`) set. +Please make sure you have the right aws credential path (eg, `~/.aws:/home/aoc/.aws`) and the collector config file (eg, `../config.yaml:/etc/otel-agent-config.yaml`) set. You can also directly use your AWS credential key by setting up these environment variables ```AWS_ACCESS_KEY_ID```, ```AWS_SECRET_ACCESS_KEY``` and ```AWS_REGION``` in the config. The region is where the data will be sent to. ```# Agent aws-otel-collector: @@ -64,7 +64,7 @@ Please make sure you have the right aws credential path (eg, `~/.aws:/root/.aws` - AWS_REGION= volumes: - ../config.yaml:/etc/otel-agent-config.yaml // use default config - - ~/.aws:/root/.aws + - ~/.aws:/home/aoc/.aws ``` 2. Once you have the ```docker-compose.yaml``` file setup and saved, run the following make command. ``` diff --git a/examples/docker/docker-compose.yaml b/examples/docker/docker-compose.yaml index f59e77f32..2aa871462 100644 --- a/examples/docker/docker-compose.yaml +++ b/examples/docker/docker-compose.yaml @@ -24,7 +24,7 @@ services: volumes: - ./config-test.yaml:/etc/otel-agent-config.yaml - - ~/.aws:/root/.aws + - ~/.aws:/home/aoc/.aws ports: - "1777:1777" # pprof extension - "55679:55679" # zpages extension