fablo icon indicating copy to clipboard operation
fablo copied to clipboard

Add flag 'expose ports' with default `true`

Open Hejwo opened this issue 4 years ago • 3 comments

Recent Service Discovery changes forced not only exposing orderer's, ca's, peer's ports but also matching port numbers . Example:

  • Every peer must be mapped like this: - 7060:7060
  • full peer address must be peer1.org1.com:7060

This config is need in developers environment. Testing application running on local machine and connecting to docker-compose network, but in CI pipelines, demo environments we don;t need to map anything and containerize our app.

It would be good to have flag for such case in networkSettings section

Hejwo avatar Jan 22 '21 12:01 Hejwo

Hi @Hejwo , could please guide me how to solve this issue as I'm new to fablo ? Could you tell me where to find the networkSettings section ?

ggold7046 avatar May 19 '23 19:05 ggold7046

Hi @ggold7046 thanks for asking :)

Unfortunately the feature was not yet implemented (I can guide you if you want to help with implementation).

About networkSettings section:

  • expose ports issue is an old one
  • since that time we've refactored a bit fablo config structure.
  • networkSettings is now called global
  • you usually can find it at top of fabloConfig:
{
  "$schema": "https://github.com/hyperledger-labs/fablo/releases/download/1.1.0/schema.json",
  "global": {
    "fabricVersion": "2.4.0",
    "tls": false,
    "peerDevMode": false
  },

piotrhejwowski avatar May 22 '23 07:05 piotrhejwowski

I can guide you if you want to help with implementation

Thanks @piotrhejwowski , I would love to try it. So how do I start ? Which file should I dig in ?

ggold7046 avatar May 22 '23 19:05 ggold7046