Sign inSign up

i2b2/act-web

By i2b2

•Updated over 8 years ago

Docker Image for i2b2 Web Client with ACT Plugins

Image
0

984

i2b2/act-web repository overview

⁠Instructions

Steps to run this docker container which will launch the i2b2 Web Client with ACT Plugins (Beta) on your host machine's port 5001.

  1. Pull docker image from dockerhub repository
docker pull i2b2/act-web
  1. Launch docker container using docker image, and pass 3 environmental variables to container {$inShrine} = SHRINE admin URL, e.g. http://localhost:port/shrine/rest/i2b2/admin/request⁠ {$inDomain} = i2b2 domain, e.g. i2b2demo {$inPM} = i2b2 PM cell URL (with trailing slash), e.g. http://services.i2b2.org/i2b2/services/PMService/⁠
docker run --name=act_container -d -e shrineURL={$inShrine} -e i2b2Domain={$inDomain} -e i2b2PMURL={$inPM} -p 5001:80 i2b2/act-web
  1. Run in web browser Open http://hostname:5001⁠ in your browser (e.g. http://localhost:5001⁠)

⁠Notes

  • Tested in native Docker engine (on CentOS 7 and Windows 10) and Docker Toolbox (on Windows 7)

⁠Helper script

Below is a helper bash/shell script to assist in Step 2 (above). The script prompts you for the 3 environmental parameters (SHRINE admin URL, i2b2 domain, and i2b2 PM cell URL) and launches the docker container for you. Copy and paste the script to launcher.sh and run ./launcher.sh

#!/bin/bash
echo
tput setaf 6;echo 'This script will run the act docker image.'
echo 'Command results stored in ACTstart.log';tput sgr0
echo
tput setab 4 tput setaf 0;read -p 'Enter in your SHRINE URL: ' inShrine
read -p 'Enter in your domain: ' inDomain
read -p 'Enter in your PM cell URL: ' inPM;tput sgr0
echo
tput setaf 6;echo 'Now starting the ACT container. Please wait...';tput sgr0
echo
runCmd="docker run --name=act_container -d -e shrineURL=$inShrine -e i2b2Domain=$inDomain -e i2b2PMURL=$inPM   -p 5001:80 i2b2/act-web"
echo -e "run command $runCmd\n" > ACTstart.log
$runCmd
echo
docker-machine ip &>/dev/null
rc=$?
if [ $rc -ne 0 ]
  then  
  host="your_hostname"
  else
	dmIP=$(echo $(docker-machine ip))
	host=$dmIP
fi
tput setaf 2;echo "ACT container should be running at http://$host:5001/";tput sgr0
echo

Tag summary

Content type

Image

Digest

Size

302.3 MB

Last updated

over 8 years ago

docker pull i2b2/act-web