Sample repo for rails + docker + docker-compose + dip, with respect to Evilmartians' configs
- macOS: 11.2.3(Big Sur)
- Docker for Mac
- Docker: 20.10.5
- Docker-compose: 1.28.5
- (Add Dockerhub account)
- Rails: 6.1.3.1
- Ruby: 3.0.1
- dip: 7.0.1
- Git: 2.31.1
- Use git-flow
- Perform
gem install dip
to install dip. - Perform
git clone
to clone the repository. - Rename
yourapp_docker
in docker-compose.yml to your project name. docker-compose build
to builddip sh
to login the container.- Perform
rails new .
with your preferential options. - If needed, perform
bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java
to supress the warning. rm -rf vendor
to remove vendor/ directory.exit
to logoff from the container.
- Perform
git checkin
to commit.dip provision
to setup database connections and envs.git checkin
to commit the updated schema.dip minitest
to perfom the initial test. 1-. addconfig.hosts << "localhost"
andconfig.web_console.whitelisted_ips = '0.0.0.0/0'
to config/environments/development.rbgit checkin
to commit the change.dip rails s
to start Rails.- Open
http://localhost:3000/
on your browser to show the welcome page.