Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.05 KB

webserver_doc.md

File metadata and controls

28 lines (20 loc) · 1.05 KB

ROBOKOP - Web Server Setup Instructions

The ROBOKOP UI is web-based with a Flask server running inside of gunicorn within a Docker container. The user interface is written using React and the build process uses webpack. This document contains a list of steps that were used to install the software.

Install docker

https://docs.docker.com/engine/installation/linux/docker-ce/debian/#install-docker-ce-1

Get docker image

docker pull patrickkwang/reasoner-prototype

Run docker image, opening ports 5000, 7474, and 7687

docker run -it -p 7474:7474 -p 7687:7687 -p 80:80 patrickkwang/reasoner-prototype bash

OR

docker run -it -p 7474:7474 -p 7687:7687 -p 9000:9000 patrickkwang/reasoner-prototype bash

Set correct server self-address

cd protocop-rank sed -i -e 's/127.0.0.1/$(curl ipinfo.io/ip)/' config.json

Build the user interface with webpack

npm run webpack

Start Flask server inside of gunicorn

nohup gunicorn -c serverConfig.py python.wsgi:app &

Detach from docker container and close ssh session

[CTRL-P], [CTRL-Q] exit