Option 2: Setup sample tracking database using Docker

Start by installing docker-compose and downloading our sharing code

git clone --recurse-submodules https://bitbucket.org/NIAGADS/vcpa-web-api.git

Then go into the vcpa-web-api folder

cd vcpa-web-api

and fill in the information to the .env file as shown below:

$ vi .env
DB_NAME= ### tracking database name
DB_USER= ### tracking database user name
DB_PASSWORD= ### tracking database password
DB_HOST= ### tracking database host
AWS_ACCESS_KEY_ID= ### AWS access key ID
AWS_SECRET_ACCESS_KEY= ### AWS secret access key
AWS_REGION= ### AWS region

Users can verify their outcome by typing: docker-compose up; below is an example of what you will see


Successfully built af8f84acc855

Successfully tagged gcadwebapi_web:latest

Recreating gcadwebapi_web_1 ...

Recreating gcadwebapi_web_1 ... done

Attaching to gcadwebapi_mysql_1, gcadwebapi_web_1

mysql_1 | [Entrypoint] MySQL Docker Image 5.7.21-1.1.4

mysql_1 | [Entrypoint] Starting MySQL 5.7.21-1.1.4

web_1 | 172.18.0.1 - - [27/Mar/2018:18:05:55 +0000] "GET /index.php HTTP/1.1" 200 4

Tips

  • This docker instance has the web open to the public to allow remote analysis instances access to this API site.
  • Please ensure that this docker host has the default web port (80) accessible by public hosts.
For Linux/MacOS Users
  1. Make sure you turn off Firewall for private networks.
  2. This image version could directly build on Linux/MacOS.
For Windows Users
  1. Make sure you turn off Windows Firewall for private networks.
  2. Modify docker-compose.yml volumes:
    • C:/users/<username>/path-to-bitbucket/vcpa-web-api/scripts/initdb:/docker-entrypoint-initdb.d also change Docker setting
  3. Make sure init.sh file format is in unix format.

results matching ""

    No results matching ""