Skip to content

Containers-demos showcases various examples of containerized applications. Each demo provides a simple way to understand how to build, run, and manage containers using popular tools.

Notifications You must be signed in to change notification settings

GilHaxz/containers-demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚢 Containers Demos

Welcome to the Containers Demos repository! This project showcases various containerization techniques and examples using Docker and Kubernetes. Whether you're a beginner or an experienced developer, you'll find useful demos that illustrate how to effectively use containers in your projects.

Download Releases

Table of Contents

Introduction

Containers are a powerful tool for developers. They allow you to package applications with all their dependencies into a single unit. This makes it easy to deploy and run applications consistently across different environments. In this repository, you'll find demos that illustrate various aspects of containerization.

Getting Started

To get started with the demos in this repository, you can download the latest release from our Releases section. After downloading, follow the instructions provided in each demo to execute the examples.

Prerequisites

Before you begin, ensure you have the following installed:

  • Docker: This is the core technology we will use for containerization. You can download it from Docker's official website.
  • Kubernetes: For orchestration, you'll need Kubernetes. You can set it up using Minikube or any cloud provider.
  • Git: To clone the repository, make sure you have Git installed.

Installation

  1. Clone the repository:

    git clone https://github.com/GilHaxz/containers-demos.git
  2. Navigate to the directory:

    cd containers-demos
  3. Download the latest release from our Releases section. Make sure to execute the downloaded files as per the instructions.

Demos

In this section, we outline the various demos available in the repository. Each demo has its own directory and contains a README file with detailed instructions.

1. Basic Docker Demo

This demo shows how to create a simple Docker container that runs a web server.

  • Directory: basic-docker-demo
  • Instructions:
    1. Navigate to the demo directory.
    2. Build the Docker image:
      docker build -t my-web-server .
    3. Run the container:
      docker run -p 80:80 my-web-server

2. Docker Compose Demo

Learn how to use Docker Compose to manage multi-container applications.

  • Directory: docker-compose-demo
  • Instructions:
    1. Navigate to the demo directory.
    2. Start the application:
      docker-compose up

3. Kubernetes Deployment Demo

This demo illustrates how to deploy a simple application on Kubernetes.

  • Directory: kubernetes-deployment-demo
  • Instructions:
    1. Ensure your Kubernetes cluster is running.
    2. Apply the deployment configuration:
      kubectl apply -f deployment.yaml

4. CI/CD with Containers

Explore how to set up a CI/CD pipeline using containers.

  • Directory: cicd-demo
  • Instructions:
    1. Follow the README to set up the pipeline with GitHub Actions or Jenkins.

Usage

Once you have the demos running, you can explore various functionalities. Each demo has its own set of features and configurations. Feel free to modify the code to suit your needs.

Common Commands

Here are some common Docker commands you might find useful:

  • List Running Containers:

    docker ps
  • Stop a Container:

    docker stop <container_id>
  • Remove a Container:

    docker rm <container_id>

For Kubernetes, some useful commands include:

  • Get Pods:

    kubectl get pods
  • Delete a Pod:

    kubectl delete pod <pod_name>

Contributing

We welcome contributions to this repository. If you have ideas for new demos or improvements, please follow these steps:

  1. Fork the repository.
  2. Create a new branch:
    git checkout -b feature/my-feature
  3. Make your changes and commit them:
    git commit -m "Add new demo"
  4. Push to your branch:
    git push origin feature/my-feature
  5. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For questions or suggestions, feel free to reach out:

Thank you for visiting the Containers Demos repository! We hope you find these demos helpful in your containerization journey. Don't forget to check the Releases section for the latest updates and downloads.

About

Containers-demos showcases various examples of containerized applications. Each demo provides a simple way to understand how to build, run, and manage containers using popular tools.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published