get.porter.sh/porter@v1.3.0/pkg/cnab/config-adapter/testdata/myenv-depsv2.bundle.json (about)

     1  {
     2    "schemaVersion": "1.2.0",
     3    "name": "myenv",
     4    "version": "0.1.0",
     5    "description": "A 'meta' bundle that deploys everything it needs by adding dependencies",
     6    "invocationImages": [
     7      {
     8        "imageType": "docker",
     9        "image": "localhost:5000/myenv:porter-b1619b27d3e514d7a062207188a87e16"
    10      }
    11    ],
    12    "parameters": {
    13      "logLevel": {
    14        "definition": "logLevel-parameter",
    15        "destination": {
    16          "env": "LOGLEVEL"
    17        }
    18      },
    19      "porter-app-port-dep-output": {
    20        "definition": "porter-app-port-dep-output",
    21        "description": "Wires up the app dependency port output for use as a parameter. Porter internal parameter that should not be set manually.",
    22        "destination": {
    23          "env": "PORTER_APP_PORT_DEP_OUTPUT"
    24        }
    25      },
    26      "porter-debug": {
    27        "definition": "porter-debug-parameter",
    28        "description": "Print debug information from Porter when executing the bundle",
    29        "destination": {
    30          "env": "PORTER_DEBUG"
    31        }
    32      },
    33      "porter-infra-ip-dep-output": {
    34        "definition": "porter-infra-ip-dep-output",
    35        "description": "Wires up the infra dependency ip output for use as a parameter. Porter internal parameter that should not be set manually.",
    36        "destination": {
    37          "env": "PORTER_INFRA_IP_DEP_OUTPUT"
    38        }
    39      },
    40      "porter-infra-mysql-connstr-dep-output": {
    41        "definition": "porter-infra-mysql-connstr-dep-output",
    42        "description": "Wires up the infra dependency mysql-connstr output for use as a parameter. Porter internal parameter that should not be set manually.",
    43        "destination": {
    44          "env": "PORTER_INFRA_MYSQL_CONNSTR_DEP_OUTPUT"
    45        }
    46      },
    47      "porter-state": {
    48        "definition": "porter-state",
    49        "description": "Supports persisting state for bundles. Porter internal parameter that should not be set manually.",
    50        "destination": {
    51          "path": "/porter/state.tgz"
    52        }
    53      }
    54    },
    55    "credentials": {
    56      "token": {
    57        "required": true
    58      }
    59    },
    60    "outputs": {
    61      "endpoint": {
    62        "definition": "endpoint-output",
    63        "path": "/cnab/app/outputs/endpoint"
    64      },
    65      "porter-state": {
    66        "definition": "porter-state",
    67        "description": "Supports persisting state for bundles. Porter internal parameter that should not be set manually.",
    68        "path": "/cnab/app/outputs/porter-state"
    69      }
    70    },
    71    "definitions": {
    72      "endpoint-output": {
    73        "type": "string"
    74      },
    75      "logLevel-parameter": {
    76        "default": "info",
    77        "type": "string"
    78      },
    79      "porter-app-port-dep-output": {
    80        "$comment": "porter-internal",
    81        "$id": "https://porter.sh/generated-bundle/#porter-parameter-source-definition"
    82      },
    83      "porter-debug-parameter": {
    84        "$comment": "porter-internal",
    85        "$id": "https://porter.sh/generated-bundle/#porter-debug",
    86        "default": false,
    87        "description": "Print debug information from Porter when executing the bundle",
    88        "type": "boolean"
    89      },
    90      "porter-infra-ip-dep-output": {
    91        "$comment": "porter-internal",
    92        "$id": "https://porter.sh/generated-bundle/#porter-parameter-source-definition"
    93      },
    94      "porter-infra-mysql-connstr-dep-output": {
    95        "$comment": "porter-internal",
    96        "$id": "https://porter.sh/generated-bundle/#porter-parameter-source-definition"
    97      },
    98      "porter-state": {
    99        "$comment": "porter-internal",
   100        "$id": "https://porter.sh/generated-bundle/#porter-state",
   101        "contentEncoding": "base64",
   102        "description": "Supports persisting state for bundles. Porter internal parameter that should not be set manually.",
   103        "type": "string"
   104      }
   105    },
   106    "requiredExtensions": [
   107      "sh.porter.file-parameters",
   108      "org.getporter.dependencies@v2",
   109      "io.cnab.parameter-sources"
   110    ],
   111    "custom": {
   112      "io.cnab.parameter-sources": {
   113        "porter-app-port-dep-output": {
   114          "priority": [
   115            "dependencies.output"
   116          ],
   117          "sources": {
   118            "dependencies.output": {
   119              "dependency": "app",
   120              "name": "port"
   121            }
   122          }
   123        },
   124        "porter-infra-ip-dep-output": {
   125          "priority": [
   126            "dependencies.output"
   127          ],
   128          "sources": {
   129            "dependencies.output": {
   130              "dependency": "infra",
   131              "name": "ip"
   132            }
   133          }
   134        },
   135        "porter-infra-mysql-connstr-dep-output": {
   136          "priority": [
   137            "dependencies.output"
   138          ],
   139          "sources": {
   140            "dependencies.output": {
   141              "dependency": "infra",
   142              "name": "mysql-connstr"
   143            }
   144          }
   145        },
   146        "porter-state": {
   147          "priority": [
   148            "output"
   149          ],
   150          "sources": {
   151            "output": {
   152              "name": "porter-state"
   153            }
   154          }
   155        }
   156      },
   157      "org.getporter.dependencies@v2": {
   158        "requires": {
   159          "app": {
   160            "bundle": "localhost:5000/myapp:v1.2.3",
   161            "sharing": {
   162              "group": {}
   163            },
   164            "parameters": {
   165              "logLevel": "${bundle.parameters.logLevel}"
   166            },
   167            "credentials": {
   168              "db-connstr": "${bundle.dependencies.infra.outputs.mysql-connstr}"
   169            },
   170            "outputs": {
   171              "endpoint": "https://${bundle.dependencies.infra.outputs.ip}:${outputs.port}/myapp"
   172            }
   173          },
   174          "infra": {
   175            "bundle": "localhost:5000/myinfra:v0.1.0",
   176            "sharing": {
   177              "group": {}
   178            },
   179            "parameters": {
   180              "database": "myenvdb",
   181              "logLevel": "${bundle.parameters.logLevel}"
   182            },
   183            "credentials": {
   184              "token": "${bundle.credentials.token}"
   185            }
   186          }
   187        }
   188      },
   189      "sh.porter": {
   190        "manifestDigest": "",
   191        "mixins": {
   192          "exec": {
   193            "version": "v1.2.3"
   194          }
   195        },
   196        "manifest": "c2NoZW1hVmVyc2lvbjogMS4xLjAKbmFtZTogbXllbnYKdmVyc2lvbjogMC4xLjAKZGVzY3JpcHRpb246ICJBICdtZXRhJyBidW5kbGUgdGhhdCBkZXBsb3lzIGV2ZXJ5dGhpbmcgaXQgbmVlZHMgYnkgYWRkaW5nIGRlcGVuZGVuY2llcyIKcmVnaXN0cnk6ICJsb2NhbGhvc3Q6NTAwMCIKCmNyZWRlbnRpYWxzOgogIC0gbmFtZTogdG9rZW4KCnBhcmFtZXRlcnM6CiAgLSBuYW1lOiBsb2dMZXZlbAogICAgdHlwZTogc3RyaW5nCiAgICBkZWZhdWx0OiBpbmZvCgpvdXRwdXRzOgogIC0gbmFtZTogZW5kcG9pbnQKICAg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HBvaW50OiAiaHR0cHM6Ly8ke2J1bmRsZS5kZXBlbmRlbmNpZXMuaW5mcmEub3V0cHV0cy5pcH06JHtvdXRwdXRzLnBvcnR9L215YXBwIgoKIyBUaGUgcmVzdCBiZWxvdyBpcyBib2lsZXJwbGF0ZSB0byBtYWtlIHBvcnRlciBoYXBweQojIFNpbmNlIHRoaXMgaXMgYSAibWV0YSIgYnVuZGxlLCBpdCBkb2Vzbid0IGRvIGFueXRoaW5nIGl0c2VsZiwganVzdCByZWZlcmVuY2VzIG90aGVyIGJ1bmRsZXMKbWl4aW5zOgogIC0gZXhlYwoKaW5zdGFsbDoKICAtIGV4ZWM6CiAgICAgIGNvbW1hbmQ6IGVjaG8KICAgICAgYXJndW1lbnRzOgogICAgICAgIC0gIkluc3RhbGxpbmcgYW4gZW52aXJvbm1lbnQiCgp1cGdyYWRlOgogIC0gZXhlYzoKICAgICAgY29tbWFuZDogZWNobwogICAgICBhcmd1bWVudHM6CiAgICAgICAgLSAiVXBncmFkaW5nIGFuIGVudmlyb25tZW50IgoKdW5pbnN0YWxsOgogIC0gZXhlYzoKICAgICAgY29tbWFuZDogZWNobwogICAgICBhcmd1bWVudHM6CiAgICAgICAgLSAiVW5pbnN0YWxsaW5nIGFuIGVudmlyb25tZW50Igo=",
   197        "version": "",
   198        "commit": "",
   199        "preserveTags": false
   200      },
   201      "sh.porter.file-parameters": {}
   202    }
   203  }