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
This node cluster has a single node (`-t 1`) and uses the tag "`couchbase`" (`--tag couchbase`). Last four parameters are nodecluster name (`couchbase-node`), provider (`aws`), region (`us-west-1`) and nodetype (`m3.large`).
30
+
This node cluster has a single node (`-t 1`) and uses the tag "`wildfly`" (`--tag wildfly`). Last four parameters are nodecluster name (`couchbase-node`), provider (`aws`), region (`us-west-1`) and node type (`m3.large`).
31
31
32
32
Each node in this node cluster will be given the assigned tag. This will be used later to assign services to a specific node or node cluster.
33
33
34
-
Deploying a node can take up to 10 minutes.
34
+
Deploying a node can take a few minutes. Current status can also be seen https://cloud.docker.com/app/arungupta/nodecluster/list/1?page_size=10[Docker Cloud dashboard]:
35
+
36
+
image::docker-cloud-nodecluster.png[]
35
37
36
38
== Create a new Docker Cloud Service
37
39
38
40
Create a Docker Cloud Service:
39
41
40
42
[source, text]
41
43
----
42
-
docker-cloud service create --tag tomee -p 8080:8080 tomee
43
-
8d3572ae-ad9a-4092-afbc-2b99f26016bc
44
+
docker-cloud service create --name wildfly --tag wildfly -p 8080:8080 jboss/wildfly
45
+
124aa470-4e44-4f19-b0f0-d0c2616510a7
44
46
----
45
47
48
+
https://cloud.docker.com/app/arungupta/service/list/1?name__icontains=wildfly&page=1&page_size=10[Docker Cloud dashboard] will look like:
49
+
50
+
image::docker-cloud-services.png[]
51
+
46
52
Start the Service:
47
53
48
54
[source, text]
49
55
----
50
-
docker-cloud service start 8d3572ae-ad9a-4092-afbc-2b99f26016bc
56
+
docker-cloud service start 124aa470-4e44-4f19-b0f0-d0c2616510a7
51
57
----
52
58
53
59
Check the service logs:
54
60
55
61
[source, text]
56
62
----
57
-
docker-cloud service logs 8d3572ae-ad9a-4092-afbc-2b99f26016bc
63
+
docker-cloud service logs 124aa470-4e44-4f19-b0f0-d0c2616510a7
58
64
----
59
65
60
66
It shows the output as:
61
67
62
68
[source, text]
63
69
----
64
-
tomee-4eb05078-1 | 2016-03-15T01:15:12.629119545Z INFO - Server version: Apache Tomcat (TomEE)/8.0.32 (7.0.0-M3)
65
-
tomee-4eb05078-1 | 2016-03-15T01:15:12.629539055Z INFO - Server built: Feb 2 2016 19:34:53 UTC
66
-
tomee-4eb05078-1 | 2016-03-15T01:15:12.629896543Z INFO - Server number: 8.0.32.0
67
-
tomee-4eb05078-1 | 2016-03-15T01:15:12.630188415Z INFO - OS Name: Linux
68
-
tomee-4eb05078-1 | 2016-03-15T01:15:12.630430719Z INFO - OS Version: 3.13.0-61-generic
69
-
tomee-4eb05078-1 | 2016-03-15T01:15:12.630779071Z INFO - Architecture: amd64
70
-
tomee-4eb05078-1 | 2016-03-15T01:15:12.631063161Z INFO - Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
tomee-4eb05078-1 | 2016-03-15T01:15:15.283837628Z INFO - Assembling app: /usr/local/tomee/webapps/docs
75
-
tomee-4eb05078-1 | 2016-03-15T01:15:15.291932146Z INFO - Deployed Application(path=/usr/local/tomee/webapps/docs)
76
-
tomee-4eb05078-1 | 2016-03-15T01:15:15.311051364Z INFO - At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
77
-
tomee-4eb05078-1 | 2016-03-15T01:15:15.336165182Z INFO - Deployment of web application directory /usr/local/tomee/webapps/docs has finished in 76 ms
78
-
tomee-4eb05078-1 | 2016-03-15T01:15:15.341409256Z INFO - Starting ProtocolHandler ["http-nio-8080"]
79
-
tomee-4eb05078-1 | 2016-03-15T01:15:15.348118092Z INFO - Starting ProtocolHandler ["ajp-nio-8009"]
80
-
tomee-4eb05078-1 | 2016-03-15T01:15:15.349340425Z INFO - Server startup in 1162 ms
82
+
wildfly-1 | 2017-02-04T00:00:28.062486850Z 00:00:28,062 INFO [org.jboss.ws.common.management] (MSC service thread 1-2) JBWS022052: Starting JBossWS 5.1.5.Final (Apache CXF 3.1.6)
83
+
wildfly-1 | 2017-02-04T00:00:28.360806943Z 00:00:28,359 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
84
+
wildfly-1 | 2017-02-04T00:00:28.361466490Z 00:00:28,360 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
85
+
wildfly-1 | 2017-02-04T00:00:28.362342136Z 00:00:28,361 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) started in 5505ms - Started 331 of 577 services (393 services are lazy, passive or on-demand)
81
86
----
82
87
83
-
== Access Couchbase Server in Docker Cloud
88
+
== Access WildFly Server in Docker Cloud
84
89
85
90
Inspect the Docker Cloud service for the exposed container ports:
86
91
87
-
[source, text]
88
-
----
89
-
docker-cloud service inspect 8d3572ae-ad9a-4092-afbc-2b99f26016bc | jq ".container_ports"
90
-
----
92
+
```
93
+
docker-cloud service inspect 124aa470-4e44-4f19-b0f0-d0c2616510a7 | jq ".container_ports"
94
+
```
91
95
92
-
To be more specific, exact URI for the http://tomee.apache.org/apache-tomee.html[TomEE] main page can be obtained as:
96
+
This shows the output as:
93
97
94
-
[source, text]
95
-
----
96
-
docker-cloud service inspect 8d3572ae-ad9a-4092-afbc-2b99f26016bc | jq ".container_ports[0].endpoint_uri" | sed 's/tcp/http/g'
0 commit comments