Skip to content

Examples for development environment with Docker Compose and Kubernetes

Notifications You must be signed in to change notification settings

esminc/rails-docker-examples

Repository files navigation

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

About

Examples for development environment with Docker Compose and Kubernetes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published