Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Make the following changes :

  • In Cytomine_boostrap directory
    • Go to the nginx subdirectory, edit the nginx/deploy.sh file, at the top of the file the command:
    • Replace       sed -i "s/CORE_ALIAS/core/g" /tmp/nginx.conf.sample       by           sed -i "s/CORE_ALIAS/$(route -n | awk '/UG[ \t]/{print $2}'/g" /tmp/nginx.conf.sample
  • In the Cytomine-core/grails-app/conf/Config.groovy file of your Cytomine-core project (in your IDE):
    • Edit the value grails.serverURL (development part) by "http://CORE_URL:8080" (example : "http://localhost-core:8080").
    • Edit the value grails.imageServerURL (development part) by your IMS_URL (on port 80, e.g. "http://localhost-ims:80").
    • Change the storage_path by where you will store the images (e.g. "/data/"). 
    • Below the previous line, add a line storage_buffer="/tmp/" (or another temp directory).
    • Update the value grails.adminPassword by the default password of the admin user
    • Don't forget to fill the grails.notification variables
Don't forget to add
  • Add the local URLs (e.g. 127.0.0.1 localhost-core) to your /etc/hosts (as explained on the page in the section "If you deploy on a local host").
  • Add the line "127.0.0.1   rabbitmq" to you /etc/hosts file

At the end, in IntelliJ, in the "Run" menu toolbar, Go to "Edit configurations" edit the Command Line by "-reloading -Dserver.port=8080 run-app -echoOut --stacktrace -nocoverage --verbose" 

In Cytomine-boostrap directory, you can now run the script start_deploydev.sh. This will deploy the Docker containers:

Code Block
sudo ./start_deploydev.sh 

In IntelliJ, you can now run the Cytomine-core project that will simulate a server at the grails.serverURL mentionned above. So in this example you can now access the core development server at http://CORE_URL:8080 to test your core dev environment. It will rely on other containers installed by Docker but use your own core development container.

...

At the end, in IntelliJ, in the "Run" menu toolbar, Go to "Edit configurations" edit the Command Line by "-reloading -Dserver.port=9080 run-app -echoOut --stacktrace -nocoverage --verbose".

In Cytomine-boostrap directory, you can now run the script start_dev.sh. This will deploy the Docker containers:

Code Block
sudo ./start_dev.sh 

In IntelliJ, you can now run the Cytomine-core and Cytomine-ims projects that will simulate a server. So in this example you can now access the core development server at http://CORE_URL:8080 to test your core dev environment. It will rely on other containers installed by Docker but use your own core and ims development containers.

...