Skip to content

morrison-turnansky/podman-dev-containers-mvp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Podman Dev Containers MVP

This is a minimal viable product demonstrating how to use dev containers with Podman instead of Docker.


Why You Should Use Dev Containers

  1. Ensures every developer works in the same environment, eliminating "it works on my machine" problems.

  2. Dependencies, tools, and configurations are all containerized.

  3. Since the development environment is containerized, the same container setup can be deployed to staging or production with minimal changes, streamlining the path from development to deployment.

Prerequisites

  1. Git Configuration
    Ensure you have a global Git configuration. If not, run the following commands:

    git config --global user.name "Your Name"
    git config --global user.email "[email protected]"
  2. Install Podman If you are using Fedorda at Red Hat, it should be preinstalled.

  3. Install VSCode

  4. Install vscode extensions Install the following extensions: dev containers.

  5. Set docker path for VSCode Add "dev.containers.dockerPath": "podman" to the settings.json file in your User VSCode settings. Default location is at ~/.config/Code/User/settings.json.

Using the project:

  1. Clone the project
       git clone [email protected]:morrison-turnansky/podman-dev-containers-mvp.git
  2. Enter the project in vscode
    code ./podman-dev-containers-mvp

In the bottome left hand corner of the VSCode window there is a blue button, press on it and select reopen in container from the drop down menu.

You now have containerized environment. Git credentials will be copied from your host, so develop as your normally would.

About

Containerized Development Workflow with Podman

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •