commit | 98548425c2c318eb81794f5d793a2f70293f9ce7 | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <matteo.scandolo@gmail.com> | Fri Sep 11 14:56:34 2020 -0700 |
committer | Matteo Scandolo <matteo.scandolo@gmail.com> | Fri Sep 11 14:56:38 2020 -0700 |
tree | cd20a300f9eecbe7db502d170042c661b5624c71 | |
parent | af39e1d244344ca2211a8bda447e004863c88936 [diff] |
Releasing voltha-onos:4.1.5 (Version 4.1.4 was already released and the -dev was wrongly set) Change-Id: I7b718001a5b02d41ee36d1637077b7adb048bcc5
Docker build environment capable of producing a version of onos and needed apps that can run with voltha. Typically the onos restful api would be used to include apps after onos is started. This provides a build environment that includes current released and enabled oar files or optionally can import locally built oar files.
By default the current set of onos apps is imported from a maven repository as read from dependencies.xml
.
make build
If you wish to include your own onos apps then export the LOCAL_ONOSAPPS
environment variable to have locally built oar files copied from local_imports/oar
into the docker build environment rather than pulling from maven. Any oar files in this directory will be included and set to start on onos startup.
Note! its assumed that the standard apps (olt-app, sadis, aaa, and dhcpl2relay) build environment is one up directory from this build environment. Modify get-local-oars.sh
if this is not the case:
export LOCAL_ONOSAPPS=true make build
The voltha-onos build also includes a mechanism to build in a default onos network-config.json
file. You can simply edit network-cfg.json
before building the docker image. Or if using docker-compose or k8s volume mount over the built in file within the container /root/onos/config/network-cfg.json
with your own.
For example, in a docker-compose file:
onos: image: "${DOCKER_REGISTRY}${DOCKER_REPOSITORY}voltha-onos:${DOCKER_TAG}" ports: - "8101:8101" # ssh - "6653:6653" # OF - "8181:8181" # UI environment: ONOS_APPS: 'drivers,openflow-base' volumes: - "/var/run/docker.sock:/tmp/docker.sock" - "./network-cfg.json:/root/onos/config/network-cfg.json" networks: - default restart: unless-stopped