Dockerfile - Entrypoint vs CMD

Recently, I was working on opentelemetry and needed to customize its Docker image to meet our application requirements. Specifically, I needed to support a writable directory to mount rotating certificates for mTLS connections. The official OpenTelemetry Docker image uses FROM scratch, which results in a non-writable directory. It had been a while since I last worked with Dockerfiles, and I recently faced a stupid issue that costed me a couple of hours....

June 14, 2024 · 4 min read · Yogesh Jain

How Webhook Works?

A few years ago, my colleagues and I were tasked with implementing webhooks in one of our products. I immersed myself in numerous blogs and documentation until the concept of webhooks clicked. Excited to share my newfound understanding, I explained it to my colleagues using a simple analogy: “Imagine you’re hungry and order food at a restaurant. Instead of constantly asking the waiter every few mins if your food is ready, the waiter brings it to you the moment it’s prepared....

April 12, 2024 · 6 min read · Yogesh Jain

How Base64 Encoding Works?

In my everyday work with Kubernetes, I often encounter Kubernetes secrets containing strings of seemingly random characters ending with equal signs. These are Base64 encoded texts. This made me curious: What exactly is Base64 encoding, and how does it work its magic? So, one day, I decided to learn how Base64 actually works. It turns out to be a pretty simple process where the data (normal text and numbers) are converted into a special format that machines can easily read and use....

March 15, 2024 · 5 min read · Yogesh Jain

Hello World!

In my early years of programming, I constantly built random projects out of curiosity and for fun, exploring various ideas that crossed my mind. I learned a ton doing that. I’ve been wanting to get back to my roots and build something new for myself. It starts with the creation of this new site Curious One. A place where I can share about various topics (mostly tech related) that come up in my life, in the simplest way possible, along with some tutorials and other things including my weekend hobby projects....

January 22, 2024 · 2 min read · Yogesh Jain