Skip to content

extra2000/nodejs-examples

Repository files navigation

nodejs-examples

License Versioning Build
License: MIT FOSSA Status semantic-release Build status

NodeJS example projects using Podman for study purpose.

Requirements

  • Podman 3.2.0-rc1 and above.

Prerequisites

Define a network for rootless Podman. Create ~/.config/cni/net.d/podman-network-sampleapps.conflist file:

{
  "cniVersion": "0.4.0",
  "name": "sampleapps",
  "plugins": [
    {
      "type": "bridge",
      "bridge": "cni-podman1",
      "isGateway": true,
      "ipMasq": true,
      "hairpinMode": true,
      "ipam": {
        "type": "host-local",
        "routes": [{ "dst": "0.0.0.0/0" }],
        "ranges": [
          [
            {
              "subnet": "10.77.1.0/24",
              "gateway": "10.77.1.1"
            }
          ]
        ]
      }
    },
    {
      "type": "portmap",
      "capabilities": {
        "portMappings": true
      }
    },
    {
      "type": "firewall"
    },
    {
      "type": "tuning"
    },
    {
      "type": "dnsname",
      "domainName": "sampleapps"
    }
  ]
}

License

FOSSA Status