Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.37 KB

README.md

File metadata and controls

59 lines (44 loc) · 1.37 KB

Vagrant Virtualbox setup for Docker EE 17.03, UCP 2.1.1 and DTR 2.2.3

The following set of instructions helps Docker DataCenter across multiple vms with static ip addresses:

  • UCP - ucp.local on 172.28.128.10
  • DTR - dtr.local on 172.28.128.11
  • Worker node 1 - worker-node1 on 172.28.128.12
  • Worker node 2 - worker-node2 on 172.28.128.13, runs Jenkins as a container pinned to this node
  • Worker node 3 - worker-node3 on 172.28.128.14

Download vagrant from Vagrant website

https://www.vagrantup.com/downloads.html

Install Virtual Box

https://www.virtualbox.org/wiki/Downloads

Download Xenial box

vagrant init ubuntu/xenial64

Install Vagrant Plugins

vagrant plugin install vagrant-hostsupdater
vagrant plugin install vagrant-multiprovider-snap

Create files in project to store environment variables with custom values for use by Vagrant

hub_username
hub_password
ucp_password
ee_url

Bring up/Resume UCP, DTR, and Jenkins nodes

vagrant up ucp-vancouver-node1 dtr-vancouver-node1 worker-node1 worker-node2 worker-node3

Stop UCP, DTR, and Jenkins nodes

vagrant halt ucp-vancouver-node1 dtr-vancouver-node1 worker-node1 worker-node2 worker-node3

Destroy UCP, DTR, and Jenkins nodes

vagrant destroy ucp-vancouver-node1 dtr-vancouver-node1 worker-node1 worker-node2 worker-node3