Option 2: Setup sample tracking database using Docker
Start by installing docker-compose and downloading our sharing code
Download 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 .envDB_NAME= ### tracking database nameDB_USER= ### tracking database user nameDB_PASSWORD= ### tracking database passwordDB_HOST= ### tracking database hostAWS_ACCESS_KEY_ID= ### AWS access key IDAWS_SECRET_ACCESS_KEY= ### AWS secret access keyAWS_REGION= ### AWS region
Users can verify their outcome by typing: docker-compose up; below is an example of what you will see
Successfully built af8f84acc855Successfully tagged gcadwebapi_web:latestRecreating gcadwebapi_web_1 ...Recreating gcadwebapi_web_1 ... doneAttaching to gcadwebapi_mysql_1, gcadwebapi_web_1mysql_1 | [Entrypoint] MySQL Docker Image 5.7.21-1.1.4mysql_1 | [Entrypoint] Starting MySQL 5.7.21-1.1.4web_1 | 172.18.0.1 - - [27/Mar/2018:18:05:55 +0000] "GET /index.php HTTP/1.1" 200 4
For Linux/MacOS Users
Make sure you turn off Firewall for private networks.
This image version could directly build on Linux/MacOS.
For Windows Users
Make sure you turn off Windows Firewall for private networks.
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.
PreviousOption 1: Setup sample tracking database using Public AMI (recommended)NextStep 3: Configure your project information in the tracking database
Last updated