Skip to content

docker

My Ubuntu Setup: From Barebones to a Productive Dev Environment

When I install a fresh Linux distribution like Ubuntu 24, I'm not just setting up a computer; I'm building a personal workspace. My goal is a clean, reliable, and portable development environment that can be replicated anywhere, from my local machine to a remote VPS.

A clean, minimalist desktop setup
Image generated using Google Gemini

This isn't just about a list of commands, it's a philosophy of intentionality. Every tool I choose, and every tool I leave behind, is a step toward a more efficient and less cluttered workflow.

This is my journey to a perfect setup, and it all starts with version control.

Macro Syntax Error

File: blog/posts/software-and-tools/dev/OSX/docker/mastering-docker-comprehensive-guide-efficient-container-management.md

Line 426 in Markdown file: unexpected '.'

Use `--format` to customize output (e.g., `{{.ID}}` for IDs):

Evolution of a Project: From Python Apps to a Web Interface

How a solo coder turned a repo full of data scripts into a full-stack web app with beautiful interface in one day ?

In the world of development, projects tend to evolve, morphing and reshaping themselves to meet ever-changing needs and preferences. What starts as a collection of Python applications can transform into something entirely different—a cohesive web interface with a backend to match.

This evolution was made possible by harnessing a comprehensive tech stack, blending various cutting-edge technologies:

  • Python: Served as the foundational language for backend logic and functionality.
  • FastAPI: Empowered the backend with rapid server capabilities and smooth API integration.
  • Next.js: Spearheaded the frontend development, providing dynamic and responsive user interfaces.
  • Prisma: Efficiently managed databases, optimizing data operations and queries.
  • Clerk: Handled authentication and user management, ensuring secure and streamlined user experiences.
  • Docker: Ensured modern development practices and facilitated seamless execution across various environments.

Using MkDocs with Docker: Streamlining Documentation Workflow

Introduction

Looking to streamline your documentation workflow using MkDocs and Docker?

Documentation lies at the heart of every successful project. MkDocs offers a straightforward way to create elegant documentation sites, while Docker ensures a consistent and isolated environment for various applications. Combining these tools optimizes the documentation process and enhances collaboration within development teams.

This tutorial serves as your guide, illustrating how to set up MkDocs within a Docker container effectively. By following these steps, you'll establish a robust documentation framework, facilitating seamless documentation creation and deployment.

Let's dive into the process of integrating MkDocs with Docker to revolutionize your documentation workflow.

Prerequisites

Before starting, make sure you have the following files in the same directory:

  1. docker-compose.yml
  2. requirements.txt (or your specific requirements file)

For example,

Simple guide to using Docker on Windows 10 and access from WSL 2

Introduction

For a heavy linux user like me, using windows also mean find a door to work with a linux distro. There are several options to gauge from the situation. I usually need both docker and wsl2 on the computer. And i've installed this many times.

docker-logo

So, this is a very straight forward tutorial on docker and wsl2 installation and configuration on windows10 or 11.

Prerequisites

  • Windows 10 Pro, Enterprise, or Education edition.
  • WSL 2 enabled on your Windows machine.
  • Docker Desktop for Windows installed.

Step-by-Step Guide

  1. Install Docker Desktop for Windows:

  2. Enable WSL 2:

    Enable docker for wsl2

  3. Set wsl default version to 2:

    • Open PowerShell as an administrator and run the following command:
    wsl --set-default-version 2