Setup Instructions

setup_instructions

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 4

DownloadSetup Instructions
Open PDF In BrowserView PDF
How to install on another Machine
Install “Docker for Windows”. Link can be found here. Click on the “Install Docker for Windows” link (see
screenshot below).

After clicking on the link above, choose the “Stable channel” (not the “Edge channel”). Then, execute the
downloaded InstallDocker.msi file.

After Docker is installed, open PowerShell or linux and execute the following commands. These
commands pull the latest Docker images, stop any running images, remove any existing images, and
then run the latest images. Finally, logs are pulled for the latest running images. If any of these
commands time out, the command should be executed again.

Pull the releases from dockerhub
docker pull natoma/adpq2:web.release
docker pull natoma/adpq2:api.release
docker pull natoma/adpq2:postgresdb.release

stop the docker instances
docker stop adpq2prodweb
docker stop adpq2prodapi
docker stop adpq2proddb
docker rm adpq2prodweb
docker rm adpq2prodapi
docker rm adpq2proddb

Start the docker instances
docker run -d -p 5432:5432 --name adpq2proddb natoma/adpq2:postgresdb.release
docker run -d -p 5050:5050 --name adpq2prodapi natoma/adpq2:api.release
docker run -d -p 5000:5000 --name adpq2prodweb natoma/adpq2:web.release

docker logs adpq2prodweb
docker logs adpq2prodapi
docker logs adpq2proddb

At this point, the Web server and the Web API server and the Database server should all be ready to
test. To validate this, open a browser and key the following URL into the address bar:
http://localhost:5000. If the following is displayed, the Web server is responding.

You can do the same on the API at http://localhost:5050/swagger

Additional information:
The default setup assumes that the Web server Docker container and the Web API server Docker
container are both running on the same local machine (i.e. localhost), on the default configured ports
(i.e., 5000 and 5050). If this assumption is not true, config files must be changed on one or both Docker
containers. The files to change are the appsettings.production.json and appsettings.Production.json on
the webapi and web projects respectively.

If you encounter any issues connecting to the database you may want to install Postgress locally and run
the script named adpq_db_create_postgres.sql to create user and database from
Com.Natoma.Adpq.Prototype.Api/DB.

The Docker images ran well and were used for production on our Amazon Linux environment.



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.5
Linearized                      : No
Page Count                      : 4
Language                        : en-US
Tagged PDF                      : Yes
Author                          : Veronica Westlund
Creator                         : Microsoft® Word 2013
Create Date                     : 2017:03:03 13:55:14-08:00
Modify Date                     : 2017:03:03 13:55:14-08:00
Producer                        : Microsoft® Word 2013
EXIF Metadata provided by EXIF.tools

Navigation menu