Skip to content

Docker Compose Setup for Connect Ubuntu Container Via SSH

Notifications You must be signed in to change notification settings

Pradipbabar/MultiNodeTestLab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose Setup for Connect Ubuntu Container Via SSH

This Repository Contains a Docker Compose Setup that creates multiple instance ready to use with unique Name, And Auto-Incremented ports numbers.

Overview

The purpose of this project is to simulate a multi-node server environment for testing software that manages and configures remote servers. This setup is particularly useful for developers and testers who need to validate software behavior in a distributed system.

Getting Started

Follow these steps to set up and use the multi-node server testing environment:

Prerequisites

Usage

  1. Clone This Reposetory

    git clone https://github.com/Pradipbabar/MultiNodeTestLab.git
    cd MultiNodeTestLab
  2. Generate SSH Key Pair:

    ssh-keygen -t rsa -b 4096
  3. Update dockerfile and docker-compose.yml file accordingly


  1. Build and Start the Container

    docker-compose up -d
    
  2. Acess individual Containers

    docker exec -it <conatiner name> bash
    ssh -i <private key> -p <port-number> root@localhost

Usage Scenarios

Software Testing:

Use this setup to test software that interacts with multiple servers in a distributed environment. Validate your software's behavior in various network conditions.

Configuration Management Testing:

Similar to tools like Ansible, Chef, and Puppet, use this setup to validate your own configuration management scripts or tools.

Configuration

  • The docker-compose.yml file defines the multi-node testing environment.
  • Each node is isolated in its own Docker container.
  • Modify the nodes/ directory to configure each node's software and services

About

Docker Compose Setup for Connect Ubuntu Container Via SSH

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published