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:// | ||
+ | cd rainbow | ||
+ | </ | ||
+ | |||
+ | داکر را نصب میکنیم و بیلد میکنیم: | ||
+ | |||
+ | <code bash > | ||
+ | sudo apt install docker.io | ||
+ | sudo docker build -t rainbow-build . | ||
+ | </ | ||
+ | |||
+ | این دستور ارور داد: | ||
+ | |||
+ | <code bash > | ||
+ | sudo docker run -v " | ||
+ | </ | ||
+ | |||
+ | متن ارور: | ||
+ | |||
+ | <code bash > | ||
+ | [INFO] --- buildnumber-maven-plugin: | ||
+ | [INFO] Checking for local modifications: | ||
+ | [INFO] Updating project files from SCM: skipped. | ||
+ | [INFO] ------------------------------------------------------------------------ | ||
+ | [INFO] BUILD FAILURE | ||
+ | [INFO] ------------------------------------------------------------------------ | ||
+ | [INFO] Total time: 41.120 s | ||
+ | [INFO] Finished at: 2019-12-09T22: | ||
+ | [INFO] ------------------------------------------------------------------------ | ||
+ | [ERROR] Failed to execute goal org.codehaus.mojo: | ||
+ | [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:// | ||
+ | </ | ||
+ | |||
+ | رفتیم سراغ این: | ||
+ | |||
+ | <code bash > | ||
+ | sudo docker build -t cmuable/ | ||
+ | sudo docker run -it --rm -p 6901:6901 --hostname rainbow-example cmuable/ | ||
+ | </ | ||
+ | |||
+ | ترابلشوت: | ||
+ | |||
+ | <code bash > | ||
+ | vim ../ | ||
+ | </ | ||
+ | |||
+ | پیدا کردن این خط: | ||
+ | |||
+ | <code bash > | ||
+ | double cacheRequestCount; | ||
+ | </ | ||
+ | |||
+ | تغییر به این: | ||
+ | |||
+ | <code bash > | ||
+ | int cacheRequestCount; | ||
+ | </ | ||
+ | |||
+ | نصب دیپندنسی: | ||
+ | |||
+ | <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:// | ||
+ | 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: | ||
+ | |||
+ | <code bash > | ||
+ | cd / | ||
+ | make clean | ||
+ | make -j4 | ||
+ | cd / | ||
+ | make clean | ||
+ | make -j4 | ||
+ | </ | ||
+ | |||
+ | Run: | ||
+ | |||
+ | <code bash > | ||
+ | cd / | ||
+ | ./run.sh sim 5 | ||
+ | </ | ||
+ | |||
+ | لیست کردن ایمیجهای داکر در حال اجرا: | ||
+ | |||
+ | <code bash > | ||
+ | sudo docker ps | ||
+ | </ | ||
+ | |||
+ | خروجی: | ||
+ | |||
+ | <code bash > | ||
+ | CONTAINER ID IMAGE | ||
+ | 8449667070a2 | ||
+ | </ | ||
+ | |||
+ | کامیت کردن یکیشون: | ||
+ | |||
+ | <code bash > | ||
+ | sudo docker commit 8449667070a2 | ||
+ | </ | ||
+ | |||
+ | بررسی لیست ایمیجهای موجود: | ||
+ | |||
+ | <code bash > | ||
+ | sudo docker images | ||
+ | </ | ||
+ | |||
+ | |||
+ | <code bash > | ||
+ | ../ | ||
+ | |||
+ | <!> Error: Could not load NED sources from ' | ||
+ | / | ||
+ | make: *** [run5] Error 1 | ||
+ | </ |