X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fe2-interface.git;a=blobdiff_plain;f=e2sim%2FREADME.md;fp=e2sim%2FREADME.md;h=fd995835490d6c7af38fd8faf2904641c971852b;hp=2790b0d9570c0389ab2fdb9f4b9fa5884bc9af99;hb=0eae7e61338d6bf71f01eb4356048525e9bc094e;hpb=9d3c57c629be529e6eb80fa8f62d15d7a8e61836 diff --git a/e2sim/README.md b/e2sim/README.md index 2790b0d..fd99583 100644 --- a/e2sim/README.md +++ b/e2sim/README.md @@ -95,4 +95,34 @@ E2SM Callback Functions: $ cmake .. -DDEV_PKG=1 $ make package +# Building docker image and running simulator instance +To start building docker image one should generate the `.deb` packages using following +commands : + +``` +$ cd build // create folder if not present +``` + +Generate .deb packages and move it to `e2sm_examples/kpm_e2sm` folder : +``` +cmake .. && make package && cmake .. -DDEV_PKG=1 && make package +cp *.deb ../e2sm_examples/kpm_e2sm/ +``` + +Now we are ready to build the docker image using below command : +``` +cd ../e2sm_examples/kpm_e2sm/ +docker build -t . +``` + +if you wish to change the e2t address to connect then modify the `Dockerfile` in `e2sm_examples/kpm_e2sm/` path. +``` +CMD kpm_sim 10.110.102.29 36422 +``` +Create instance of simulator : +``` +$ docker run +``` + +It will connect to specified e2t instance. \ No newline at end of file