The Virtual Imaging Platform is a web portal for pipeline execution on distributed systems. An instance of this portal deployed on the European Grid Infrastructure is accessible at https://vip.creatis.insa-lyon.fr.
The VIP logo was designed by Max Langer under the CC BY-NC-SA license.
Your Git username and email should be set to your First-Last name and actual email:
git config --global user.name "Jeanne Tartempion" # not "tartempion" or "jtartempion" or "root"
git config --global user.email "jeanne.tartempion@university.fr" # not "root@localhost"
Developments are made in forks from the base repository. Developments lead to pull-requests that are merged by the owner(s) of the base repository.
Starting from release 1.15, we adopt the branching model described here.
When working on a new feature:
git checkout -b new_feature develop
master
, develop
, release-*
, or hotfix-*
.When feature development is finished:
You can follow the instruction here
You can contact us at vip-support@creatis.insa-lyon.fr for precisions.
It is possible to launch a local vip instance in a tomcat on a linux machine. This is only useful for testing purposes as most of the features are simulated and many are still to be implemented and do not work yet. Here are the instructions to configure a local vip instance :
/path/to/vip/local/folder
will be its path used in the next instructionslocal-config.zip
archive available in vip-local/src/main/resources
in /path/to/vip/local/folder
. This should contain 3 .conf
files$HOME/.vip
directory and a $HOME/.vip/local-config-folder.properties
filevipConfigFolder = /path/to/vip/local/folder
in the $HOME/.vip/local-config-folder.properties
fileThen, install vip in your local tomcat :
mvn clean package
at the root of the VIP-portal
project.vip-portal/target/vip-portal-[...]-local.war
file in the $TOMCAT_HOME/webapps
directory$TOMCAT_HOME/conf/context.xml
(database jndi configuration), and edit path/to/vip/local/folder/vip
to the real path in url
<Resource name="jdbc/vip" auth="Container" type="javax.sql.DataSource"
username="sa"
password=""
driverClassName="org.h2.Driver"
description="VIP local h2 Connection"
url="jdbc:h2:/path/to/vip/local/folder/vip"
maxActive="100"
maxIdle="50" />
$TOMCAT_HOME/bin/setenv.sh
file with these lines (edit path/to/vip/local/folder/vip
to the real path) :export CATALINA_OPTS="$CATALINA_OPTS -Dspring.profiles.active=local,config-file,jndi-db"
export CATALINA_OPTS="$CATALINA_OPTS -DvipConfigFolder=/path/to/vip/local/folder"
bin/startup.sh
). Access vip on localhost:8080/vip-portal-[...]-local
(adapt with the war name and your tomcat host/port configuration)admin@vip-local-test.local
/localAdminPassword
.$HOME/.vip/vip.log
fileVIP API can be secured with keycloak by adding keycloak.json in the vip config folder after updating the parameters it should look like :
{
"realm": "<name-of-realm>",
"auth-server-url": "http://localhost:8180/auth/",
"ssl-required": "none",
"use-resource-role-mappings" : true,
"bearer-only" : true,
"resource": "<client ID>",
"public-client": true,
"disable-trust-manager": true,
"credentials" : {
"secret" : "<credential-secret>"
}
}
$ cd keycloak/bin
$ ./standalone.sh -Djboss.socket.bidning.port-offset=100
or in windows :
> standalone.bat -Djboss.socket.bidning.port-offset=100
Import the collection vip-keycloak.postman_collection.json to postman, this collection is an example that can test the following endpoints:
/rest/pipelines
to test the VipUser compatibility with keycloak/rest/statistics/users
to test roles