Skip to content

Instantiate the new ChRIS that uses the new Flask based pfcon

Jorge edited this page Feb 17, 2021 · 13 revisions

ChRIS based on the new Flask pfcon

Abstract

This page provides instructions to instantiate and test the new ChRIS that uses the new Flask-based pfcon and pman microservices

Instantiate the new ChRIS

  1. Build local pman
git clone https://github.com/FNNDSC/pman.git
cd pman
git checkout flask
docker build -t local/pman .
  1. Build local pfcon
git clone https://github.com/FNNDSC/pfcon.git
cd pfcon
git checkout flask
docker build -t local/pfcon .
  1. Build local CUBE
git clone https://github.com/FNNDSC/ChRIS_ultron_backEnd.git
cd ChRIS_ultron_backEnd
git checkout pfcon_flask
docker build -t local/chris:dev -f Dockerfile_dev .
  1. Run CUBE

In docker-compose_dev.yml change CHRISREPO, PFCONREPO and PMANREPO to local

cd ChRIS_ultron_backEnd
./make.sh

Optionally add an additional remote environment with an interactive pfcon on another terminal for deeper testing

  1. Build local dev pfcon
cd pfcon
git checkout flask
docker build -t local/pfcon:dev -f Dockerfile_dev .
  1. Modify pfcon/docker-compose_dev.yml to use local/pfcon:dev and local/pman

  2. Run interactive pfcon

cd pfcon
mkdir -p FS/remote
export STOREBASE=$(pwd)/FS/remote
docker-compose -f docker-compose_dev.yml run --service-ports pfcon_service
  1. Add the new pfcon-pfioh-pman instances as a remote environment
chris_dev=$(docker ps -f ancestor=local/chris:dev -f name=chris_dev -q)
docker exec $chris_dev python plugins/services/manager.py add ipfcon http://<your_machine_ip_addr>:5006  --description "Interactive pfcon"
  1. Register your testing plugins with the new ipfcon compute resource

Upload your test plugin to the ChRIS store (e.g. pl-fshack):

./utils/scripts/upload_plugin.sh chris pl-fshack fnndsc/pl-fshack https://github.com/FNNDSC/pl-fshack

Register your test plugin with the ipfcon compute resource

docker exec $chris_dev python plugins/services/manager.py register ipfcon --pluginname pl-fshack