Start the Docker Quickstart Terminal from the applications folder:
Applications/Docker/Docker Quickstart Terminal.app
- Determine <parent directory> where you want to have the <hspc-docker local directory> installed.
- Change to the <parent directory>.
- Copy the archive file furnished by Salvador to the <parent directory>, and expand it.
- Change to the <hspc-docker localpath> directory:
- Build the hspc image:
cd <hspc-docker localpath> docker build -t="opencds/hspc" .
Create volume for hspc webapps:
docker create -v /usr/local/tomcat/webapps --name hspc-webapps opencds/hspc /bin/true
Create hspc container:
docker run --volumes-from hspc-webapps --volumes-from hspc-mysql-data -d -p 8080:8080 --name hspc opencds/hspc
# populate patients
docker create -v /usr/local/tomcat/webapps --name hspc-webapps opencds/hspc /bin/true
Clone project bitbucket.org/hspconsortium/tools.git
docker create -v /usr/local/tomcat/webapps --name hspc-webapps opencds/hspc /bin/true
Compile and change to the tools subdirectory
mvn clean install
Change to the tools/target subdirectory
cd tools/target
java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data
java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data
java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data -in datapack/dstu2/usecase/schedule
java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data -in datapack/dstu2/usecase/schedule
java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data -in datapack/dstu2/starter
java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data -in datapack/dstu2/starter
# check where are the volumes
docker inspect hspc
# The sandbox must be running cd hspc/hsp-tools/tools/target java -jar hsp-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hsp-api/data
Test the Installation
- Open a browser and go to: http://localhost:8080/hsp-reference-apps
- Log in with "demo/demo"
- Select a patient
- Select an application
Issue a Test Query Against Your Unsecured RESTful API Server
http://localhost:8080/hsp-api/data/Patient?_format=json - This should result in aJSON FHIR bundle containing all the default patients in the system.