Skip to content

Avoid bind-mounting to allow building with a remote docker engine#95

Merged
SuperQ merged 1 commit intoprometheus:masterfrom
hairyhenderson:allow-remote-docker-builds-94
Nov 29, 2018
Merged

Avoid bind-mounting to allow building with a remote docker engine#95
SuperQ merged 1 commit intoprometheus:masterfrom
hairyhenderson:allow-remote-docker-builds-94

Conversation

@hairyhenderson
Copy link
Copy Markdown
Contributor

Fixes #94

This works when running against a remote Docker engine (for example, in CircleCI), but this is slower, since it adds the step of recursively copying the current working directory into the build container, rather than being bind-mounted in.

Signed-off-by: Dave Henderson David.Henderson@qlik.com

Signed-off-by: Dave Henderson <David.Henderson@qlik.com>
@pgier
Copy link
Copy Markdown
Contributor

pgier commented Nov 28, 2018

LGTM. This also has the benefit of creating the .build output directory owned by the current user instead of root.

@SuperQ
Copy link
Copy Markdown
Member

SuperQ commented Nov 28, 2018

Should we make this a config option?

Copy link
Copy Markdown
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, it might be interesting to make this optional, but for now I think the speed lost is worth the ability to run in remote docker.

@SuperQ SuperQ merged commit 00e2d2b into prometheus:master Nov 29, 2018
@hairyhenderson hairyhenderson deleted the allow-remote-docker-builds-94 branch November 29, 2018 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants