1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright 2017 Huawei Technologies Co., Ltd.
8 Verify that docker images are built
9 ------------------------------------
13 docker images openecomp/mso
17 REPOSITORY TAG IMAGE ID CREATED SIZE
19 openecomp/mso 1.1-SNAPSHOT-latest 419e9d8a17e8 3 minutes ago 1.62GB
21 openecomp/mso 1.1.0-SNAPSHOT-STAGING-20170926T2015 419e9d8a17e8 3 minutes ago 1.62GB
23 openecomp/mso latest 419e9d8a17e8 3 minutes ago 1.62GB
25 Start the mariadb container
26 ----------------------------
30 cd $HOME/onap/workspace/SO/docker-config
32 MTU=1500 docker-compose up mariadb
38 . . . many lines omitted . . .
39 mariadb_1 | Version: '10.1.11-MariaDB-1~jessie-log' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
41 Log into the mariadb container and run the mysql client program
42 ---------------------------------------------------------------
46 docker exec -it dockerconfig_mariadb_1 /bin/bash
47 mysql -uroot -ppassword
49 Start the mso container
50 -----------------------
54 cd $HOME/onap/workspace/SO/docker-config
56 MTU=1500 docker-compose up mso
62 . . . many lines omitted . . .
63 mso_1 | 20:59:31,586 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.1.0.Final
64 (WildFly Core 2.2.0.Final) started in 59937ms - Started 2422 of 2747 services (604 services are lazy, passive or
67 Log into the mso container
68 --------------------------
72 docker exec -it dockerconfig_mso_1 /bin/bash
74 Inspect a docker image
75 ----------------------
77 This command shows interesting information about the structure of the mso image. Note that an image is NOT a running container. It is the template that a container is created from.
81 docker inspect openecomp/mso
86 "Id": "sha256:419e9d8a17e8d7e876dfc36c1f3ed946bccbb29aa6faa6cd8e32fbc77c0ef6e5",
88 "openecomp/mso:1.1-SNAPSHOT-latest",
89 "openecomp/mso:1.1.0-SNAPSHOT-STAGING-20170926T2015",
90 "openecomp/mso:latest"
93 "Parent": "sha256:70f1ba3d6289411fce96ba78755a3fd6055a370d33464553d72c753889b12693",
95 "Created": "2017-09-26T20:40:10.179358574Z",
96 "Container": "284aa05909390a3c0ffc1ec6d0f6e2071799d56b08369707505897bc73d2ea30",
98 "Hostname": "6397aa10f0c4",
101 "AttachStdin": false,
102 "AttachStdout": false,
103 "AttachStderr": false,
111 "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
116 "JBOSS_HOME=/opt/jboss",
117 "CHEF_REPO_NAME=chef-repo",
118 "CHEF_CONFIG_NAME=mso-config"
124 "CMD [\"/opt/mso/scripts/start-jboss-server.sh\"]"
127 "Image": "sha256:70f1ba3d6289411fce96ba78755a3fd6055a370d33464553d72c753889b12693",
135 "Description": "This image contains the ONAP SO",
139 "DockerVersion": "17.05.0-ce",
140 "Author": "\"The ONAP Team\"",
142 "Hostname": "6397aa10f0c4",
145 "AttachStdin": false,
146 "AttachStdout": false,
147 "AttachStderr": false,
155 "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
160 "JBOSS_HOME=/opt/jboss",
161 "CHEF_REPO_NAME=chef-repo",
162 "CHEF_CONFIG_NAME=mso-config"
165 "/opt/mso/scripts/start-jboss-server.sh"
168 "Image": "sha256:70f1ba3d6289411fce96ba78755a3fd6055a370d33464553d72c753889b12693",
176 "Description": "This image contains the ONAP SO",
180 "Architecture": "amd64",
183 "VirtualSize": 1616881263,
191 "sha256:a2022691bf950a72f9d2d84d557183cb9eee07c065a76485f1695784855c5193",
192 "sha256:ae620432889d2553535199dbdd8ba5a264ce85fcdcd5a430974d81fc27c02b45",
193 . . . many lines omitted . . .
194 "sha256:0f9e9dacce9191617e979f05e32ee782b1632e07130fd7fee19b0b2d635aa006",
195 "sha256:84572c6389f8ae41150e14a8f1a28a70720de91ab1032f8755b5449dc04449c9"
201 Log into the mso image
202 -----------------------
204 This command allows you to inspect the files inside the mso image. Note that an image is NOT a running container. It is the template that a container is created from.
208 docker run -it --entrypoint=/bin/bash openecomp/mso -i