Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.15 KB

README.md

File metadata and controls

35 lines (21 loc) · 1.15 KB

rails-docker-examples

Examples for development environment for Rails application with Docker Compose and Kubernetes

Development with Docker Compose

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)

Development with Kubernetes

k8s/README.md

Multi-stage build example

Building assets files with multi-stage build here:

Dockerfile.production

Terraform example for GKE cluster

k8s/overlays/production has been tested with an environment created by this example: gke