Skip to content

yuya-tajima/rails-docker-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails Docker builder

The script for building a Rails Docker environment.

Prerequisites

  • FreeBSD-based OS, i.e. macOS
  • Docker
  • Docker Compose
  • Zsh

Usage

Build a image

$ ./build.sh [<rails_version> [mysql|postgresql [<ruby_version>]]]

rails_version

You can choose a rails version from the following url.
However, version 5.0 or higher is strongly recommended.

All versions of rails

mysql|postgresql

You can choose between 'mysql' or 'postgresql'.

The latest version of the image will be built.

see more information

ruby_version

You can choose a ruby version from the following url.

Ruby

Default execution

The following two commands will run the same operation

$ ./build.sh
$ ./build.sh 5.2.2 mysql 2.5

Remove unused images and cache resources

If you have been creating another Docker environment, do not run it casually!

$ ./clean.sh

References

License

Rails Docker builder is released under the MIT License, see MIT-LICENSE.txt.

About

Build a Rails Docker environment easily

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published