# ogp-flow-proxy **Repository Path**: mirrors_linagora/ogp-flow-proxy ## Basic Information - **Project Name**: ogp-flow-proxy - **Description**: [ARCHIVED] - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-04-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![Archived](https://img.shields.io/badge/Current_Status-archived-blue?style=flat) # Flow-proxy [![Build Status](https://travis-ci.org/linagora/ogp-flow-proxy.svg?branch=master)](https://travis-ci.org/linagora/ogp-flow-proxy) ## How to build and run ### Create 2 VM We will setup 2 swarm node. Vagrant will auto setup by provision. ``` vagrant up ``` ### Setup swarm cluster ``` node1$ swarm init node2$ docker swarm join --token ``` ### Run Flow-proxy services All command is typed by node1 (Manager) - Create 2 new network with driver overlay ``` node1$ docker network create --driver overlay proxy ``` ``` node1$ docker network create --driver overlay appnet ``` - Build Flow-proxy and run ``` node1$ docker build -t linagora/ogp-flow-proxy . ``` Create MongoDB service for flow-proxy: ``` node1$ docker service create --name flow-mongo --network proxy mongo:2.6.5 ``` Now start flow-proxy: ``` node1$ docker service create \ --name flow-proxy \ --network proxy \ --constraint 'node.role==manager' \ --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \ --publish 80:80 \ --publish 443:443 \ --publish 8080:8080 \ --env NET_PROXY=proxy \ --env NET_APP=appnet \ --env MONGO_HOST=flow-mongo \ --env SERVER_IP= \ linagora/ogp-flow-proxy ``` ## How to test Create new instance by issuing a POST request: ``` curl -H "Content-Type: application/json" -X POST -d '{"requestId":"anything","requesterEmail":"your@email","domainName":"openpaas"}' '127.0.0.1:8080/api/deployments' ``` You will receive instance's address and account for admin, you have to note this account for login to instance. Take a coffee and enjoy the new instance created: ``` curl --header 'Host: http://linagora.beta.data.gouv.fr' http://127.0.0.1 ``` Remove instance by send a POST request: ``` curl -XDELETE '127.0.0.1:8080/api/deployments/:requestId' ``` List all instances ``` curl -XGET '127.0.0.1:8080/api/deployments' ``` Get instance's detail by send a GET request: ``` curl -XGET '127.0.0.1:8080/api/deployments/:requestId' ``` ## To update flow-proxy Rebuild the flow-proxy image: ``` node1$ docker build -t linagora/ogp-flow-proxy . ``` Tell Docker Swarm to update the flow-proxy service with the name image: ``` node1$ docker service update --image linagora/ogp-flow-proxy:latest flow-proxy ```