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

How can I set "profiler.collector.ip" right while building images #5

Open
DevotedTangLiu opened this issue Dec 14, 2016 · 2 comments
Open
Labels

Comments

@DevotedTangLiu
Copy link

I am trying to build an docker images, which include my application container, besides, the pinpoint agent. But I'm not sure where I would run the collector, how can I config "profiler.collector.ip", makes that agent works everywhere, like, I only need to edit the docker-compose file , no need to enter the running application container and set that value.

Thanks.

@yous
Copy link
Owner

yous commented Jan 13, 2017

Hi, sorry for the late response. Currently I don't think there is a way to configure profiler.collector.ip easily... But if you have some commands to run, you can use alternate Dockerfile:

FROM yous/pinpoint:1.6.0

RUN <command>

and set docker-compose.yml to use that Dockerfile:

build:
  context: .
  dockerfile: Dockerfile-alternate

If you still have problems with this, then you may have to build images directly from pinpoint repository. They provides example docker-compose.yml, and this file was created with this commit. Following to these, you can set COLLECTOR_IP environment of pinpoint-agent.

@yous yous added the question label Jan 13, 2017
@yous
Copy link
Owner

yous commented Jan 13, 2017

Also this post (Chinese) tells how to build pinpoint images. I think pinpoint-agent will be built in similar way.

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

No branches or pull requests

2 participants