Skip to content

simplify docker command from bundle exec rake - #323

Merged
xuan-cao-swi merged 1 commit into
mainfrom
simple-docker
Nov 17, 2026
Merged

xuan-cao-swi merged 1 commit into
mainfrom
simple-docker

Conversation

@xuan-cao-swi

Copy link
Copy Markdown
Contributor

Description

  1. bundle exec rake docker replaces docker_dev and docker_con.
  2. If the ruby_sw_apm_ubuntu_development container already exists, it starts it and opens a shell in it. Otherwise it runs docker compose run, which reuses the image if there is one and builds it if not.
  3. It no longer runs docker_down first, so it won't wipe an existing container.

Test (if applicable)

@xuan-cao-swi
xuan-cao-swi requested review from a team as code owners November 13, 2026 17:37
Copilot AI balanced review requested due to automatic review settings November 13, 2026 17:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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, and docker: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

Comment thread Rakefile Resolved

@cheempz cheempz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@xuan-cao-swi
xuan-cao-swi merged commit f35f396 into main Nov 17, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants