You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -79,36 +79,36 @@ Now you're ready to deploy the application for the first time.
79
79
Start JBoss Developer Studio, if not already started.
80
80
81
81
. Select '`Servers`' tab, create a new server adapter
82
-
+
82
+
83
83
.Server adapter
84
84
image::images/jbds1.png[]
85
-
+
85
+
86
86
. Assign an existing or create a new WildFly 9.0.0 runtime (changed properties are highlighted.)
87
-
+
87
+
88
88
.WildFly Runtime Properties
89
89
image::images/jbds2.png[]
90
-
+
90
+
91
91
. If a new runtime needs to be created, pick the directory for WildFly 9.0.2:
92
-
+
92
+
93
93
.WildFly 9.0.2.Final Runtime
94
94
image::images/jbds3.png[]
95
-
+
95
+
96
96
Click on '`Finish`'.
97
-
+
97
+
98
98
. Double-click on the newly selected server to configure server properties:
99
-
+
99
+
100
100
.Server properties
101
101
image::images/jbds4.png[]
102
-
+
102
+
103
103
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.
104
-
+
104
+
105
105
. Specify a custom deployment folder on Deployment tab of Server Editor
106
-
+
106
+
107
107
.Custom deployment folder
108
108
image::images/jbds5.png[]
109
-
+
109
+
110
110
. Right-click on the newly created server adapter and click '`Start`'.
111
-
+
111
+
112
112
.Started server
113
113
image::images/jbds6.png[]
114
114
@@ -142,7 +142,7 @@ TThe Command Line Interface (CLI) is a tool for connecting to WildFly instances
142
142
Lets use the CLI to deploy javaee7-simple-sample to WildFly running in the container.
143
143
144
144
. CLI needs to be locally installed and comes as part of WildFly. This should be available in the previously downloaded WildFly. Unzip into a folder of your choice (e.g. `/Users/<USER>/tools/`). This will create `wildfly-9.0.2.Final` directory here. This folder is referred to $WIDLFY_HOME from here on. Make sure to add the `/Users/<USER>/tools/wildfly-9.0.2.Final/bin` to your $PATH.
145
-
+
145
+
146
146
. Run the "`wildfly-management`" image with fixed port mapping as explained in <<Management_Fixed_Port_Mapping>>.
147
147
. Run the `jboss-cli` command and connect to the WildFly instance.
148
148
@@ -200,21 +200,21 @@ Start a new container as `docker run -d --name wildfly -p 8080:8080 -p 9990:9990
200
200
Deploy the application using the console with the following steps:
201
201
202
202
. Go to '`Deployments`' tab.
203
-
+
203
+
204
204
.Deployments tab in WildFly Web Console
205
205
image::images/wildfly9-deployments-tab.png[]
206
-
+
206
+
207
207
. Click on '`Add`' button.
208
208
. On '`Add Deployment`' screen, take the default of '`Upload a new deployment`' and click '`Next>>`'.
209
209
. Click on '`Choose File`', select `<javaee7-simple-sample PATH>/javaee7-simple-sample.war` file on your computer. This would be `javaee7-simple-sample/target/javaee7-simple-sample.war` from <<Build_Application>>.
A standalone WildFly process, process can be configured to listen for remote management requests using its "`native management interface`". The CLI tool that comes with the application server uses this interface, and user can develop custom clients that use it as well. By default, WildFly management interface listens on 127.0.0.1. When running inside a Docker container, the network interface should be bound to all publicly assigned addresses. This can be easily changed by biding to 0.0.0.0 instead of 127.0.0.1.
docker run -d --name wildfly -p 8080:8080 -p 9990:9990 classroom.example.com:5000/wildfly-management
239
239
----
240
-
+
240
+
241
241
In addition to application port 8080, the administration port 9990 is exposed as well. The WildFly image that is used has tweaked the start script such that the management interface is bound to 0.0.0.0.
242
-
+
242
+
243
243
. Create a new server adapter in JBoss Developer Studio and name it "`WildFly 9.0.2-Management`". Specify the host name as '`dockerhost`'.
244
-
+
244
+
245
245
image::images/jbds8.png[]
246
-
+
246
+
247
247
. Click on '`Next>`' and change the values as shown.
248
-
+
248
+
249
249
.Create New Server Adapter
250
250
image::images/jbds9.png[]
251
-
+
251
+
252
252
. Take the default values in '`Remote System Integration`' and click on '`Finish`'.
253
-
+
253
+
254
254
. 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:
255
-
+
255
+
256
256
.Management Login Credentials
257
257
image::images/jbds10.png[]
258
-
+
258
+
259
259
. Right-click on the newly created server adapter and click '`Start`'. Status quickly changes to '`Started`' as shown.
260
-
+
260
+
261
261
.Synchronized WildFly Server
262
262
image::images/jbds11.png[]
263
-
+
263
+
264
264
. 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.
Kubernetes is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications.
5
23
@@ -45,12 +63,15 @@ Kubernetes cluster can be easily started using Vagrant. There are two options to
45
63
[source, text]
46
64
----
47
65
cd kubernetes
66
+
export NUM_MINIONS=2
48
67
export KUBERNETES_PROVIDER=vagrant
49
68
./cluster/kube-up.sh
50
69
----
51
70
52
71
The `KUBERNETES_PROVIDER` environment variable tells all of the various cluster management scripts which variant to use.
53
72
73
+
The `NUM_MINIONS`environment variable controls the number of nodes that are instantiated
74
+
54
75
NOTE: This will take a few minutes, so be patience! Vagrant will provision each machine in the cluster with all the necessary components to run Kubernetes.
55
76
56
77
It shows the output as:
@@ -651,7 +672,7 @@ Individual resources (service, replication controller, or pod) can be deleted by
0 commit comments