Akilan1999 / p2p-rendering-computation

p2p network to enable running distributed computation and rendering.
https://p2prc.akilan.io/
GNU General Public License v2.0
27 stars 9 forks source link

Reading default port information from a json file #51

Closed Akilan1999 closed 3 years ago

Akilan1999 commented 3 years ago

Ports json file

This file will help map internal ports inside a container to external ports inside a container. A common example would be the SSH port which is port 22 inside the docker container and is mapped to random TCP port outside container so that any external machines can directly connect into the container. The below representation mentions of where the ports.json file is located and also the format of that file.

|_ <Container name>
        |_ Dockerfile
        |_ description.txt 
        |_ ports.json  // The ports file 

Format of the ports.json file

{
  "Port": [
    {
      "PortName": "<Port name>",
      "InternalPort": <internal port>,
      "Type": "<tcp/udp>",
      "Description": "<description about the port>"
    }, ... n
  ]
}