This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new abe5ede6 Add rake docker:bash
abe5ede6 is described below

commit abe5ede6377c03a9ce4df941faad7a8fec4b8f56
Author: Sebb <[email protected]>
AuthorDate: Tue Feb 4 00:10:34 2025 +0000

    Add rake docker:bash
---
 DOCKER.md | 1 +
 Rakefile  | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/DOCKER.md b/DOCKER.md
index cd5009de..4494f081 100644
--- a/DOCKER.md
+++ b/DOCKER.md
@@ -78,6 +78,7 @@ There is a sample template 
`whimsy/config/bash_aliases.template` to get you star
 
 To get a shell on the container, open a terminal console in the work directory
 and run `rake docker:exec`. The container must already be running.
+If you want to run bash in the bare container, run `rake docker:bash`
 
 Note: the initial run of the `rake docker:update` step will take a long time as
 it will need to download and install all of the Ubuntu packages,
diff --git a/Rakefile b/Rakefile
index 15035af5..a83442de 100644
--- a/Rakefile
+++ b/Rakefile
@@ -487,6 +487,10 @@ namespace :docker do
     sh "docker compose exec #{SERVICE} /bin/bash"
   end
 
+  task :bash do
+    sh "docker compose run --rm  --entrypoint /bin/bash #{SERVICE}"
+  end
+
   # cannot depend on :config
   # It runs in container, and needs to occur first
   task :scaffold do

Reply via email to