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

Add BAZEL_BUILD_DIRECTORY option #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ChandrahasJR
Copy link

It is often useful to limit the Docker build context to a specific directory to reduce the number of files sent to the daemon and speed up builds.

Add a BAZEL_BUILD_DIRECTORY option to specify the directory to build the Docker image in, which does not have to be identical to the workspace root.

It is often useful to limit the Docker build context to a specific
directory to reduce the number of files sent to the daemon and speed
up builds.

Add a BAZEL_BUILD_DIRECTORY option to specify the directory to build
the Docker image in, which does not have to be identical to the
workspace root.
@ChandrahasJR
Copy link
Author

@mishas Can you help review this change ? I had a few more changes that i was interested in pushing upstream.

@@ -121,6 +123,7 @@ def from_config(cls):
dockerfile=config.get("DAZEL_DOCKERFILE", DEFAULT_LOCAL_DOCKERFILE),
repository=config.get("DAZEL_REPOSITORY", DEFAULT_REMOTE_REPOSITORY),
directory=config.get("DAZEL_DIRECTORY", DEFAULT_DIRECTORY),
build_directory=config.get("DAZEL_BUILD_DIRECTORY", DEFAULT_BUILD_DIRECTORY),
Copy link
Collaborator

Choose a reason for hiding this comment

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

To make this backwards compatible, can you please make build_directory fallback to directory rather than than to the default?

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