no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


en:rainbow [2022/07/19 17:48] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +کلون میکنیم و وارد فولدرش میشیم:
  
 +<code bash >
 +git clone https://github.com/cmu-able/rainbow.git
 +cd rainbow
 +</code>
 +
 +داکر را نصب میکنیم و بیلد میکنیم:
 +
 +<code bash >
 +sudo apt install docker.io
 +sudo docker build -t rainbow-build .
 +</code>
 +
 +این دستور ارور داد:
 +
 +<code bash >
 +sudo docker run -v "$PWD":/root/rainbow -it rainbow-build -p /root/rainbow -d rainbow-znn -t znews-ss -s install
 +</code>
 +
 +متن ارور:
 +
 +<code bash >
 +[INFO] --- buildnumber-maven-plugin:1.1:create (default) @ rainbow-znn ---
 +[INFO] Checking for local modifications: skipped.
 +[INFO] Updating project files from SCM: skipped.
 +[INFO] ------------------------------------------------------------------------
 +[INFO] BUILD FAILURE
 +[INFO] ------------------------------------------------------------------------
 +[INFO] Total time:  41.120 s
 +[INFO] Finished at: 2019-12-09T22:56:31Z
 +[INFO] ------------------------------------------------------------------------
 +[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.1:create (default) on project rainbow-znn: Execution default of goal org.codehaus.mojo:buildnumber-maven-plugin:1.1:create failed: The scm url cannot be null. -> [Help 1]
 +[ERROR] 
 +[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
 +[ERROR] Re-run Maven using the -X switch to enable full debug logging.
 +[ERROR] 
 +[ERROR] For more information about the errors and possible solutions, please read the following articles:
 +[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
 +</code>
 +
 +رفتیم سراغ این:
 +
 +<code bash >
 +sudo docker build -t cmuable/rainbow-example -f deployments/rainbow-example/Dockerfile .
 +sudo docker run -it --rm -p 6901:6901 --hostname rainbow-example cmuable/rainbow-example
 +</code>
 +
 +ترابلشوت:
 +
 +<code bash >
 +vim ../../src/modules/MTBrownoutServer.h
 +</code>
 +
 +پیدا کردن این خط:
 +
 +<code bash >
 +double cacheRequestCount;
 +</code>
 +
 +تغییر به این:
 +
 +<code bash >
 +int cacheRequestCount;
 +</code>
 +
 +نصب دیپندنسی:
 +
 +<code bash >
 +apt -y install build-essential gcc g++ bison flex perl python python3 qt5-default libqt5opengl5-dev tcl-dev tk-dev libxml2-dev zlib1g-dev default-jre doxygen graphviz libwebkitgtk-1.0
 +wget https://github.com/omnetpp/omnetpp/releases/download/omnetpp-5.5.1/omnetpp-5.5.1-src-core.tgz
 +tar xzvf omnetpp-5.5.1-src-core.tgz
 +cd omnetpp-5.5.1
 +. setenv
 +./configure WITH_OSG=no WITH_OSGEART=no
 +make -j4
 +</code>
 +
 +Rebuild queueinglib and SWIM with new Omnet version:
 +
 +<code bash >
 +cd /headless/seams-swim/queueinglib/
 +make clean
 +make -j4
 +cd /headless/seams-swim/swim/src
 +make clean
 +make -j4
 +</code>
 +
 +Run:
 +
 +<code bash >
 +cd /headless/seams-swim/swim/simulations/swim
 +./run.sh sim 5
 +</code>
 +
 +لیست کردن ایمیج‌های داکر در حال اجرا:
 +
 +<code bash >
 +sudo docker ps
 +</code>
 +
 +خروجی:
 +
 +<code bash >
 +CONTAINER ID        IMAGE                     COMMAND                  CREATED             STATUS              PORTS                              NAMES
 +8449667070a2        cmuable/rainbow-example   "/dockerstartup/vnc_…"   20 minutes ago      Up 20 minutes       5901/tcp, 0.0.0.0:6901->6901/tcp   eloquent_ardinghelli
 +</code>
 +
 +کامیت کردن یکیشون:
 +
 +<code bash >
 +sudo docker commit 8449667070a2  cmuable/rainbow-example:version2
 +</code>
 +
 +بررسی لیست ایمیج‌های موجود:
 +
 +<code bash >
 +sudo docker images
 +</code>
 +
 +
 +<code bash >
 +../../src//swim swim.ini -u Cmdenv -c sim -n ..:../../src/:../../../queueinglib:../../src -lqueueinglib -s --cmdenv-redirect-output=true -r 5
 +
 +<!> Error: Could not load NED sources from '..': Declared package '' does not match expected package 'plasa.simulations.swim.omnetpp-5.5.1.misc.topologyexport' in file TopologyExporter.ned
 +/headless/seams-swim/swim/simulations/swim/Makefile.vGVyI1:16: recipe for target 'run5' failed
 +make: *** [run5] Error 1
 +</code>