Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 1.29 KB

File metadata and controls

17 lines (12 loc) · 1.29 KB

ECE 568 Project 2

Haochen Wang (hw362) Hongxi Chen (hc413)

Notes

  • For functionality checklist and danger log, please refer to the files in the same directory as this README.
  • For deploying, please enter docker-deploy directory and run docker compose up. It will automatically build the code and start serving on port host 12345. The log file will be stored in docker-deploy/logs/proxy.log.

Testing

  • An automated test script is provided in docker-deploy/src/tests/test_all.py.
  • The test script requires psutil python package to be installed. Please install it using pip install psutil.
  • The test should be run inside docker-deploy/src/tests/ directory.
  • Since the proxy server will write to /var/log/erss, please run the test script with sudo or give appropriate permission to the related directory, otherwise the proxy server can't start.
  • The tests are carried out using curl and relies on the service of httpbin.org. In case of network issues, the test script may fail, please run it again.
  • Since httpbin.org is unstable sometimes, we have deployed a self-hosted instance of httpbin in vcm-46275.vm.duke.edu, which is used for the test by default. In case of any issues, please change HTTPBIN_ENDPOINT in test_all.py back to httpbin.org.