Document build process for e2sim docker 44/8344/1
authorsubhash kumar singh <subh.singh@samsung.com>
Wed, 18 May 2022 19:08:03 +0000 (19:08 +0000)
committersubhash kumar singh <subh.singh@samsung.com>
Wed, 18 May 2022 19:08:03 +0000 (19:08 +0000)
Documented build process for e2sim docker.

Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
Change-Id: I91e012813fba951cfec15fc4b82018e1292208f7

e2sim/README.md

index 2790b0d..fd99583 100644 (file)
@@ -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 <simulator-image-name> .
+```
+
+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 <simulator-image-name>
+``` 
+
+It will connect to specified e2t instance.
\ No newline at end of file