...
Executing this docker-compose.yml file will create and launch the containers. Navigate to <path>/ccsdk/distribution/src/main/yml and enter the commands in the sample terminal session below (the credentials to login to NEXUS_DOCKER_REPO are docker:docker). You will see more output if If you are downloading the images executing this command for the first time, you will see output as the images are downloaded and extracted.
Code Block |
---|
|
%: cd ~/git/ccsdk/distribution/src/main/yaml/
%: echo $NEXUS_DOCKER_REPO
nexus3.onap.org:10001
%: echo $CCSDK_DOCKER_IMAGE_VERSION
0.3-STAGING-latest
%: docker login $NEXUS_DOCKER_REPO
Username (docker): docker
Password:
Login Succeeded
%: docker-compose up -d
Removing happy_noether
Removing ccsdk_sdnr_container
ccsdk_db_container is up-to-date
Starting ccsdk_odlsli_container ... done
Starting ccsdk_dgbuilder_container ... done
%: |
Concurrently, in an other terminal session, you can observe the progress of the launching of the CCSDK containers by using the command 'docker-compose logs -f,' which is similar to a 'tail -f' command.
Pulling db (mysql/mysql-server:5.6)...
5.6: Pulling from mysql/mysql-server
b0efbbec3b2e: Pull complete
8e6e4f7af9b1: Pull complete
eec4656740d1: Pull complete
8b211b61b1a0: Pull complete
Digest: sha256:7b98e112b35984811ca7bca963568508d6ff8bcc2f5b6b2ab27c7904e7bddb88
Status: Downloaded newer image for mysql/mysql-server:5.6
Pulling odlsli (nexus3.onap.org:10001/onap/ccsdk-odlsli-image:0.3-STAGING-latest)...
0.3-STAGING-latest: Pulling from onap/ccsdk-odlsli-image
6b51aaaf6d73: Pull complete
3f7a200f3556: Pull complete
d9a877cba71d: Pull complete
0d15639f94e1: Pull complete
4ea4d2cfdc50: Pull complete
75911c07ee2c: Pull complete
3bf025c6f4b3: Pull complete
212f5bf640e1: Pull complete
dcc9199ca5f6: Pull complete
b1db6eee88e2: Pull complete
05aa0c1f0ab6: Pull complete
f6e603372fc5: Pull complete
c4b04e9e266e: Pull complete
343aebc23b49: Pull complete
f0979cbb6c3b: Pull complete
9792711a23f5: Pull complete
d79e6928e946: Pull complete
e890641574b8: Pull complete
33a73540ec6c: Pull complete
Digest: sha256:f9e5c94dcbd2d4082d096f56750148233d9734731a3bf86da98fd6ac3e9b01fd
Status: Downloaded newer image for nexus3.onap.org:10001/onap/ccsdk-odlsli-image:0.3-STAGING-latest
Pulling dgbuilder (nexus3.onap.org:10001/onap/ccsdk-dgbuilder-image:0.3-STAGING-latest)...
0.3-STAGING-latest: Pulling from onap/ccsdk-dgbuilder-image
6b51aaaf6d73: Already exists
3f7a200f3556: Already exists
d9a877cba71d: Already exists
0d15639f94e1: Already exists
4ea4d2cfdc50: Already exists
75911c07ee2c: Already exists
0b529c7bd296: Pull complete
Creating ccsdk_db_container ... done
Creating ccsdk_odlsli_container ... done
Creating ccsdk_dgbuilder_container ... done
Creating ccsdk_odlsli_container ...
Creating ccsdk_dgbuilder_container ...
%: |
Concurrently, in an other terminal session, you can observe the progress of the launching of the CCSDK containers by using the command 'docker-compose logs -f,' which is similar to a 'tail -f' command.
Code Block |
---|
title | Viewing the docker-compose log |
---|
|
%: cd ~/git/ccsdk/distribution/src/main/yaml/
%: docker-compose logs -f
Attaching to ccsdk_dgbuilder_container, ccsdk_odlsli_container, ccsdk_db_container |
Code Block |
---|
title | Viewing the docker-compose log |
---|
|
%: cd ~/git/ccsdk/distribution/src/main/yaml/
%: docker-compose logs -f
Attaching to ccsdk_dgbuilder_container, ccsdk_odlsli_container, ccsdk_db_container
ccsdk_odlsli_container | Waiting for mysql
ccsdk_dgbuilder_container | ReleaseDir:sdnc1.0
ccsdk_dgbuilder_container | tput: No value for $TERM and no -T specified
ccsdk_dgbuilder_container | tput: No value for $TERM and no -T specified
ccsdk_dgbuilder_container | tput: No value for $TERM and no -T specified
ccsdk_dgbuilder_container | tput: No value for $TERM and no -T specified
ccsdk_odlsli_container | ..........
...
voluminous logging
...
ccsdk_odlsli_container | opendaylight-user@root>Waiting for mysql
ccsdk_odlsli_container |
ccsdk_odlsli_container | mysql ready
ccsdk_odlsli_container | Apache Karaf starting up. Press Enter to open the shell now...
ccsdk_odlsli_container | log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.sift.MDCSiftingAppender.
ccsdk_odlsli_container | log4j:WARN No such property [maxFileSize] in org.apache.log4j.sift.MDCSiftingAppender.
ccsdk_odlsli_container | log4j:WARN No such property [maxFileSize] in org.apache.log4j.sift.MDCSiftingAppender.
ccsdk_odlsli_container | log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.sift.MDCSiftingAppender.
ccsdk_dgbuilder_container | npm WARN node-red@0.9.1 license should be a valid SPDX license expression
ccsdk_dgbuilder_container |
ccsdk_dgbuilder_container | Welcome to Node-RED
ccsdk_dgbuilder_container | ===================
ccsdk_dgbuilder_container |
ccsdk_dgbuilder_container | 24 Jul 18:34:15 - [red] Version: 0.9.1
ccsdk_dgbuilder_container | 24 Jul 18:34:15 - [red] Loading palette nodes
ccsdk_dgbuilder_container | 24 Jul 18:34:15 - [red] Server now running at http://127.0.0.1:3100/
ccsdk_dgbuilder_container | 24 Jul 18:34:15 - [red] Flows file not found : /opt/onap/ccsdk/dgbuilder/releases/sdnc1.0/flows/flows.json
100% [========================================================================]
ccsdk_odlsli_container |
ccsdk_odlsli_container | ________ ________ .__ .__ .__ __
ccsdk_odlsli_container | \_____ \ ______ ____ ____ \______ \ _____ ___.__.| | |__| ____ | |___/ |_
ccsdk_odlsli_container | / | \\____ \_/ __ \ / \ | | \\__ \< | || | | |/ ___\| | \ __\
ccsdk_odlsli_container | / | \ |_> > ___/| | \| ` \/ __ \\___ || |_| / /_/ > Y \ |
ccsdk_odlsli_container | \_______ / __/ \___ >___| /_______ (____ / ____||____/__\___ /|___| /__|
ccsdk_odlsli_container | Waiting for mysql
ccsdk_dgbuilder_container \/|__| \/ \/ \/ \/\/ /_____/ \/| ReleaseDir:sdnc1.0
ccsdk_dgbuilder_container | tput: No value for $TERM and no -T specified
ccsdk_dgbuilder_container | tput: No value for $TERM and no -T specified
ccsdk_dgbuilder_container | tput: No value for $TERM and no -T specified
ccsdk_dgbuilder_container | tput: No value for $TERM and no -T specified
ccsdk_odlsli_container | ..........
...
voluminous logging
...
ccsdk_odlslidgbuilder_container | Welcome to Node-RED
ccsdk_odlslidgbuilder_container | Hit '<tab>' for a list of available commands
ccsdk_odlsli_container | and '[cmd] --help' for help on a specific command.
ccsdk_odlsli===================
ccsdk_dgbuilder_container |
ccsdk_dgbuilder_container | Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown OpenDaylight.
ccsdk_odlsli_container |
ccsdk_odlsli26 Jul 18:26:29 - [red] Version: 0.9.1
ccsdk_dgbuilder_container | 26 Jul 18:26:29 - [red] Loading palette nodes
ccsdk_dgbuilder_container | Karaf26 started in 10s. Bundle stats: 365 active, 366 total
Jul 18:26:30 - [red] Server now running at http://127.0.0.1:3100/
... |
There may be additional messages, but you can check the status CCSDK containers When you see the OpenDaylight banner, the CCSDK containers are running in your host, as shown below:
Code Block |
---|
title | View running docker containers |
---|
|
%: docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a2f93b2a812a7fd4d8d8ab15 nexus3.onap.org:10001/onap/ccsdk-dgbuilder-image:0.2.43-STAGING-latest "/bin/bash -c 'cd /o…" 32 weeksminutes ago Up 2 hoursminutes 0.0.0.0:3000->3100/tcp ccsdk_dgbuilder_container
744e3cc8a7fbcded16733254 nexus3.onap.org:10001/onap/ccsdk-odlsli-image:0.2.43-STAGING-latest "/opt/onap/ccsdk/bin…" 32 weeksminutes ago Up 2 hoursminutes 0.0.0.0:8383->8181/tcp ccsdk_odlsli_container
232ec2acbd1b1880decd2cfc mysql/mysql-server:5.6 "/entrypoint.sh mysq…" 32 weeksminutes ago Up 32 weeksminutes (healthy) 0.0.0.0:3278732789->3306/tcp ccsdk_db_container
|
You can browse to the OpenDaylight apidoc/explorer. Note that port 8383 in the host is forwarded to port 8181 in the odlsli container, and the credentials are not the usual "admin:admin." The password is shown below in the annotated startODL.sh file.
![](/download/attachments/38112419/apidoc-explorer.JPG?version=2&modificationDate=1532467785000&api=v2)
Working with the CCSDK containers
...