From 0eae7e61338d6bf71f01eb4356048525e9bc094e Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Wed, 18 May 2022 19:08:03 +0000 Subject: [PATCH] Document build process for e2sim docker Documented build process for e2sim docker. Signed-off-by: subhash kumar singh Change-Id: I91e012813fba951cfec15fc4b82018e1292208f7 --- e2sim/README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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 -- 2.16.6