Skip to content

Commit 8c33933

Browse files
committed
1 parent 5a37f16 commit 8c33933

2 files changed

Lines changed: 26 additions & 43 deletions

File tree

chapters/docker-setup.adoc

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,42 +27,38 @@ Complete set of operating systems are listed at http://docs.docker.com/engine/in
2727

2828
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.
2929

30-
[source, text]
31-
----
30+
```console
3231
docker pull jboss/wildfly
3332
docker pull arungupta/wildfly-management
3433
docker pull arungupta/javaee7-hol
3534
docker pull mysql
3635
docker pull swarm
3736
docker pull arungupta/wildfly-mysql-javaee7
38-
----
37+
```
3938

4039
#### Create Docker Swarm Cluster
4140

4241
Create Docker Swarm cluster as:
4342

44-
[source, text]
45-
----
43+
```console
4644
docker run swarm create
47-
----
45+
```
4846

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

51-
[source, text]
52-
----
49+
```console
5350
docker-machine create -d virtualbox --swarm --swarm-master --swarm-discovery token://<token> swarm-master
54-
----
51+
```
5552

5653
Detailed explanation for this is available in <<Docker_Swarm>>.
5754

5855
#### Create Docker Host Mapping
5956

6057
. 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:
6158
+
62-
[source, text]
63-
----
59+
```console
6460
docker-machine ip default
65-
----
61+
```
6662
+
6763
This will provide the IP address associated with the Docker Machine created earlier.
6864
+
@@ -98,10 +94,9 @@ To install JBoss Developer Studio stand-alone, complete the following steps:
9894
. Download http://tools.jboss.org/downloads/devstudio/mars/9.0.0.GA.html[9.0.0].
9995
. Start the installer as:
10096
+
101-
[source, text]
102-
----
97+
```console
10398
java -jar <JAR FILE NAME>
104-
----
99+
```
105100
+
106101
Follow the on-screen instructions to complete the installation process.
107102

@@ -112,16 +107,13 @@ Follow the on-screen instructions to complete the installation process.
112107
+
113108
Kubernetes requires Vagrant >= 1.6.2. So if you have an older version then make sure you install the latest one.
114109
+
115-
. Download Kubernetes (1.0.1) from https://github.com/kubernetes/kubernetes/releases/download/v1.0.1/kubernetes.tar.gz.
116-
. Extract the archive and install it by:
110+
. 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.
111+
. Download Kubernetes (1.0.7) from https://github.com/kubernetes/kubernetes/releases/download/v1.0.7/kubernetes.tar.gz.
112+
. Extract the archive and install it:
117113

118-
[source, text]
119-
----
114+
```console
120115
export KUBERNETES_PROVIDER=vagrant
121116
cd kubernetes
122117
./cluster/kube-up.sh
123-
----
124-
125-
NOTE: Kubernetes 1.0.1 is the only version verified to work with Virtual Box. More details at: https://github.com/kubernetes/kubernetes/issues/12614
126-
118+
```
127119

