-
Notifications
You must be signed in to change notification settings - Fork 17
Instantiate the new ChRIS that uses the new Flask based pfcon
Jorge edited this page Feb 17, 2021
·
13 revisions
This page provides instructions to instantiate and test the new ChRIS that uses the new Flask-based pfcon and pman microservices
- Build local pman
git clone https://github.com/FNNDSC/pman.git
cd pman
git checkout flask
docker build -t local/pman .
- Build local pfcon
git clone https://github.com/FNNDSC/pfcon.git
cd pfcon
git checkout flask
docker build -t local/pfcon .
- 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 .
- 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
- Build local dev pfcon
cd pfcon
git checkout flask
docker build -t local/pfcon:dev -f Dockerfile_dev .
-
Modify
pfcon/docker-compose_dev.yml
to uselocal/pfcon:dev
andlocal/pman
-
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
- 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"
- 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