Add Dockerized example (no code or version change)
[ric-plt/xapp-frame-py.git] / examples / README.md
1 # Python xapp frame
2
3 # Running locally
4
5 Running the two examples (adjust for your shell notation)
6
7     pip install --user -e .
8     cd examples
9     set -x LD_LIBRARY_PATH /usr/local/lib/:/usr/local/lib64; set -x  RMR_SEED_RT test_route.rt; python pong_xapp.py
10     (diff tmux window)
11     set -x LD_LIBRARY_PATH /usr/local/lib/:/usr/local/lib64; set -x  RMR_SEED_RT test_route.rt; python ping_xapp.py
12
13 # Running in Docker
14
15     docker build -t ping:latest -f  Dockerfile-Ping .
16     docker build -t pong:latest -f  Dockerfile-Pong .
17     docker run -i --net=host ping:latest
18     docker run -i --net=host pong:latest