Applications/Docker/Docker Quickstart Terminal.app
Clone the Bitbucket project for hspc-docker from: <hspc-docker path> and build it with Docker:
cd <hspc-docker path> 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:
sudo docker run --volumes-from hspc-webapps --volumes-from hspc-mysql-data -d -p 8080:8080 --name hspc opencds/hspc
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.