Skip to content

Commit 168bb2c

Browse files
arun-guptaMano Marks
authored and
Mano Marks
committed
Merging changes from Silicon Valley Code Camp (docker#66)
* updating slides after JavaOne and SVCC 2016 * fixing docker#60 * docker#63 * fixing docker#62 * fixing docker#64
1 parent 5f927b9 commit 168bb2c

File tree

6 files changed

+35
-73
lines changed

6 files changed

+35
-73
lines changed

java/chapters/ch01-setup.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ ubuntu:
7070
image: ubuntu
7171
busybox:
7272
image: busybox
73-
java:
74-
image: java
73+
openjdk:
74+
image: openjdk
7575
wildfly:
7676
image: jboss/wildfly
7777
mysql:

java/chapters/ch03-build-image.adoc

+6-6
Original file line numberDiff line numberDiff line change
@@ -145,24 +145,24 @@ Pull the latest Docker image for Java:
145145

146146
[source, text]
147147
----
148-
docker pull java
148+
docker pull openjdk
149149
----
150150

151151
Run the container in an interactive manner:
152152

153153
[source, text]
154154
----
155-
docker run -it java
155+
docker run -it openjdk
156156
----
157157

158158
Check the version of Java:
159159

160160
[source, text]
161161
----
162-
root@44b355b45ab1:/# java -version
163-
openjdk version "1.8.0_91"
164-
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-1~bpo8+1-b14)
165-
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
162+
root@e6eb7c32b32d:/# java -version
163+
openjdk version "1.8.0_102"
164+
OpenJDK Runtime Environment (build 1.8.0_102-8u102-b14.1-1~bpo8+1-b14)
165+
OpenJDK 64-Bit Server VM (build 25.102-b14, mixed mode)
166166
----
167167

168168
A different version may be seen in your case. Exit out of the container by typing `exit` in the shell.

java/chapters/ch05-compose.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Complete set of REST APIs for this application are explained at https://github.c
200200

201201
== Stop Application
202202

203-
The application can be stopped using `docker-compose stop` command. This will remove the containers for each service defined in the Compose file, networks defined in the `networks` section of the Compose file, and the default network, if one is used.
203+
The application can be stopped using `docker-compose down` command. This will remove the containers for each service defined in the Compose file. It will also remove the networks defined in the `networks` section of the Compose file.
204204

205205
Remove the application as:
206206

@@ -218,7 +218,7 @@ Removing javaee_db_1 ... done
218218
Removing network javaee_default
219219
----
220220

221-
Alternatively, services can be stopped using `docker-compose stop` command:
221+
Alternatively, only services can be stopped using `docker-compose stop` command:
222222

223223
[source, text]
224224
----

java/chapters/ch06-swarm.adoc

+25-63
Original file line numberDiff line numberDiff line change
@@ -17,97 +17,60 @@ Initialize Swarm mode using the following command:
1717

1818
This starts a Swarm Manager. By default, manager node are also worker but can be configured to be manager-only.
1919

20-
Find some information about this one-node cluster as `docker swarm inspect`
21-
22-
[source, json]
23-
----
24-
[
25-
{
26-
"ID": "1j4c4vjtg3av5cd1g9cy74x09",
27-
"Version": {
28-
"Index": 11
29-
},
30-
"CreatedAt": "2016-07-15T20:51:55.579236936Z",
31-
"UpdatedAt": "2016-07-15T20:51:55.814661065Z",
32-
"Spec": {
33-
"Name": "default",
34-
"AcceptancePolicy": {
35-
"Policies": [
36-
{
37-
"Role": "worker",
38-
"Autoaccept": true,
39-
"Secret": "$2a$10$hWcg9QOi9Bsf2tWHf1bs5eK5URRqbiTSaqXCXm7sJBnGurHkLLnm6"
40-
},
41-
{
42-
"Role": "manager",
43-
"Autoaccept": false,
44-
"Secret": "$2a$10$hWcg9QOi9Bsf2tWHf1bs5eK5URRqbiTSaqXCXm7sJBnGurHkLLnm6"
45-
}
46-
]
47-
},
48-
"Orchestration": {
49-
"TaskHistoryRetentionLimit": 10
50-
},
51-
"Raft": {
52-
"SnapshotInterval": 10000,
53-
"LogEntriesForSlowFollowers": 500,
54-
"HeartbeatTick": 1,
55-
"ElectionTick": 3
56-
},
57-
"Dispatcher": {
58-
"HeartbeatPeriod": 5000000000
59-
},
60-
"CAConfig": {
61-
"NodeCertExpiry": 7776000000000000
62-
}
63-
}
64-
}
65-
]
66-
----
67-
68-
Get information about the cluster using the `docker info` command:
20+
Find some information about this one-node cluster using the command `docker info`
6921

