Recent Posts by Christopher Rigor

 
DevOps Support Manager, Asia-Pacific at Engine Yard. Organizer of @RubyConfPH. Speaker. Interested in automation, Kubernetes, Docker, Deis, ops, Ruby.
Find me on:

Using jQuery with Rails: How To

JavaScript allows you to update HTML without reloading the page. This makes the interaction with your website faster as you only need to upload some parts of the page instead of the whole page. jQuery is a popular JavaScript library used by a lot of developers regardless of the language or framework used.

Read More

Chef Wrapper Cookbook on EY Cloud

Chef wrapper cookbooks allow reuse of chef code without having to copy the whole recipe. The focus of this post is using this pattern on Engine Yard Cloud.

Read More

Encrypted Rails Secrets on Rails 5.1

Rails already provides a way to handle secrets. This has gotten better in 5.1 with the introduction of encrypted secrets. Find out how to use this feature and what you need to change on your current Rails application.

This post comprises of the following sections:
Secrets Without Encryption
Encrypted Secrets
Reading the Secrets
Advantages of Encrypted Secrets
Managing the Key
A Note on Secret Key Base

Read More

Kubernetes Tutorial: Running a Rails App in Kubernetes

As stated on their website, "Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications." Here we'll take a Rails app, create an image using a Dockerfile, and let Kubernetes manage the containers for us.

We will discuss the following:

  • Secrets
  • Deployments
  • Services
  • Running locally via Minikube
Read More

Using Docker for Rails in a Production Environment

Need to know the options for running Rails in production? Using Docker for Rails may be the way to go.

Running a Rails application in production requires installing Ruby and other packages. It's not difficult and configuration management system like Chef or Ansible makes it even easier. Here we're going to look at a different approach. By using Docker, installing Ruby and other packages happens on the build phase. In your production servers, you'll run your Rails application like any other Docker containers.

If you want to follow along, you need to have Docker installed on your local machine. I use docker-machine but there are other ways of getting Docker.
Read More

Subscribe Here!