Creating a Swarm Cluster on On-premises VirtualBox

To create a Swarm cluster:
  1. Navigate to the folder tmgc-deploy/onprem/swarm/manifest-onprem-swarm.

    Put all the TIBCO Mashery Local images in this folder that you downloaded earlier and execute the following command.

    If you built the TML images using tml-installer, copy those images from that build machine to this location on deployment host. If your build and deployment host are the same, you can copy those images from tml-installer container into this location using the following example docker cp command (assuming build no 1):
    docker cp tml-installer:/var/jenkins_home/jobs/tml-build-docker/builds/1/archive/tml-docker/tml-nosql.tar.gz .
    docker cp tml-installer:/var/jenkins_home/jobs/tml-build-docker/builds/1/archive/tml-docker/tml-sql.tar.gz .
    docker cp tml-installer:/var/jenkins_home/jobs/tml-build-docker/builds/1/archive/tml-docker/tml-log.tar.gz .
    docker cp tml-installer:/var/jenkins_home/jobs/tml-build-docker/builds/1/archive/tml-docker/tml-cm.tar.gz .
    docker cp tml-installer:/var/jenkins_home/jobs/tml-build-docker/builds/1/archive/tml-docker/tml-cache.tar.gz .
    docker cp tml-installer:/var/jenkins_home/jobs/tml-build-docker/builds/1/archive/tml-docker/tml-tm.tar.gz .
  2. Execute the following command.
    ./create-local-swarm-cluster.sh
    This creates a local swarm cluster consisting of 1 master node, which is swarm manager also, and a worker node (node-1).
  3. Configure Docker client to talk to swarm manager on the current working terminal.
    eval "$(docker-machine env master)"
    Verify that cluster is created successfully by running the following command. Status should be ready for all the nodes. Do not proceed until all the nodes are in active status.
    docker node ls


  4. Run the following command to load TML images on each machine.
    ./load-images.sh