Action unknown: backlinkmenuitem

کلون میکنیم و وارد فولدرش میشیم:

git clone https://github.com/cmu-able/rainbow.git
cd rainbow

داکر را نصب میکنیم و بیلد میکنیم:

sudo apt install docker.io
sudo docker build -t rainbow-build .

این دستور ارور داد:

sudo docker run -v "$PWD":/root/rainbow -it rainbow-build -p /root/rainbow -d rainbow-znn -t znews-ss -s install

متن ارور:

[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

رفتیم سراغ این:

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

ترابلشوت:

vim ../../src/modules/MTBrownoutServer.h

پیدا کردن این خط:

double cacheRequestCount;

تغییر به این:

int cacheRequestCount;

نصب دیپندنسی:

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

Rebuild queueinglib and SWIM with new Omnet version:

cd /headless/seams-swim/queueinglib/
make clean
make -j4
cd /headless/seams-swim/swim/src
make clean
make -j4

Run:

cd /headless/seams-swim/swim/simulations/swim
./run.sh sim 5

لیست کردن ایمیج‌های داکر در حال اجرا:

sudo docker ps

خروجی:

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

کامیت کردن یکیشون:

sudo docker commit 8449667070a2  cmuable/rainbow-example:version2

بررسی لیست ایمیج‌های موجود:

sudo docker images
../../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