You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

When you develop A&AI with MAC OS X laptop, Setting up HAProxy on your local machine needs to follow a different step.

HAProxy server listens on port 8443 and it forwards each request to Resource service or Traversal service. 


Step-by-step guide

  1. Download haproxy.cfg
  2. Download aai.pem
  3. Download Dockerfile
  4. Locate 3 files above in the same directory
  5. In your terminal type `$ docker build -t haproxy . `
  6. Run the HAProxy docker image by `$docker run -d -p 8443:8443 -p 8080:8080 --name my-haproxy haproxy`
  7. visit http://localhost:8080/stats to verify your HAProxy up and running

 haproxy.cfgDockerfileaai.pem

The only difference from haproxy.cfg file for Linux is 

< server aai-resources.api.simpledemo.openecomp.org aai-resources.api.simpledemo.openecomp.org:8447 port 8447 ssl verify none
=============================================
> server host.docker.internal host.docker.internal:8447 port 8447 ssl verify none

https://hub.docker.com/_/haproxy





  • No labels