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 dipto install dip. - Perform
git cloneto clone the repository. - Rename
yourapp_dockerin docker-compose.yml to your project name. docker-compose buildto builddip shto login the container.- Perform
rails new .with your preferential options. - If needed, perform
bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 javato supress the warning. rm -rf vendorto remove vendor/ directory.exitto logoff from the container.
- Perform
git checkinto commit.dip provisionto setup database connections and envs.git checkinto commit the updated schema.dip minitestto perfom the initial test. 1-. addconfig.hosts << "localhost"andconfig.web_console.whitelisted_ips = '0.0.0.0/0'to config/environments/development.rbgit checkinto commit the change.dip rails sto start Rails.- Open
http://localhost:3000/on your browser to show the welcome page.