Buying Time

Buying Time

I wanted to do that but I didn’t have time!“. Have you heard yourself say this before? I am certain everyone did at some point. We all wish we have the time to do the things we want. 24 hours is not enough for a day!

But think about other people whom you admire. Perhaps its someone who leads a successful business, or someone who produces amazing works of art. These are people who spent a lot of time practicing and honing their skills. How did they find time to do these things? Why am I not as skilled as them even though all of us had the same number of hours in a day? Continue Reading

Your Truth

Your Truth

You just received a message from a friend asking for a favor. This has already happened more times than you wanted. You feel anxious and uncomfortable but you just can’t refuse. You’re not the kind of person who disappoints and lets other people down, are you? Defeated, you give in to your friend’s request. You have failed again to speak your truth.

What is your truth?

You are always playing it safe. It’s ok to be honest on your feedback!“, a colleague said to me one day. I was a bit jarred. Is there anything wrong with that? “I like to keep everything in harmony as much as possible“, I thought to myself. Continue Reading

Chasing After the Wind

Chasing After the Wind

Regardless of your religious inclinations, or whether you believe in God or not, it is undeniable that the Bible contains many passages and teachings that are useful and practical. One such passage is from the book of Ecclesiastes in the Old Testament. In Chapter 4 it described something very profound that struck me. It is about how people keep chasing after the wind.

What does chasing after the wind mean? Have you tried doing it yourself? Perhaps not, because you know that you cannot see the wind. You cannot grasp it nor catch it. It always slips away from your hands. Since you cannot catch it at all, chasing it would be pointless. Continue Reading

How to run a Rails 6 application using Docker Compose

How to run a Rails 6 application using Docker Compose

In the previous article we learned how to create a Rails 6 Docker image and run it locally. While useful for demonstration purposes, it is not enough for a real-world web application. In addition to our main application code, there are other services that we also need, like a database, a queue system, storage and so on.

Docker Compose provides a way for us to describe how our entire application works using declarative code. Declarative code means that we specify the final state of our application, rather than specifying what steps are needed to create our application. This results in a simpler, more intuitive configuration. Continue Reading

How to build a Rails 6 application using Docker

How to build a Rails 6 application using Docker

In the Introduction to Docker article, we developed a good basic foundational knowledge about container technology. Now, we will take it one step further by creating and running a Rails 6 application exclusively using Docker. As of this writing, Rails 6 is the latest version of the Ruby on Rails web application framework.

Generating the Rails code

We learned previously that we can run Ruby code using Docker even without having Ruby in our local machine. We can also use the container’s shell and run commands directly in the container. Using these, let’s try to perform some commands in a container running Ruby 2.7: Continue Reading