Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use docker-compose to manage services #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hwchiu
Copy link

@hwchiu hwchiu commented Sep 20, 2019

#1 and #2 issues are the same problems, we used the magic DNS name host.docker.internal in configuration files and it only works in docker in MAC environment, not Linux.

Mininet/P4Runtime Shell/ONOS

  • To fix this problem, I replace all previous scripts with docker-compose and makefile.
    By the docker-compose, we using simple Linux bridge to connect all containers together and then can access them its name. like mininet:50001.
  • P4Runtime shell should wait for the mininet to be ready, not container status, but the application status. and it's not supported by docker compose.
    I use another container to wait for it by testing the connection mininiet:50001
  • Already tested in MAC and Ubuntu.

netcfg

  1. Fix the wrong config file name in netfcg.json, it was netcfg-3switch but it should be netcfg.json.
  2. Use the makefile command to push netcfg to ONOS controller.
$ make netcfg

gnmi

  1. We need to attach the gnmi container to the same network running by docker-compose, and we can get it by adding the --network arguments in its docker run command.
  2. Add the command into Makefile and then wrap the arguments in a variable ARGS so that we can execute the gnmi command in the following way.
$ make ARGS="get xxxxxxx" gnmi

@hwchiu
Copy link
Author

hwchiu commented Oct 10, 2019

close when #5 be merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant