Please contact me anytime if you have a problem or request! My information is posted at the bottom of this document.
You do not need to install !
# Rails version 5.2.4
$ docker run --rm \
-v $PWD:/app:cached \
--workdir /app \
genzouw/rails:5.2.4 \
rails new rails-app
$ cd rails-app/
$ sed -i "
/sqlite3/d;
/group :development, :test do/a \ \ gem 'sqlite3', '~> 1.3.6';
" Gemfile
$ docker run --rm \
-v $PWD:/app:cached \
--workdir /app \
-e BUNDLE_APP_CONFIG="/app/.bundle" \
-e BUNDLE_SET="path vendor/bundle" \
-e BUNDLE_DISABLE_SHARED_GEMS="true" \
-e BUNDLE_PATH="vendor/bundle" \
-e BUNDLE_JOBS="10" \
genzouw/rails:5.2.3 \
bin/bundle install
$ docker run -it --rm \
-v $PWD:/app:cached \
--workdir /app \
-e BUNDLE_APP_CONFIG="/app/.bundle" \
-e BUNDLE_SET="path vendor/bundle" \
-e BUNDLE_DISABLE_SHARED_GEMS="true" \
-e BUNDLE_PATH="vendor/bundle" \
-p 3000:3000 \
genzouw/rails:5.2.3 \
bin/rails server -b 0.0.0.0
I recommend that you set the following alias in ~/.*rc.
$ alias rails='docker run --rm -v $PWD:/app:cached --workdir /app genzouw/rails:5.2.4 rails'
# hogehoge
$ export XXX=
| date | version | note |
|---|---|---|
| 2020-05-01 | 0.1 | first release. |
This software is released under the MIT License, see LICENSE.
Got a question ?
File a Github issue, send an email to [email protected] or tweet to @genzouw on Twitter.
Content type
Image
Digest
Size
361.3 MB
Last updated
over 6 years ago
docker pull genzouw/rails