Skip to content

Makefile: set BIND_DIR to "." by default #49957

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

Merged
merged 1 commit into from
May 27, 2025
Merged

Conversation

thaJeztah
Copy link
Member

Currently, it's needed to set BIND_DIR=. when starting the dev-container in order to bind-mount the current source-code into the container. Omitting that option only bind-mounts the "bundles" directory and copies the source into the image before starting.

While there are some cases where (e.g.) a remote server is used for development, and bind-mounting is not possible, those scenarios should be considered more advanced, so let's make the common scenario easier to use.

With this patch, running make shell should build and run the dev-container with the source-code mounted.

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

Currently, it's needed to set `BIND_DIR=.` when starting the dev-container
in order to bind-mount the current source-code into the container. Omitting
that option only bind-mounts the "bundles" directory and copies the source
into the image before starting.

While there are some cases where (e.g.) a remote server is used for development,
and bind-mounting is not possible, those scenarios should be considered more
advanced, so let's make the common scenario easier to use.

With this patch, running `make shell` should build and run the dev-container
with the source-code mounted.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

Looks like this one is still flaky (but perhaps waiting for one of the PRs to be merged);

=== Failed
=== FAIL: libnetwork/networkdb TestNetworkDBCRUDTableEntries (7.20s)
    networkdb_test.go:308: Entry existence verification test failed for node1(64d5aa386efc)

@thaJeztah thaJeztah added status/2-code-review area/testing kind/refactor PR's that refactor, or clean-up code labels May 12, 2025
@thaJeztah thaJeztah marked this pull request as ready for review May 20, 2025 08:03
@thaJeztah thaJeztah requested a review from vvoland May 27, 2025 09:02
@vvoland vvoland merged commit f5f3be4 into moby:master May 27, 2025
150 checks passed
@vvoland vvoland added this to the 28.2.0 milestone May 27, 2025
@thaJeztah thaJeztah deleted the bind_dir_auto branch May 27, 2025 13:36
@thaJeztah
Copy link
Member Author

Note to self; there's probably some contributing docs that need updating as well 🤔 - I'll try to open a PR for that if I think of it 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing kind/refactor PR's that refactor, or clean-up code status/2-code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy