Examples for development environment for Rails application with Docker Compose and Kubernetes
The base image hibariya/rails-docker-examples-base
is made with Dockerfile.
# Setup containers and run `rails s`
docker-compose run --rm rails bin/setup
docker-compose up -d
# Add binstubs to $PATH
export PATH=$(pwd)/compose-bin:$PATH
# Run tests with a browser
rails test:system
# You can view/inspect the running browser via VNC (localhost:5900)
Building assets files with multi-stage build here:
k8s/overlays/production has been tested with an environment created by this example: gke