readme.html

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ <h4 id="_pull_docker_images">Pull Docker images</h4>
688688
</div>
689689
<div class="listingblock">
690690
<div class="content">
691-
<pre class="highlight"><code class="language-text" data-lang="text">docker pull jboss/wildfly
691+
<pre class="highlight"><code class="language-console" data-lang="console">docker pull jboss/wildfly
692692
docker pull arungupta/wildfly-management
693693
docker pull arungupta/javaee7-hol
694694
docker pull mysql
@@ -704,15 +704,15 @@ <h4 id="_create_docker_swarm_cluster">Create Docker Swarm Cluster</h4>
704704
</div>
705705
<div class="listingblock">
706706
<div class="content">
707-
<pre class="highlight"><code class="language-text" data-lang="text">docker run swarm create</code></pre>
707+
<pre class="highlight"><code class="language-console" data-lang="console">docker run swarm create</code></pre>
708708
</div>
709709
</div>
710710
<div class="paragraph">
711711
<p>This will generate a token. Use this token to create a Swarm Master.</p>
712712
</div>
713713
<div class="listingblock">
714714
<div class="content">
715-
<pre class="highlight"><code class="language-text" data-lang="text">docker-machine create -d virtualbox --swarm --swarm-master --swarm-discovery token://&lt;token&gt; swarm-master</code></pre>
715+
<pre class="highlight"><code class="language-console" data-lang="console">docker-machine create -d virtualbox --swarm --swarm-master --swarm-discovery token://&lt;token&gt; swarm-master</code></pre>
716716
</div>
717717
</div>
718718
<div class="paragraph">
@@ -727,7 +727,7 @@ <h4 id="_create_docker_host_mapping">Create Docker Host Mapping</h4>
727727
<p>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:</p>
728728
<div class="listingblock">
729729
<div class="content">
730-
<pre class="highlight"><code class="language-text" data-lang="text">docker-machine ip default</code></pre>
730+
<pre class="highlight"><code class="language-console" data-lang="console">docker-machine ip default</code></pre>
731731
</div>
732732
</div>
733733
<div class="paragraph">
@@ -800,7 +800,7 @@ <h5 id="_jboss_developer_studio_9_0">JBoss Developer Studio 9.0</h5>
800800
<p>Start the installer as:</p>
801801
<div class="listingblock">
802802
<div class="content">
803-
<pre class="highlight"><code class="language-text" data-lang="text">java -jar &lt;JAR FILE NAME&gt;</code></pre>
803+
<pre class="highlight"><code class="language-console" data-lang="console">java -jar &lt;JAR FILE NAME&gt;</code></pre>
804804
</div>
805805
</div>
806806
<div class="paragraph">
@@ -823,32 +823,23 @@ <h3 id="Kubernetes_Setup">Kubernetes</h3>
823823
</div>
824824
</li>
825825
<li>
826-
<p>Download Kubernetes (1.0.1) from <a href="https://github.com/kubernetes/kubernetes/releases/download/v1.0.1/kubernetes.tar.gz" class="bare">https://github.com/kubernetes/kubernetes/releases/download/v1.0.1/kubernetes.tar.gz</a>.</p>
826+
<p>If you&#8217;ve not installed Docker Toolbox, then you need to additionally download Virtual Box 5.0.8 from <a href="https://www.virtualbox.org/wiki/Downloads" class="bare">https://www.virtualbox.org/wiki/Downloads</a>.</p>
827+
</li>
828+
<li>
829+
<p>Download Kubernetes (1.0.7) from <a href="https://github.com/kubernetes/kubernetes/releases/download/v1.0.7/kubernetes.tar.gz" class="bare">https://github.com/kubernetes/kubernetes/releases/download/v1.0.7/kubernetes.tar.gz</a>.</p>
827830
</li>
828831
<li>
829-
<p>Extract the archive and install it by:</p>
832+
<p>Extract the archive and install it:</p>
830833
</li>
831834
</ol>
832835
</div>
833836
<div class="listingblock">
834837
<div class="content">
835-
<pre class="highlight"><code class="language-text" data-lang="text">export KUBERNETES_PROVIDER=vagrant
838+
<pre class="highlight"><code class="language-console" data-lang="console">export KUBERNETES_PROVIDER=vagrant
836839
cd kubernetes
837840
./cluster/kube-up.sh</code></pre>
838841
</div>
839842
</div>
840-
<div class="admonitionblock note">
841-
<table>
842-
<tr>
843-
<td class="icon">
844-
<div class="title">Note</div>
845-
</td>
846-
<td class="content">
847-
Kubernetes 1.0.1 is the only version verified to work with Virtual Box. More details at: <a href="https://github.com/kubernetes/kubernetes/issues/12614" class="bare">https://github.com/kubernetes/kubernetes/issues/12614</a>
848-
</td>
849-
</tr>
850-
</table>
851-
</div>
852843
</div>
853844
</div>
854845
</div>

0 commit comments

Comments
 (0)