Repository navigation
simplify docker command from bundle exec rake - #323
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The Docker container reuse check can silently open a container bound to another checkout, causing edits and tests to run against the wrong source tree.
1 open issue
What changed in this PR
Simplifies the gem’s Docker-based development workflow by consolidating container creation and resumption into bundle exec rake docker, preserving existing containers between sessions.
Changes:
- Reuses an existing development container, or creates one using an existing image or a new build.
- Moves build, cleanup, and test tasks under
docker:build,docker:down, anddocker:tests. - Updates contributor examples and the Compose file’s task-name comment.
| File | Description |
|---|---|
test/docker-compose.yml |
Updates the comment to reference the new docker task; configuration is unchanged. |
Rakefile |
Consolidates development-container tasks, adds an existence check, and namespaces supporting tasks. |
CONTRIBUTING.md |
Updates development and test command examples to the new task names. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
bundle exec rake dockerreplacesdocker_devanddocker_con.uby_sw_apm_ubuntu_developmentcontainer already exists, it starts it and opens a shell in it. Otherwise it runsdocker compose run, which reuses the image if there is one and builds it if not.Test (if applicable)