Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

 

Start the Docker Quickstart Terminal from the applications folder:

Code Block
languagebash
titleMac Start Docker Quickstart Terminal
Applications/Docker/Docker Quickstart Terminal.app

...

Install Docker from https://www.docker.com/products/docker#mac

If you are not familiar with Docker, read and study https://docs.docker.com/engine/getstarted/ - This goes through the "getting started" support of Docker, with Kitematic, the new GUI interface engine.

The first instructions below are for Kitematic (for Mac, Windows is similar), but they are incomplete...  If you are already comfortable with the command-line version of Docker, then you can probably use the Linux instructions on the separate page at HSPC Sandbox container.

1. If you want to use the new Kitematic GUI interface, then this what you will see in the Mac Applications Folder : 

   Image Added

Click on the Kitematic button, and you will get this:

     Image Added

Any Docker containers that are already installed are listed on the left-hand side.  You can start a container that is already installed by selecting it, and clicking the start button that appears.  There is also another button that will appear when you click in the left-hand side of the window for adding a new Docker from the

official Docker repository.

2. The rest of these instructions are for the use of the command-line tool started by clicking the "Docker Quickstart Terminal" button shown above.

 

Start Docker from the Mac applications folder, and select the Docker Quickstart Terminal icon:

  1. Determine a <parent directory> where you want to have the <hspc-docker local directory> local> installed. 
  2. Change In a separate terminal, change directories to the <parent directory>. 
  3. Copy the archive file furnished by Salvador to the <parent directory>, and expand it. 
  4. Change Switch back to the Docker terminal, and change directories to the expanded <hspc-docker localpath> local> directory:
  5. Build the hspc image in the Docker terminal:
Code Block
languagebash
titleMac Start Docker Quickstart Terminal
cd <hspc-docker localpath>
docker build -t="opencds/hspc" .

Create volume for hspc webappsmysql data:

Code Block
languagebash
titleMac Start Docker Quickstart Terminal
docker create -v /usrvar/locallib/tomcat/webappsmysql --name hspc-webappsmysql-data opencds/hspc /bin/true

Create hspc container:

Code Block
languagebash
titleMac Start Docker Quickstart Terminal
docker run --volumes-from hspc-webapps --volumes-from hspc-mysql-data -d -p 8080:8080 --name hspc opencds/hspc

# populate patientsvolume for hspc webapps:

Code Block
languagebash
titleMac Start Docker Quickstart Terminal
docker create -v /usr/local/tomcat/webapps --name hspc-webapps opencds/hspc /bin/true

 

Clone project bitbucket.org/hspconsortium/tools.gitCreate hspc container:

Code Block
languagebash
titleMac Start Docker Quickstart Terminal
docker createrun --volumes-v /usr/local/tomcat/webapps --name hspc-webapps opencds/hspc /bin/true

 

...

from hspc-webapps --volumes-from hspc-mysql-data -d -p 8080:8080 --name hspc opencds/hspc

3. Populate patients:

a. Using GIT, clone project bitbucket.org/hspconsortium/tools.git

b. Compile:

Code Block
languagebash
titleMac Start Docker Quickstart Terminal
mvn clean install

 

c. Change to the tools/target subdirectory

Code Block
languagebash
titleMac Start Docker Quickstart Terminal
cd tools/target

 java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/

d. Load data

Code Block
languagebash
titleMac Start Docker Quickstart Terminal
java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data

...


e. Load dstu2/usecase/schedule

Code Block
languagebash
titleMac Start Docker Quickstart Terminal
java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data -in datapack/dstu2/usecase/schedule

...


f. Load dstu2/starter

Code Block
languagebash
titleMac Start Docker Quickstart Terminal
java -jar hspc-tools.jar org.hspconsortium.DataLoad -url http://localhost:8080/hspc-reference-api/data -in datapack/dstu2/starter

...


4. Verify Correct Installation:

Code Block
languagebash
titleCreate container:
docker inspect hspc

...