Sign inSign up

genzouw/rails

By genzouw

•Updated over 6 years ago

Image
1

1.3K

genzouw/rails repository overview

⁠Docker Image for "Ruby on Rails"

Docker Cloud build status Docker Pulls Docker Cloud Automated build

dockeri.co

⁠Description

Please contact me anytime if you have a problem or request! My information is posted at the bottom of this document.

⁠Requirements

⁠Installation

You do not need to install !

⁠Usage

⁠Create app
# 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/
⁠Install bundle
$ 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
⁠Launch
$ 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
⁠Other

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'

⁠Configuration

# hogehoge
$ export XXX=

⁠Relase Note

dateversionnote
2020-05-010.1first release.

⁠License

This software is released under the MIT License, see LICENSE.

⁠Help

Got a question ?

File a Github issue⁠, send an email to [email protected]⁠ or tweet to @genzouw⁠ on Twitter.

⁠Author Information

genzouw⁠

Tag summary

Content type

Image

Digest

Size

361.3 MB

Last updated

over 6 years ago

docker pull genzouw/rails