This section describes the software needed for this workshop. This workshop is designed for a BYOL (Brying Your Own Laptop) style hands-on-lab.
-
Operating System: Mac OS X (10.8+), Windows 7+, Ubuntu 12+, CentOS 7+, Fedora 21+
-
Memory: At least 4 GB+, preferred 8 GB
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.
|
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-javaee7Create Docker Swarm cluster as:
docker run swarm createThis 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-masterDetailed explanation for this is available in [Docker_Swarm].
-
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 defaultThis will provide the IP address associated with the Docker Machine created earlier.
-
Edit
/etc/hosts(Mac OS or Linux) orC:\Windows\System32\drivers\etc\hosts(Windows) and add:<IP ADDRESS> dockerhost
The following software needs to be downloaded if you want to build/deploy a Java EE application.
-
Java: Oracle JDK 8u65
-
Download Apache Maven from https://maven.apache.org/download.cgi.
-
Unzip to a directory of your choice and add it to the
PATH.
-
Download WildFly 9.0 from http://download.jboss.org/wildfly/9.0.0.Final/wildfly-9.0.0.Final.zip.
-
Install it by extracting the archive.
To install JBoss Developer Studio stand-alone, complete the following steps:
-
Download 9.0.0.
-
Start the installer as:
java -jar <JAR FILE NAME>Follow the on-screen instructions to complete the installation process.
-
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.
-
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.
-
Download Kubernetes (1.0.7) from https://github.com/kubernetes/kubernetes/releases/download/v1.0.7/kubernetes.tar.gz.
-
Extract the archive and install it:
export KUBERNETES_PROVIDER=vagrant
cd kubernetes
./cluster/kube-up.sh