MENU

Fun & Interesting

Dockerized DEV Environment with DevContainers | Multiple Containers | VSCode

Chandra Shettigar 5,549 9 months ago
Video Not Working? Fix It Now

Let's walk through setting up a local development environment, with multiple container setup, using VSCode extension DevContainers. This will involve a 2-tier application development with an app and database components both running as containers using DevContainers with Docker Compose in VSCode. https://www.devteds.com/devcontainers-for-developers-multi-container-local-dev-setup/ Source code: https://github.com/devteds/devcontainers-for-developers-rails-multi-container-local-setup It is a Ruby on Rails application, containerized using multi-stage Dockerfile and setup with DevContainers & Docker Compose with MySQL as its database layer. ------------------------------------------------------------------------ Related content: Course: Kubernetes on AWS (Hands-on Get Started Guide): https://www.devteds.com/kubernetes-course-aws-eks-terraform Episode - Multi-Stage Docker Build https://youtu.be/EkOCLmvwEhc Episode - Local DevOps Environment With Docker using Dev Containers https://youtu.be/XTfIVffnapo Episode - MySQL and PostgreSQL with Docker in Development https://youtu.be/q5J3rtAGGNU ------------------------------------------------------------------------ Commands & README: https://github.com/devteds/devcontainers-for-developers-rails-multi-container-local-setup/blob/main/README.md ------------------------------------------------------------------------ Author: Chandra Shettigar | Devteds, LLC https://devteds.com, https://www.linkedin.com/in/shettigarc, https://twitter.com/shettigar ------------------------------------------------------------------------ Chapters: -------------- 00:00 Introduction 00:41 App Stack 00:59 Create Application Dev Container 04:49 Transform to Multi-Containers 08:10 Add Database Container 10:17 Use Dockerfile for App Container 11:42 Link App & DB Containers 14:06 Data & Test 16:03 Wrap up

Comment