7022
[source, text]
7123
----
7224
Containers: 0
7325
Running: 0
7426
Paused: 0
7527
Stopped: 0
76-
Images: 11
77-
Server Version: 1.12.0-rc4
28+
Images: 38
29+
Server Version: 1.12.1
7830
Storage Driver: aufs
7931
Root Dir: /var/lib/docker/aufs
8032
Backing Filesystem: extfs
81-
Dirs: 227
33+
Dirs: 321
8234
Dirperm1 Supported: true
8335
Logging Driver: json-file
8436
Cgroup Driver: cgroupfs
8537
Plugins:
8638
Volume: local
87-
Network: bridge overlay null host
39+
Network: host bridge overlay null
8840
Swarm: active
89-
NodeID: cr3bg6fkm6konsecfs4vchun6
90-
IsManager: Yes
41+
NodeID: 3sfo3bo6n8vhqzh0r18c2m6f4
42+
Is Manager: true
43+
ClusterID: 9nt6u2xaqsq2j5sb4jzmk4rea
9144
Managers: 1
9245
Nodes: 1
93-
CACertHash: sha256:4b43440f4138461747970ac7cd5234d1b7f9c29a01fdc2eaf04356572828974f
46+
Orchestration:
47+
Task History Retention Limit: 5
48+
Raft:
49+
Snapshot Interval: 10000
50+
Heartbeat Tick: 1
51+
Election Tick: 3
52+
Dispatcher:
53+
Heartbeat Period: 5 seconds
54+
CA Configuration:
55+
Expiry Duration: 3 months
56+
Node Address: 192.168.65.2
9457
Runtimes: runc
9558
Default Runtime: runc
9659
Security Options: seccomp
97-
Kernel Version: 4.4.15-moby
60+
Kernel Version: 4.4.20-moby
9861
Operating System: Alpine Linux v3.4
9962
OSType: linux
10063
Architecture: x86_64
10164
CPUs: 4
102-
Total Memory: 1.954 GiB
65+
Total Memory: 1.952 GiB
10366
Name: moby
104-
ID: OV7G:VQ4V:XVE6:VRRZ:OYIK:2ATM:R7E7:2MKC:43ZV:NUA2:TVVL:7W26
67+
ID: EZSJ:SFEA:65NS:CWJI:NHP4:TFHE:HF43:X6KR:FD2T:GHUQ:QN6T:N72P
10568
Docker Root Dir: /var/lib/docker
10669
Debug Mode (client): false
10770
Debug Mode (server): true
108-
File Descriptors: 37
109-
Goroutines: 136
110-
System Time: 2016-07-15T21:25:31.648058268Z
71+
File Descriptors: 35
72+
Goroutines: 121
73+
System Time: 2016-09-30T20:54:22.545443508Z
11174
EventsListeners: 1
11275
No Proxy: *.local, 169.254/16
11376
Username: arungupta
@@ -215,7 +178,6 @@ composeswarm_db_1 /entrypoint.sh couchbase-s ...
215178
composeswarm_web_1 /opt/jboss/wildfly/bin/sta ... Up 0.0.0.0:8080->8080/tcp,
216179
0.0.0.0:9990->9990/tcp
217180
----
218-
====
219181
220182
== Configure Couchbase server
221183

slides/docker-introduction.key

7.56 KB
Binary file not shown.

slides/docker-introduction.pdf

-73.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)