Skip to content

Latest commit

 

History

History
119 lines (84 loc) · 4.03 KB

File metadata and controls

119 lines (84 loc) · 4.03 KB

Setup Environments

This section describes the software needed for this workshop. This workshop is designed for a BYOL (Brying Your Own Laptop) style hands-on-lab.

Hardware

  1. Operating System: Mac OS X (10.8+), Windows 7+, Ubuntu 12+, CentOS 7+, Fedora 21+

  2. Memory: At least 4 GB+, preferred 8 GB

Docker

Docker Toolbox or Packages

Docker runs natively on Linux. Because the Docker daemon uses Linux-specific kernel features, you can’t run Docker natively in OS X or Windows. Instead, you must use docker-machine to create and attach to a virtual machine (VM). This machine is a Linux VM that hosts Docker for you on your Mac or Windows. This can be easily installed using Docker Toolbox.

Follow the instructions to install Docker:

Complete set of operating systems are listed at Install Docker Engine.

Pull Docker images

Important
For Mac and Windows, these commands need to be issued from the Docker shell or command prompt where eval $(docker-machine env default) command was issued.
docker pull jboss/wildfly
docker pull arungupta/wildfly-management
docker pull arungupta/javaee7-hol
docker pull mysql
docker pull swarm
docker pull arungupta/wildfly-mysql-javaee7

Create Docker Swarm Cluster

Create Docker Swarm cluster as:

docker run swarm create

This will generate a token. Use this token to create a Swarm Master.

docker-machine create -d virtualbox --swarm --swarm-master --swarm-discovery token://<token> swarm-master

Detailed explanation for this is available in [Docker_Swarm].

Create Docker Host Mapping

  1. To make it easier to start/stop the containers, an entry is added into the host mapping table of your operating system. Find out the IP address of your machine:

    docker-machine ip default

    This will provide the IP address associated with the Docker Machine created earlier.

  2. Edit /etc/hosts (Mac OS or Linux) or C:\Windows\System32\drivers\etc\hosts (Windows) and add:

    <IP ADDRESS>  dockerhost

Optional Software

The following software needs to be downloaded if you want to build/deploy a Java EE application.

Java Development Kit
Maven
  1. Download Apache Maven from https://maven.apache.org/download.cgi.

  2. Unzip to a directory of your choice and add it to the PATH.

WildFly
  1. Download WildFly 9.0 from http://download.jboss.org/wildfly/9.0.0.Final/wildfly-9.0.0.Final.zip.

  2. Install it by extracting the archive.

JBoss Developer Studio 9.0

To install JBoss Developer Studio stand-alone, complete the following steps:

  1. Download 9.0.0.

  2. Start the installer as:

    java -jar <JAR FILE NAME>

    Follow the on-screen instructions to complete the installation process.

Kubernetes

  1. Download Vagrant from https://www.vagrantup.com/downloads.html and install.

    Kubernetes requires Vagrant >= 1.6.2. So if you have an older version then make sure you install the latest one.

  2. If you’ve not installed Docker Toolbox, then you need to additionally download Virtual Box 5.0.8 from https://www.virtualbox.org/wiki/Downloads.

  3. Download Kubernetes (1.0.7) from https://github.com/kubernetes/kubernetes/releases/download/v1.0.7/kubernetes.tar.gz.

  4. Extract the archive and install it:

export KUBERNETES_PROVIDER=vagrant
cd kubernetes
./cluster/kube-up.sh