Skip to content

Commit

Permalink
cleanup alpine changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Apr 19, 2024
1 parent f03fb76 commit 5c8e349
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ different contents. If both are specified, `--force` takes precedence.

### Runtime Optimizations:

* `--alpine` - use [alpine](https://www.alpinelinux.org/) as base image
* `--alpine` - use [alpine](https://www.alpinelinux.org/) as base image (requires [Alpine <= 3.18 OR Rails >= 8.0](https://github.com/sparklemotion/sqlite3-ruby/issues/434))
* `--fullstaq` - use [fullstaq](https://fullstaqruby.org/) [images](https://github.com/evilmartians/fullstaq-ruby-docker) on [quay.io](https://quay.io/repository/evl.ms/fullstaq-ruby?tab=tags&tag=latest)
* `--jemalloc` - use [jemalloc](https://jemalloc.net/) memory allocator
* `--swap=n` - allocate swap space. See [falloc options](https://man7.org/linux/man-pages/man1/fallocate.1.html#OPTIONS) for suffixes
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace :test do
sh "bundle config set --local local.dockerfile-rails #{__dir__}"
sh "bundle add dockerfile-rails --group development " +
"--git https://github.com/rubys/dockerfile-rails.git"
sh "bin/rails generate dockerfile"
sh "bin/rails generate dockerfile --force"
cp "#{__dir__}/test/docker-entrypoint", "bin"
IO.write "config/routes.rb",
'Rails.application.routes.draw {get "/up", to: proc {[200, {}, ["ok"]]}}'
Expand All @@ -51,7 +51,7 @@ namespace :test do
sh "bundle config set --local local.dockerfile-rails #{__dir__}"
sh "bundle add dockerfile-rails --group development " +
"--git https://github.com/rubys/dockerfile-rails.git"
sh "bin/rails generate dockerfile --alpine"
sh "bin/rails generate dockerfile --alpine --force"
cp "#{__dir__}/test/docker-entrypoint", "bin"
IO.write "config/routes.rb",
'Rails.application.routes.draw {get "/up", to: proc {[200, {}, ["ok"]]}}'
Expand Down

0 comments on commit 5c8e349

Please sign in to comment.