/docker-datacenter-helper

:whale: Up & Running Docker Datacenter solution in minutes

Primary LanguageShell

frntn/docker-datacenter-helper

Get Docker's official datacenter solutions up & running in no time. 100% unattended installation !

Docker Datacenter solution is made of two commercial products :

  • DTR or Docker Trusted Registry: offers on-premise image management and storage
  • UCP or Universal Control Plane: offers on-premise docker applications management

Both requires a CS subscription (Commercial Support)

You can get a free 30-days trial here : https://hub.docker.com/enterprise/trial

Table of Contents

Usage

Pre-requisite:

On my laptop, my network interface is either eth0 (cable) or wlan0 (wifi). You should check the config.vm.network parameter in the Vagrantfile if it reflects your setup. If not update it accordingly.

On linux you can extract that information with this simple command : ip -o -4 route get 8.8.8.8 | cut -f5 -d' '

A. Docker Trusted Registry

A1. start your DTR

Drop your docker_subscription.lic license file at the root of the project, then start your DTR instance(s) :

./start_dtr

This will provision and configure the DTR nodes defined in config.yml file

The script will automate all the install process (including license upload). You'll endup with a full functionnal and ready to use private registry.

Upon completion, URL to your registry dashboard will be echoed to stdout.

A2. DTR Asciicast

Below is an asciicast capturing the start_dtr script output with the default settings :

dtr-asciicast-stdout

And here is an asciicast capturing the log file content for that same start_dtr exec :

dtr-asciicast-logfile

B. Universal Control Plane

B1. start your UCP cluster

Drop your docker_subscription.lic license file at the root of the project, then start your DTR instance(s) :

./start_ucp

This will provision and configure the UCP cluster nodes defined in config.yml file

The script will automate all the install process (including license upload). You'll endup with a full functionnal and ready to use universal docker platform.

Upon completion, URL(s) to your controller(s) dashboard(s) will be echoed to stdout.

B2. UCP Asciicast

Below is an asciicast capturing the start_ucp script output with the default settings :

ucp-asciicast-stdout

And here is an asciicast capturing the log file content for that same start_ucp exec :

ucp-asciicast-logfile

B3. launch demo

To use the demo application, we want our local docker client to point to this newly created UCP cluster :

# before check
docker version # <-- the 'Server' section mentions 'Version: x.y.z'

# load environment variable so your docker client points to remote docker server
cd ucp/bundle/
source env.sh  # <-- your docker client now speaks with your "remote" UCP cluster

# after check
docker version # <-- the 'Server' now mentions 'Version: ucp/x.y.z'

Then we can now spin up the demo application :

cd ucp/application
docker-compose up -d

Back to the UCP dashboard you can see the newly deployed application :

registry-adduser

Congratulations : you've just created your very fist application on an UCP cluster ! :)

Miscellaneous

official-logo