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

Issues when creating docker image from source code #2428

Closed
vivekbny opened this Issue Feb 15, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@vivekbny
Copy link

vivekbny commented Feb 15, 2017

Hi,

I am trying to convert the source code of the prometheus in to the docker image. when i try to build it with the
Step1: docker build -t (name) . command, i am getting the below error
Stp3 : COPY prometheus /bin/prometheus
lstat prometheus: no such file or directory

Step 2: In order to overcome this issue, i am placing the docker file outside prometheus directory.
/root/prometheus

Now i am getting this below error
Stp4 : COPY promtool /bin/promtool
lstat promtool: no such file or directory

Please advise

-Regards,
Vivek

@sdurrheimer

This comment has been minimized.

Copy link
Member

sdurrheimer commented Feb 15, 2017

The docker image doesn't self-compile the project, you need to compile it before building the docker image.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Jul 14, 2017

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 23, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.