Skip to content

docker

Test Redis with Generated Data

Recently I need to test out Redis integration with a Ruby on Rails application. I wanted to test how fast Redis is with 1GB of data.

Instead of manually generating dummy data, I recalled using the Faker library a couple of years ago during my time as a full-stack developer.

React and Ruby Docker Development Environment

Background

Lately I am working on a project to dockerize an e2e application with React as the front end and Ruby on Rails as the backend. I would like to set up a docker-compose file so that:

  1. user can bring up the e2e environment with a single command
  2. the environment supports hot reload of code for both the React and Ruby on Rails parts
  3. it can be served as a testing environment for e2e test
  4. developers can run manual test in a local environment

Dev Container

Background

Since my first job after college graduation, I have been looking for a way to setup a portable development environment for the following reasons:

  1. to use it on multiple machines
  2. to share it among the team with teammates who doesn't have server/platform/os experience
  3. to standardize os, programming language and library version, etc
  4. to save myself the headache of rebuilding everything from scratch