Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to Dockerfile(s) not considered during deployment #876

Closed
kainawroth opened this issue May 3, 2023 · 3 comments
Closed

Changes to Dockerfile(s) not considered during deployment #876

kainawroth opened this issue May 3, 2023 · 3 comments
Labels
question Further information is requested

Comments

@kainawroth
Copy link

Hi everyone,

I forked the OTel Demo repo to experiment with different instrumentations and exporters, but I'm struggling with getting my modified version deployed.

Example
I made changes to the Ad Service Dockerfile to replace the OTel Java agent with the Application Insights version:

image

But when I use docker compose up it always shows the image ghcr.io/open-telemetry/demo:1.4.0-adservice in Docker, no matter if I run it with or without the --no-build flag, and it doesn't consider any of the modifications I made (both files are missing):

image

What am I doing wrong? Any help is appreciated!

Best Regards,
Kai

@kainawroth kainawroth added the question Further information is requested label May 3, 2023
@julianocosta89
Copy link
Member

Hello Kai,

To build your own image, you can run:

docker compose build <SERVICE_NAME>

Or, if you want to build all of the services, you can run the same command without the service name.

The image will have the same name though. So you will still see ghcr.io/open-telemetry/demo as repository.

@julianocosta89
Copy link
Member

After built, you can use the:

docker compose up

To start the demo.

@julianocosta89
Copy link
Member

@kainawroth please feel free to re-open this issue if the problem persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants