Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
namdets committed Dec 17, 2018
2 parents e7f336f + 3689cb7 commit cde402e
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

_Database is pre-populated with the CDC NHANES public dataset (41,474 patients with 1,300 variables per patient)_

Note: when you run this it will download about 40GB of data from the internet. Please be mindful of this if you are charged for data transfer.

## Docker Host Hardware Requirements

- 4 cpu cores
- 8GB RAM
- 128GB of free Hard Drive space
- [Docker for Mac](https://docs.docker.com/docker-for-mac) and [Docker for Windows](https://docs.docker.com/docker-for-windows/) are not supported unless you use docker-machine to create a VM that meets the requirements for RAM and Hard Drive space.
- [Docker for Mac](https://docs.docker.com/docker-for-mac) and [Docker for Windows](https://docs.docker.com/docker-for-windows/) are not supported unless you use [docker-machine](https://docs.docker.com/machine/install-machine/) to create a VM that meets the requirements for RAM and Hard Drive space.

## Docker Network Requirements

Expand All @@ -28,34 +26,44 @@ HTTPS_PORT=

## Deploy

```bash
$ cd deployments/i2b2transmart/release-18.1/quickstart
# Note: If you have already installed an older version of the Quickstart you must stop it before starting the new one. The best approach is to recreate your docker-machine from scratch.

# start by running the new PIC-SURE HPDS UI, it will give you something to do while the other images download.
```bash
$ docker-compose up -d nhaneshpds
```

# The i2b2/tranSMART images will take several minutes to become available, while you wait you should check out the new PIC-SURE HPDS UI which will be the landing page of your stack. Browse to your docker-machine IP to try it out as you wait for the remaining steps of the setup to complete. You will still need to check on each of the following steps as they will run into intermittent network failures while you download about 40GB of compressed data. To get to i2b2/tranSMART once the following steps have completed successfully, click the Advanced Phenotype Search button in the PIC-SURE UI.

## Note: when you run this next command it will download about 40GB of data from the internet. Please be mindful of this if you are charged for data transfer.

# images take several minutes to download, start by just downloading the DB image
```bash
$ docker-compose pull db
```

# NOTE: if you are running docker-compose version 1.21.0+
# and the pull command fails, try:
# $ docker-compose pull --no-parallel
# NOTE: if you are running docker-compose version 1.21.0+ and the pull command fails, try:
```bash
$ docker-compose pull --no-parallel db
```

# deploy database *first deploy only*
# database may hang here for a few minutes
```bash
$ export COMPOSE_HTTP_TIMEOUT=300
$ docker-compose up -d db
```

#download all other images while the DB starts up
# download all other images while the DB starts up
```bash
$ docker-compose pull
```

# deploy i2b2/tranSMART + fractalis
```bash
$ docker-compose up -d
```

# The i2b2/tranSMART images will take several minutes to become available, while you wait you should check out the new PIC-SURE HPDS UI which will be the landing page of your stack. To get to i2b2/tranSMART once it starts, click the Advanced Phenotype Search button.

### To stop and remove the stack

```bash
Expand All @@ -65,7 +73,7 @@ $ docker-compose down -v

## Test i2b2/tranSMART release-18.1

1. Browse to your docker machine IP
1. Browse to your docker machine IP and click the Advanced Phenotype Search link.

## Troubleshoot

Expand All @@ -77,4 +85,4 @@ Biggest point of failure is deploying the database for the first time. Due to it
https://discuss.i2b2transmart.org

## Docker-machine installation - MAC/Windows
https://tinyurl.com/docker-VM
https://tinyurl.com/docker-VM <- These are the unofficial instructions created for i2b2/tranSMART, they are probably out of date, use the official ones instead : https://docs.docker.com/machine/install-machine/

0 comments on commit cde402e

Please sign in to comment.