Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
/ hyperion-swarm Public archive

Setup your own Docker Swarm cluster using Terraform and Packer

License

Notifications You must be signed in to change notification settings

ploio/hyperion-swarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperion

License Apache 2[] Version

Description

Image of components

hyperion creates a Cloud environment :

  • Identical machine images creation is performed using Packer
  • Orchestrated provisioning is performed using Terraform
  • Applications managment is performed using Docker Swarm and Wagl

Docker Swarm, Wagl and Consul

In Docker Swarm :

  • node: a host machine that is only responsible for running containers
  • manager : the service a user uses for managing containers across the registered Swarm Node(s).
  • consul : the service discovery used (See https://docs.docker.com/swarm/discovery/)

Initialization

Initialize environment:

$ make init

Machine image

Read guides to creates the machine for a cloud provider :

Cloud infratructure

Read guides to creates the infrastructure :

Usage

  • Setup your Docker Swarm cluster informations using IP address of the Swarm master:

      $ alias dockerswarm="docker -H=tcp://x.x.x.x:2375"
    
  • Check cluster informations :

      $ dockerswarm info
      Containers: 4
      Images: 2
      Role: primary
      Strategy: spread
      Filters: health, port, dependency, affinity, constraint
      Nodes: 2
       hyperion-swarm-node-0: 10.0.0.4:2375
        └ Containers: 2
        └ Reserved CPUs: 0 / 1
        └ Reserved Memory: 0 B / 3.806 GiB
        └ Labels: executiondriver=native-0.2, kernelversion=3.16.0-4-amd64, operatingsystem=Debian GNU/Linux 8 (jessie), storagedriver=aufs
       hyperion-swarm-node-1: 10.0.0.3:2375
        └ Containers: 2
        └ Reserved CPUs: 0 / 1
        └ Reserved Memory: 0 B / 3.806 GiB
        └ Labels: executiondriver=native-0.2, kernelversion=3.16.0-4-amd64, operatingsystem=Debian GNU/Linux 8 (jessie), storagedriver=aufs
      CPUs: 2
      Total Memory: 7.612 GiB
      Name: hyperion-swarm-master
    

Contributing

See CONTRIBUTING.

License

See LICENSE for the complete license.

Changelog

A changelog is available

Contact

Nicolas Lamirault [email protected]

About

Setup your own Docker Swarm cluster using Terraform and Packer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages