Build & Run RadioLogicCreator - mbarnig/RadioLogic GitHub Wiki
If you followed the tutorial about the Orthanc plugin development, you know how to build the RadioLogicCreator plugin. The building process is similar.
If your RadioLogicDevelopment Docker container is still running, you can attach it to your terminal with the command
docker attach RadioLogicDevelopment
If the container was stopped, you must first restart it with the command
docker restart RadioLogicDevelopment
If the container was deleted, you must create and run a new one with the command
docker container run -it --name RadioLogicDevelopment clean-snapshot /bin/bash
If you never committed the clean-snapshot Docker image, you will find in lesson 6 tips how to download this image from the Docker Hub.
docker pull mbarnig/radiologic-development
docker container run -it --name RadioLogicDevelopment mbarnig/radiologic-development /bin/bash
If you have successfully logged-in into your development container with your SSH-Terminal (see lesson 1), you must first check that you are located at root in the container and enter the following commands:
cd /
mkdir RadioLogicCreator
cd RadioLogicCreator
wget https://raw.githubusercontent.com/mbarnig/RadioLogic/master/RadioLogicCreator/radiologiccreator.zip
unzip radiologiccreator.zip
rm radiologiccreator.zip
cd RadioLogicCreator
mkdir Build
cd Build
cmake -DSTATIC_BUILD=ON -DCMAKE_BUILD_TYPE=Release ../
make
If the build process terminates successfully, you should copy the plugin library into the /radiologicarchive/plugins/ folder of your host.
docker cp RadioLogicDevelopment:/RadioLogicCreator/Build/libRadioLogicCreator.so /volume1/radiologicarchive/plugins/libRadioLogicCreator.so
You must also add the content of the /RadioLogicCreator/WebApplication/ folder into the /radiologicarchive/serve-folders/ folder of your host. Download the file radiologiccreatorwebapplication to your desktop, then upload it with the Synology File Station to your diskstation in the related folder, extract the content with the pop-up menu in the File Station and check that all the following files are listed.
- radiologicarchive.html
- favicon.ico
- js/radiologicarchive.js
- js/jquery.mobile.simpledialog2.js
- css/radiologicarchive.css
- css/jquery.mobile.simpledialog.min.css
- images/ajax-loder.gif
Don't forget to delete the zip file from the folder after the successful extraction.
Now we can restart our RadioLogicArchive container with the RadioLogicCreator plugin.
