For module tests and first integration test it is beneficial to create a "stand-alone" instance of ONAP SDN-R. Such version can run on a single developer system.
...
Check the versions:
Code Block |
---|
|
$ docker --version
Docker version 19.03.8, build afacb8b7f0
$ docker-compose --version
docker-compose version 1.27.2, build 18f557f |
For IPv6 support a docker configuration by creating /etc/docker/daemon.json is required.
Code Block |
---|
|
$ sudo -s
sudo$ cat <<EOT >> /etc/docker/daemon2daemon.json
{
"insecure-registries": ["10.20.6.10:30000"],
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3"
},
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64"
}
EOT
$ exit
$ sudo systemctl cat /etc/docker/daemon.json
{
"insecure-registries": ["10.20.6.10:30000"],
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3"
},
"ipv6": true,
"fixed-cidr-v6": "2001:db8:1::/64"
}
|
The quick path
Basic installation
- Tested with Ubuntu 20.04
- Further tools:
- chromium, curl
- docker 18.09.2
- xmllint (sudo apt install libxml2-utils)
- Hava a user with admin rights.
- Add user to "docker" group.
Note |
---|
HINT: You need to log out from server completely to activate this setting!! |
Code Block |
---|
|
sudo usermod -aG docker $USER |
- Maven configuration for ONAP Nexus (onap should be within settings file) Warning: Previouse configuration is overwritten by command!
Code Block |
---|
|
#Warning: Previouse configuration is overwritten by command!
wget git.onap.org/oparent/plain/settings.xml -P $HOME/.m2 |
- Download and clone repository with onap-oof-pci project to $HOME/ccsdk
Code Block |
---|
cd $HOME
git clone https://github.com/onap-oof-pci-poc/ccsdk.gitrestart docker |
Docker compose configuration
A docker-compose.yaml file contains all the configuration required to run the different docker images, which are used to verify the different functions of ONAP SDN-R.
The following file is used to configure and run
- SDN-R Controller (ODL with SDN-R extensions
- SDN-R data cache (ElasticSearch)
- VES-Collector and DMaaP
- O-RAN-SC Simulator as NetConf-Server and VES emitter
Code Block |
---|
|
mkdir onap-sdnr-standalone
cd onap-sdn-standalone
|
TBD
docker network create \
--ipv6 \
--driver=bridge \
--subnet=172.50.0.0/16 \
--subnet=2001:3984:3989::/64 \
--gateway=172.50.0.1 \
--gateway=2001:3984:3989::1 \
oam
Build and run single node SDN-R
...