...

Text file src/github.com/Microsoft/hcsshim/internal/tools/policyenginesimulator/samples/simple_custom/commands.json

Documentation: github.com/Microsoft/hcsshim/internal/tools/policyenginesimulator/samples/simple_custom

     1[
     2    {
     3        "name": "load_fragment",
     4        "input": {
     5            "issuer": "did:web:contoso.github.io",
     6            "feed": "contoso.azurecr.io/custom",
     7            "namespace": "custom",
     8            "local_path": "custom.rego"
     9        }
    10    },
    11    {
    12        "name": "mount_device",
    13        "input": {
    14            "target": "/mnt/layer0",
    15            "deviceHash": "16b514057a06ad665f92c02863aca074fd5976c755d26bff16365299169e8415"
    16        }
    17    },
    18    {
    19        "name": "mount_overlay",
    20        "input": {
    21            "target": "/mnt/overlay0",
    22            "containerID": "container0",
    23            "layerPaths": [
    24                "/mnt/layer0"
    25            ]
    26        }
    27    },
    28    {
    29        "name": "create_container",
    30        "input": {
    31            "containerID": "container0",
    32            "argList": [
    33                "/pause"
    34            ],
    35            "envList": [
    36                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
    37                "TERM=xterm"
    38            ],
    39            "mounts": [],
    40            "workingDir": "/",
    41            "sandboxDir": "/sandbox",
    42            "hugePagesDir": "/hugepages"
    43        }
    44    },
    45    {
    46        "name": "mount_device",
    47        "input": {
    48            "target": "/mnt/layer1",
    49            "deviceHash": "998fe7a12356e0de0f2ffb4134615b42c9510e281c0ecfc7628c121442544309"
    50        }
    51    },
    52    {
    53        "name": "mount_device",
    54        "input": {
    55            "target": "/mnt/layer2",
    56            "deviceHash": "f65ec804a63b85f507ac11d187434ea135a18cdc16202551d8dff292f942fdf0"
    57        }
    58    },
    59    {
    60        "name": "mount_device",
    61        "input": {
    62            "target": "/mnt/layer3",
    63            "deviceHash": "04c110e9406d2b57079f1eac4c9c5247747caa3bcaab6d83651de6e7da97cb40"
    64        }
    65    },
    66    {
    67        "name": "mount_device",
    68        "input": {
    69            "target": "/mnt/layer4",
    70            "deviceHash": "e7fbe653352d546497c534c629269c4c04f1997f6892bd66c273f0c9753a4de3"
    71        }
    72    },
    73    {
    74        "name": "mount_device",
    75        "input": {
    76            "target": "/mnt/layer5",
    77            "deviceHash": "b99a9ced77c45fc4dc96bac8ea1e4d9bc1d2a66696cc057d3f3cca79dc999702"
    78        }
    79    },
    80    {
    81        "name": "mount_device",
    82        "input": {
    83            "target": "/mnt/layer6",
    84            "deviceHash": "3413e98a178646d4703ea70b9bff2d4410e606a22062046992cda8c8aedaa387"
    85        }
    86    },
    87    {
    88        "name": "mount_device",
    89        "input": {
    90            "target": "/mnt/layer7",
    91            "deviceHash": "1e66649e162d99c4d675d8d8c3af90ece3799b33d24671bc83fe9ea5143daf2f"
    92        }
    93    },
    94    {
    95        "name": "mount_device",
    96        "input": {
    97            "target": "/mnt/layer8",
    98            "deviceHash": "97112ba1d4a2c86c1c15a3e13f606e8fcc0fb1b49154743cadd1f065c42fee5a"
    99        }
   100    },
   101    {
   102        "name": "mount_device",
   103        "input": {
   104            "target": "/mnt/layer9",
   105            "deviceHash": "37e9dcf799048b7d35ce53584e0984198e1bc3366c3bb5582fd97553d31beb4e"
   106        }
   107    },
   108    {
   109        "name": "mount_overlay",
   110        "input": {
   111            "target": "/mnt/overlay1",
   112            "containerID": "container1",
   113            "layerPaths": [
   114                "/mnt/layer1",
   115                "/mnt/layer2",
   116                "/mnt/layer3",
   117                "/mnt/layer4",
   118                "/mnt/layer5",
   119                "/mnt/layer6",
   120                "/mnt/layer7",
   121                "/mnt/layer8",
   122                "/mnt/layer9"
   123            ]
   124        }
   125    },
   126    {
   127        "name": "create_container",
   128        "input": {
   129            "containerID": "container1",
   130            "argList": [
   131                "python3",
   132                "WebAttestationReport.py"
   133            ],
   134            "envList": [
   135                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
   136                "PYTHONUNBUFFERED=1",
   137                "TERM=xterm"
   138            ],
   139            "mounts": [],
   140            "workingDir": "/demo-attestion",
   141            "sandboxDir": "/sandbox",
   142            "hugePagesDir": "/hugepages"
   143        }
   144    },
   145    {
   146        "name": "mount_device",
   147        "input": {
   148            "target": "/mnt/layer10",
   149            "deviceHash": "606fd6baf5eb1a71fd286aea29672a06bfe55f0007ded92ee73142a37590ed19"
   150        }
   151    },
   152    {
   153        "name": "mount_device",
   154        "input": {
   155            "target": "/mnt/layer11",
   156            "deviceHash": "97adfda6943f3af972b9bf4fa684f533f10c023d913d195048fef03f9c3c60fd"
   157        }
   158    },
   159    {
   160        "name": "mount_device",
   161        "input": {
   162            "target": "/mnt/layer12",
   163            "deviceHash": "296e5baa5b9ded863ca0170e05cd9ecf4136f86c830a9da906184ab147415c7b"
   164        }
   165    },
   166    {
   167        "name": "mount_device",
   168        "input": {
   169            "target": "/mnt/layer13",
   170            "deviceHash": "a6a6918c07c85e29e48d4a87c1194781251d5185f682c26f20d6ee4e955a239f"
   171        }
   172    },
   173    {
   174        "name": "mount_device",
   175        "input": {
   176            "target": "/mnt/layer14",
   177            "deviceHash": "285cb680a55d09f548d4baa804a663764788619824565685b32b8097cbed3d26"
   178        }
   179    },
   180    {
   181        "name": "mount_overlay",
   182        "input": {
   183            "target": "/mnt/overlay2",
   184            "containerID": "container2",
   185            "layerPaths": [
   186                "/mnt/layer10",
   187                "/mnt/layer11",
   188                "/mnt/layer12",
   189                "/mnt/layer13",
   190                "/mnt/layer14"
   191            ]
   192        }
   193    },
   194    {
   195        "name": "create_container",
   196        "input": {
   197            "containerID": "container2",
   198            "argList": [
   199                "bash",
   200                "/copy_resolv_conf.sh"
   201            ],
   202            "envList": [
   203                "TERM=xterm",
   204                "HOSTNAME=SandboxHost-637913201120076875",
   205                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
   206            ],
   207            "mounts": [
   208                {
   209                    "destination": "/mount/resolvconf",
   210                    "options": [
   211                        "rbind",
   212                        "rshared",
   213                        "rw"
   214                    ],
   215                    "source": "/sandbox/tmp/atlas/resolvconf/mnt/container2",
   216                    "type": "bind"
   217                }
   218            ],
   219            "workingDir": "/",
   220            "sandboxDir": "/sandbox",
   221            "hugePagesDir": "/hugepages"
   222        }
   223    }
   224]

View as plain text