aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2024-03-07 09:37:16 +0000
committerNat Lasseter <user@4574.co.uk>2024-03-07 09:37:16 +0000
commit27ec2ed7d9b091e4d2199632403c7da3182e0bd8 (patch)
treedd57ef712a9be16cee90aa7025735eaa704de812
parent5999769e7aba46f31149360dc285a18b00b3437b (diff)
Added DrumpedalsHEADmaster
-rw-r--r--Readme.textile18
-rwxr-xr-xdrum1
2 files changed, 15 insertions, 4 deletions
diff --git a/Readme.textile b/Readme.textile
index 23bb3f0..b33db46 100644
--- a/Readme.textile
+++ b/Readme.textile
@@ -4,7 +4,7 @@ p. This is a TERRIBLE alternative to RVM, that uses docker, because why not. You
h2. Example
-bc.. cd example
+bc. cd example
drum bass
drum kick
drum roll -- -p80:80
@@ -14,22 +14,32 @@ h2. Bass Drums
p. Just a ruby image of some form. By default, ruby:alpine.
-bc.. drum bass # ruby:alpine
+bc. drum bass # ruby:alpine
drum bass slim # Just a tag, ruby:slim
drum bass jruby: # Just an image, jruby:latest
drum bass ruby:2.6 # Image and tag, ruby:2.6
h2. Kick Drums
-p. A Kick Drum is a Bass Drum with your gems installed.
+p. A Kick Drum is a Bass Drum with your gems and drum pedal installed.
bc. drum kick
+h3. Drum Pedal
+
+p. A Drumpedal file is a Dockerfile excerpt which gets executed right before your gems are installed.
+
+bc. cat >Drumpedal <<EOT
+RUN apk update
+RUN apk upgrade
+RUN apk add build-base sqlite
+EOT
+
h2. Drum Rolls
p. This beats on the Kick Drum with your current directory mounted as a volume. For dev.
-bc.. drum roll
+bc. drum roll
drum roll -- -p80:80
h2. Snare Drums
diff --git a/drum b/drum
index bf68158..f9b7739 100755
--- a/drum
+++ b/drum
@@ -177,6 +177,7 @@ case COMMAND
puts "Building Kick Drum: #{kickdrum}" if OPTIONS.noop
Tempfile.open("drum-tmp-dockerfile", Dir.pwd) do |f|
f.puts "FROM #{DRUMKIT.bassdrum}"
+ f.puts File.read("Drumpedal") if File.exist?("Drumpedal")
f.puts "WORKDIR /opt"
f.puts "COPY Gemfile* ./"
f.puts "RUN [\"bundle\", \"install\"]"