A bathroom sink Docker-Containerized Rails setup.
Stack
- Ruby 3.2.1
- Rails 7.0.4
- sqlite
- Stimulus/Turbo
- RSpec/FactoryBot
Docker Implementation: rails/docked
Prerequisites: Just Docker! (ruby & rails not needed)
Setup a new rails app:
git clone [email protected]:dvantuyl/moxi-utws.git new_app_dir
cd new_app_dir
d/setup
then
d/rails s
Rails command d/rails s
, d/rails db:migrate
, ...
Bundle command d/bundle install
, d/bundle config
, ...
Rspec command d/rspec spec
Run any shell command in the container
Access the container's bash shell environment
Note: all d/
commands will reset the owner of the application files from the docker container root. This sporadically causes a sudo root access request [sudo] password for user: