Skip to content

Commit a511457

Browse files
committed
moving images and fixing references
1 parent d15ac58 commit a511457

67 files changed

Lines changed: 68 additions & 68 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

chapters/docker-basics.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Docker has three main components:
2424
In order for these three components to work together, there is *Docker Daemon* that runs on a host machine and does the heavy lifting of building, running, and distributing Docker containers. In addition, there is *Client* that is a Docker binary which accepts commands from the user and communicates back and forth with the daemon.
2525

2626
.Docker architecture
27-
image::../images/docker-architecture.png[]
27+
image::chapters/images/docker-architecture.png[]
2828

2929
Client communicates with Daemon, either co-located on the same host, or on a different host. It requests the Daemon to pull an image from the repository using `pull` command. The Daemon then downloads the image from Docker Hub, or whatever registry is configured. Multiple images can be downloaded from the registry and installed on Daemon host. Images are run using `run` command to create containers on demand.
3030

@@ -140,4 +140,4 @@ PING dockerhost (192.168.99.101): 56 data bytes
140140
64 bytes from 192.168.99.101: icmp_seq=1 ttl=64 time=0.387 ms
141141
----
142142

143-
If it does, you're ready to start with the lab.
143+
If it does, you're ready to start with the lab.

chapters/docker-compose.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ mysqldb_1 | 2015-06-05 15:40:18 1 [Warning] IP address '172.17.0.24' could not
139139
. Access the application at http://dockerhost:8080/employees/resources/employees/. This is shown in the browser as:
140140

141141
.Output From Servers Run Using Docker Compose
142-
image::../images/docker-compose-output.png[]
142+
image::chapters/images/docker-compose-output.png[]
143143

144144
### Stop Services
145145

chapters/docker-container-linking.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<<JavaEE7_PreBuilt_WAR>> explained how to use an in-memory database with the application server. This gets you started rather quickly but becomes a bottleneck soon as the database is only in-memory. This means that any changes made to your schema and data are lost when the application server shuts down. In this case, you need to use a database server that resides outside the application server. For example, MySQL as the database server and WildFly as the application server.
55

66
.Two Containers On Same Docker Host
7-
image::../images/javaee7-hol-container-linking.png[]
7+
image::chapters/images/javaee7-hol-container-linking.png[]
88

99
This section will show how https://docs.docker.com/userguide/dockerlinks/[Docker Container Linking] can be used to connect to a service running inside a Docker container via a network port.
1010

chapters/docker-container.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ At first, the top read-write layer has nothing in it, but any time a process cre
3434
We call the union of the read-write layer and all the read-only layers a _union file system_.
3535
3636
.Docker Layers
37-
image::../images/plain-wildfly0.png[]
37+
image::chapters/images/plain-wildfly0.png[]
3838
====
3939

4040
In our particular case, the https://github.com/jboss-dockerfiles/wildfly/blob/master/Dockerfile[jboss/wildfly] image extends the https://github.com/jboss-dockerfiles/base/blob/master/Dockerfile[jboss/base-jdk:7] image which adds the OpenJDK distribution on top of the https://github.com/jboss-dockerfiles/base/blob/master/Dockerfile[jboss/base] image.
@@ -205,7 +205,7 @@ See more about networking on the Docker website link:https://docs.docker.com/art
205205
Now we're ready to test http://dockerhost:8080 again. This works with the exposed port, as expected.
206206

207207
.Welcome WildFly
208-
image::../images/plain-wildfly1.png[]
208+
image::chapters/images/plain-wildfly1.png[]
209209

210210
[[Enabling_WildFly_Administration]]
211211
### Enabling WildFly Administration
@@ -259,7 +259,7 @@ The username/password credentials are:
259259
This shows the admin console as:
260260

261261
.Welcome WildFly
262-
image::../images/wildfly-admin-console.png[]
262+
image::chapters/images/wildfly-admin-console.png[]
263263

264264
##### Additional Ways To Find Port Mapping
265265

chapters/docker-deployment-options.adoc

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,36 +50,36 @@ Start JBoss Developer Studio, if not already started.
5050
. Select '`Servers`' tab, create a new server adapter
5151
+
5252
.Server adapter
53-
image::../images/jbds1.png[]
53+
image::chapters/images/jbds1.png[]
5454
+
5555
. Assign an existing or create a new WildFly 9.0.0 runtime (changed properties are highlighted.)
5656
+
5757
.WildFly Runtime Properties
58-
image::../images/jbds2.png[]
58+
image::chapters/images/jbds2.png[]
5959
+
6060
. If a new runtime needs to be created, pick the directory for WildFly 9.0.0:
6161
+
6262
.WildFly 9.0.0.Final Runtime
63-
image::../images/jbds3.png[]
63+
image::chapters/images/jbds3.png[]
6464
+
6565
Click on '`Finish`'.
6666
+
6767
. Double-click on the newly selected server to configure server properties:
6868
+
6969
.Server properties
70-
image::../images/jbds4.png[]
70+
image::chapters/images/jbds4.png[]
7171
+
7272
The host name is specified to '`dockerhost`'. Two properties on the left are automatically propagated from the previous dialog. Additional two properties on the right side are required to disable to keep deployment scanners in sync with the server.
7373
+
7474
. Specify a custom deployment folder on Deployment tab of Server Editor
7575
+
7676
.Custom deployment folder
77-
image::../images/jbds5.png[]
77+
image::chapters/images/jbds5.png[]
7878
+
7979
. Right-click on the newly created server adapter and click '`Start`'.
8080
+
8181
.Started server
82-
image::../images/jbds6.png[]
82+
image::chapters/images/jbds6.png[]
8383

8484
### Deploy Application Using Shared Volumes
8585

@@ -89,7 +89,7 @@ image::../images/jbds6.png[]
8989
The project runs and displays the start page of the application.
9090

9191
.Start Server
92-
image::../images/jbds7.png[]
92+
image::chapters/images/jbds7.png[]
9393

9494
Congratulations!
9595

@@ -143,7 +143,7 @@ Now you've sucessfully used the CLI to remote deploy the Java EE 7 sample applic
143143
WildFly comes with a web-based administration console. It also relies on the same management APIs that are used by JBoss Developer Tools and the CLI. It provides a simple and easy to use web-based console to manage WildFly instance. For a Docker image, it needs to be explicitly enabled as explained in <<Enabling_WildFly_Administration>>. Once enabled, it can be accessed at http://dockerhost:9990.
144144

145145
.WildFly Web Console
146-
image::../images/console1.png[]
146+
image::chapters/images/console1.png[]
147147

148148
Username and password credentials are shown in <<WildFly_Administration_Credentials>>.
149149

@@ -159,7 +159,7 @@ Deploy the application using the console with the following steps:
159159
. Go to '`Deployments`' tab.
160160
+
161161
.Deployments tab in WildFly Web Console
162-
image::../images/wildfly9-deployments-tab.png[]
162+
image::chapters/images/wildfly9-deployments-tab.png[]
163163
+
164164
. Click on '`Add`' button.
165165
. On '`Add Deployment`' screen, take the default of '`Upload a new deployment`' and click '`Next>>`'.
@@ -168,17 +168,17 @@ image::../images/wildfly9-deployments-tab.png[]
168168
. Select '`Enable`' checkbox.
169169
+
170170
.Enable a deployment
171-
image::../images/wildfly9-add-deployments.png[]
171+
image::chapters/images/wildfly9-add-deployments.png[]
172172
+
173173
. Click '`Finish`'.
174174
+
175175
.Java EE 7 Simple Sample Deployed
176-
image::../images/wildfly9-javaee7-simple-sample-deployed.png[]
176+
image::chapters/images/wildfly9-javaee7-simple-sample-deployed.png[]
177177

178178
This will complete the deployment of the Java EE 7 application using Web Console. The output can be seen out http://dockerhost:8080/javaee7-simple-sample and looks like:
179179

180180
.Java EE 7 Simple Sample Output
181-
image::../images/wildfly9-javaee7-simple-sample-output.png[]
181+
image::chapters/images/wildfly9-javaee7-simple-sample-output.png[]
182182

183183
### Deploy Application Using Management API
184184

@@ -195,24 +195,24 @@ In addition to application port 8080, the administration port 9990 is exposed as
195195
+
196196
. Create a new server adapter in JBoss Developer Studio and name it "`WildFly 9.0.0-Management`". Specify the host name as '`dockerhost`'.
197197
+
198-
image::../images/jbds8.png[]
198+
image::chapters/images/jbds8.png[]
199199
+
200200
. Click on '`Next>`' and change the values as shown.
201201
+
202202
.Create New Server Adapter
203-
image::../images/jbds9.png[]
203+
image::chapters/images/jbds9.png[]
204204
+
205205
. Take the default values in '`Remote System Integration`' and click on '`Finish`'.
206206
+
207207
. Change server properties by double clicking on the newly created server adapter. Specify admin credentials (username: docker, password: docker#admin). Note, you need to delete the existing password and use this instead:
208208
+
209209
.Management Login Credentials
210-
image::../images/jbds10.png[]
210+
image::chapters/images/jbds10.png[]
211211
+
212212
. Right-click on the newly created server adapter and click '`Start`'. Status quickly changes to '`Started`' as shown.
213213
+
214214
.Synchronized WildFly Server
215-
image::../images/jbds11.png[]
215+
image::chapters/images/jbds11.png[]
216216
+
217217
. Right-click on the javaee7-simple-sample project, select '`Run on Server`' and choose this server. The project runs and displays the start page of the application.
218218
. Stop WildFly when you're done.

chapters/docker-eclipse.adoc

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ Alternatively, download http://www.eclipse.org/downloads/index-developer-default
1616
Specify the '`Name:`' as "`Docker Nightly`" and '`Location:`' as http://download.eclipse.org/linuxtools/updates-docker-nightly/.
1717
+
1818
.Add Docker Tooling To JBoss Developer Studio
19-
image::../images/jbds-docker-tools1.png[]
19+
image::chapters/images/jbds-docker-tools1.png[]
2020
+
2121
. Expand Linux Tools, select '`Docker Client`' and '`Docker Tooling`'.
2222
+
2323
.Add Docker Tooling
24-
image::../images/jbds-docker-tools-nightly-setup.png[]
24+
image::chapters/images/jbds-docker-tools-nightly-setup.png[]
2525
+
2626
. Click on '`Next >`', '`Next >`', accept the terms of the license agreement, and click on '`Finish`'. This will complete the installation of plugins.
2727
+
@@ -33,16 +33,16 @@ The Docker Explorer provides a wizard to establish a new connection to a Docker
3333

3434
. Use the menu '`Window`', '`Show View`', '`Other...`'. Type '`docker`' to see the output as:
3535
+
36-
image::../images/jbds-docker-tools-docker-view.png[]
36+
image::chapters/images/jbds-docker-tools-docker-view.png[]
3737
+
3838
. Select '`Docker Explorer`' to open Docker Explorer.
3939
+
40-
image::../images/jbds-docker-tools-docker-explorer-view.png[]
40+
image::chapters/images/jbds-docker-tools-docker-explorer-view.png[]
4141
+
4242
. Click on the link in this window to create a connection to Docker Host. Specify the settings as shown:
4343
+
4444
.Docker Explorer
45-
image::../images/jbds-docker-tools2.png[]
45+
image::chapters/images/jbds-docker-tools2.png[]
4646
+
4747
Make sure to get IP address of the Docker Host as:
4848
+
@@ -56,24 +56,24 @@ Also, make sure to specify the correct directory for `.docker` on your machine.
5656
. Click on '`Test Connection`' to check the connection. This should show the output as:
5757
+
5858
.Docker Explorer
59-
image::../images/jbds-docker-tools-test-connection-output.png[]
59+
image::chapters/images/jbds-docker-tools-test-connection-output.png[]
6060
+
6161
Click on '`OK`' and '`Finish`' to exit out of the wizard.
6262
+
6363
. Docker Explorer itself is a tree view that handles multiple connections and provides users with quick overview of the existing images and containers.
6464
+
6565
.Docker Explorer Tree View
66-
image::../images/jbds-docker-tools3.png[]
66+
image::chapters/images/jbds-docker-tools3.png[]
6767
+
6868
. Customize the view by clicking on the arrow in toolbar:
6969
+
7070
.Docker Explorer Customize View
71-
image::../images/jbds-docker-tools-customize-view-option.png[]
71+
image::chapters/images/jbds-docker-tools-customize-view-option.png[]
7272
+
7373
Built-in filters can show/hide intermediate and '`dangling`' images, as well as stopped containers.
7474
+
7575
.Docker Explorer Customize View Wizard
76-
image::../images/jbds-docker-tools-customize-view-wizard.png[]
76+
image::chapters/images/jbds-docker-tools-customize-view-wizard.png[]
7777

7878
### Docker Images
7979

@@ -88,12 +88,12 @@ Lets take a look at it.
8888
. Use the menu '`Window`', '`Show View`', '`Other...`', select '`Docker Images`'. It shows the list of images on Docker Host:
8989
+
9090
.Docker Images View
91-
image::../images/jbds-docker-tools4.png[]
91+
image::chapters/images/jbds-docker-tools4.png[]
9292
+
9393
. Right-click on the image ending with "`wildfly:latest`" and click on the green arrow in the toolbar. This will show the following wizard:
9494
+
9595
.Docker Run Container Wizard
96-
image::../images/jbds-docker-tools-run-container-wizard.png[]
96+
image::chapters/images/jbds-docker-tools-run-container-wizard.png[]
9797
+
9898
By default, all exports ports from the image are mapped to random ports on the host interface. This setting can be changed by unselecting the first checkbox and specify exact port mapping.
9999
+
@@ -102,7 +102,7 @@ Click on '`Finish`' to start the container.
102102
. When the container is started, all logs are streamed into Eclipse Console:
103103
+
104104
.Docker Container Logs
105-
image::../images/jbds-docker-tools5.png[]
105+
image::chapters/images/jbds-docker-tools5.png[]
106106

107107
### Docker Containers
108108

@@ -111,18 +111,18 @@ Docker Containers view lets the user manage the containers. The view toolbar pro
111111
. Use the menu '`Window`', '`Show View`', '`Other...`', select '`Docker Containers`'. It shows the list of running containers on Docker Host:
112112
+
113113
.Docker Containers View
114-
image::../images/jbds-docker-tools6.png[]
114+
image::chapters/images/jbds-docker-tools6.png[]
115115
+
116116
. Pause the container by clicking on the "`pause`" button in the toolbar (https://bugs.eclipse.org/bugs/show_bug.cgi?id=469310[#469310]). Show the complete list of containers by clicking on the '`View Menu`', '`Show all containers`'.
117117
+
118118
.All Docker Containers
119-
image::../images/jbds-docker-tools-all-containers.png[]
119+
image::chapters/images/jbds-docker-tools-all-containers.png[]
120120
+
121121
. Select the paused container, and click on the green arrow in the toolbar to restart the container.
122122
. Right-click on any running container and select "`Display Log`" to view the log for this container.
123123
+
124124
.Eclipse Properties View
125-
image::../images/jbds-docker-tools-display-log.png[]
125+
image::chapters/images/jbds-docker-tools-display-log.png[]
126126

127127
TODO: Users can also attach an Eclipse console to a running Docker container to follow the logs and use the STDIN to interact with it.
128128

@@ -135,9 +135,9 @@ Eclipse Properties view is used to provide more information about the containers
135135
Info view is shown as:
136136
+
137137
.Docker Container Properties View Info
138-
image::../images/jbds-docker-tools-properties-info.png[]
138+
image::chapters/images/jbds-docker-tools-properties-info.png[]
139139
+
140140
Inspect view is shown as:
141141
+
142142
.Docker Container Properties View Inspect
143-
image::../images/jbds-docker-tools-properties-inspect.png[]
143+
image::chapters/images/jbds-docker-tools-properties-inspect.png[]

chapters/docker-javaee7.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
https://github.com/javaee-samples/javaee7-hol[Java EE 7 Movieplex] is a standard multi-tier enterprise application that shows design patterns and anti-patterns for a typical Java EE 7 application.
55

66
.Java EE 7 Application Architecture
7-
image::../images/javaee7-hol.png[]
7+
image::chapters/images/javaee7-hol.png[]
88

99
Pull the Docker image that contains WildFly and pre-built Java EE 7 application WAR file as shown:
1010

@@ -27,12 +27,12 @@ ifdef::public[docker run -it -p 8080:8080 arungupta/javaee7-hol]
2727
See the application in action at http://dockerhost:8080/movieplex7/. The output is shown:
2828

2929
.Java EE 7 Application Output
30-
image::../images/javaee7-movieplex7.png[]
30+
image::chapters/images/javaee7-movieplex7.png[]
3131

3232
This uses an in-memory database with WildFly application server as shown in the image:
3333

3434
.In-memory Database
35-
image::../images/javaee7-hol-in-memory-database.png[]
35+
image::chapters/images/javaee7-hol-in-memory-database.png[]
3636

3737
Only two changes are required to the standard `jboss/wildfly` image:
3838

chapters/docker-kubernetes.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ At a very high level, there are three key components:
2424
A picture is always worth a thousand words and so this is a high-level logical block diagram for Kubernetes:
2525

2626
.Kubernetes Key Components
27-
image::../images/kubernetes-key-components.png[]
27+
image::chapters/images/kubernetes-key-components.png[]
2828

2929
After the 50,000 feet view, lets fly a little lower at 30,000 feet and take a look at how Kubernetes make all of this happen. There are a few key components at Master and Minion that make this happen.
3030

@@ -134,18 +134,18 @@ By default, the Vagrant setup will create a single kubernetes-master and 1 kuber
134134
NOTE: By default, only one minion is created. This can be manipulated by setting an environment variable NUM_MINIONS variable to an integer before invoking `kube-up.sh` script.
135135
+
136136
.Kubernetes Cluster using Vagrant
137-
image::../images/kubernetes-cluster-vagrant.png[]
137+
image::chapters/images/kubernetes-cluster-vagrant.png[]
138138
+
139139
By default, each VM in the cluster is running Fedora, Kubelet is installed into ``systemd'', and all other Kubernetes services are running as containers on Master.
140140
+
141141
. Access https://10.245.1.2 (or whatever IP address is assigned to your kubernetes cluster start up log). This may present the warning as shown below:
142142
+
143-
image::../images/kubernetes-master-default-output-certificate.png[]
143+
image::chapters/images/kubernetes-master-default-output-certificate.png[]
144144
+
145145
Click on '`Advanced`' and then on '`Proceed to 10.245.1.2`' to see the output as:
146146
+
147147
.Kubernetes Output from Master
148-
image::../images/kubernetes-master-default-output.png[]
148+
image::chapters/images/kubernetes-master-default-output.png[]
149149
+
150150
Use '`vagrant`' as the username and '`vagrant`' as the password.
151151
+
@@ -190,7 +190,7 @@ Pods, and the IP addresses assigned to them, are ephemeral. If a pod dies then K
190190
Kubernetes services is an abstraction which defines a logical set of pods. A service is typically back-ended by one or more physical pods (associated using labels), and it has a permanent IP address that can be used by other pods/applications. For example, WildFly pod can not directly connect to a MySQL pod but can connect to MySQL service. In essence, Kubernetes service offers clients an IP and port pair which, when accessed, redirects to the appropriate backends.
191191

192192
.Kubernetes Service
193-
image::../images/kubernetes-service.png[]
193+
image::chapters/images/kubernetes-service.png[]
194194

195195
NOTE: In this case, all the pods are running on a single minion. This is because, that is the default number for a Kubernetes cluster. The pod can very be on another minion if more number of minions are configured to start in the cluster.
196196

0 commit comments

Comments
 (0)