|
3888 | 3888 | "from": "",
|
3889 | 3889 | "to": "",
|
3890 | 3890 | "reg": false,
|
3891 |
| - "x": 380, |
| 3891 | + "x": 300, |
3892 | 3892 | "y": 160,
|
3893 | 3893 | "wires": [
|
3894 | 3894 | [
|
3895 | 3895 | "e19033703f460489",
|
3896 |
| - "8a7f167c07eca98c" |
| 3896 | + "3fb24016d76424c3" |
3897 | 3897 | ]
|
3898 | 3898 | ]
|
3899 | 3899 | },
|
|
4115 | 4115 | "z": "8e85e8c54d776ddc",
|
4116 | 4116 | "name": "start new",
|
4117 | 4117 | "rules": [
|
| 4118 | + { |
| 4119 | + "t": "set", |
| 4120 | + "p": "newinput", |
| 4121 | + "pt": "msg", |
| 4122 | + "to": "payload.Id", |
| 4123 | + "tot": "msg" |
| 4124 | + }, |
4118 | 4125 | {
|
4119 | 4126 | "t": "set",
|
4120 | 4127 | "p": "post",
|
4121 | 4128 | "pt": "msg",
|
4122 |
| - "to": "\"http://localhost/containers/\" & $string(msg.input.data.name) & \"/start -H 'content-type: application/json'\"", |
| 4129 | + "to": "\"http://localhost/containers/\" & $string(msg.newinput) & \"/start -H 'content-type: application/json'\"", |
4123 | 4130 | "tot": "jsonata"
|
4124 | 4131 | }
|
4125 | 4132 | ],
|
|
4290 | 4297 | "t": "set",
|
4291 | 4298 | "p": "payload",
|
4292 | 4299 | "pt": "msg",
|
4293 |
| - "to": "{ \"Container\": \"test\" }", |
| 4300 | + "to": "{ \"Container\": msg.newinput }", |
4294 | 4301 | "tot": "jsonata"
|
4295 | 4302 | }
|
4296 | 4303 | ],
|
|
4324 | 4331 | "t": "set",
|
4325 | 4332 | "p": "post",
|
4326 | 4333 | "pt": "msg",
|
4327 |
| - "to": "\"http://localhost/containers/\" & $string(msg.input.data.name) & \"/json -H 'content-type: application/json'\"", |
| 4334 | + "to": "\"http://localhost/containers/\" & $string(msg.newinput) & \"/json -H 'content-type: application/json'\"", |
4328 | 4335 | "tot": "jsonata"
|
4329 | 4336 | }
|
4330 | 4337 | ],
|
|
4345 | 4352 | "id": "3b574a7133f293da",
|
4346 | 4353 | "type": "exec",
|
4347 | 4354 | "z": "8e85e8c54d776ddc",
|
4348 |
| - "command": "curl -X GET --unix-socket /var/run/docker.sock", |
| 4355 | + "command": "curl -s -X GET --unix-socket /var/run/docker.sock", |
4349 | 4356 | "addpay": "post",
|
4350 | 4357 | "append": "",
|
4351 | 4358 | "useSpawn": "false",
|
|
4474 | 4481 | "y": 760,
|
4475 | 4482 | "wires": [
|
4476 | 4483 | [
|
4477 |
| - "c469b4b880927dc6", |
4478 |
| - "f97a2faad0f4275a" |
| 4484 | + "2386f957b4f1a646" |
4479 | 4485 | ]
|
4480 | 4486 | ]
|
4481 | 4487 | },
|
|
4495 | 4501 | "authType": "",
|
4496 | 4502 | "senderr": false,
|
4497 | 4503 | "headers": [],
|
4498 |
| - "x": 1080, |
| 4504 | + "x": 1130, |
4499 | 4505 | "y": 760,
|
4500 | 4506 | "wires": [
|
4501 | 4507 | [
|
|
4575 | 4581 | "links": [
|
4576 | 4582 | "36f439d2ba0ac71a"
|
4577 | 4583 | ],
|
4578 |
| - "x": 1225, |
| 4584 | + "x": 1265, |
4579 | 4585 | "y": 760,
|
4580 | 4586 | "wires": []
|
4581 | 4587 | },
|
|
4604 | 4610 | "29132a5a3f72e359"
|
4605 | 4611 | ],
|
4606 | 4612 | [
|
4607 |
| - "fd627a14335caef4" |
| 4613 | + "2ca8bc5af87333b2" |
4608 | 4614 | ]
|
4609 | 4615 | ]
|
4610 | 4616 | },
|
|
4613 | 4619 | "type": "subflow:0455d311f0e53c09",
|
4614 | 4620 | "z": "8e85e8c54d776ddc",
|
4615 | 4621 | "name": "",
|
4616 |
| - "x": 1530, |
| 4622 | + "x": 1630, |
4617 | 4623 | "y": 260,
|
4618 | 4624 | "wires": []
|
4619 | 4625 | },
|
|
4622 | 4628 | "type": "subflow:0455d311f0e53c09",
|
4623 | 4629 | "z": "8e85e8c54d776ddc",
|
4624 | 4630 | "name": "",
|
4625 |
| - "x": 1050, |
| 4631 | + "x": 1130, |
4626 | 4632 | "y": 820,
|
4627 | 4633 | "wires": []
|
4628 | 4634 | },
|
|
4645 | 4651 | "from": "",
|
4646 | 4652 | "to": "",
|
4647 | 4653 | "reg": false,
|
4648 |
| - "x": 1320, |
| 4654 | + "x": 1440, |
4649 | 4655 | "y": 260,
|
4650 | 4656 | "wires": [
|
4651 | 4657 | [
|
|
4942 | 4948 | "type": "subflow:0455d311f0e53c09",
|
4943 | 4949 | "z": "8e85e8c54d776ddc",
|
4944 | 4950 | "name": "",
|
4945 |
| - "x": 430, |
| 4951 | + "x": 510, |
4946 | 4952 | "y": 100,
|
4947 | 4953 | "wires": []
|
4948 | 4954 | },
|
|
5082 | 5088 | []
|
5083 | 5089 | ]
|
5084 | 5090 | },
|
| 5091 | + { |
| 5092 | + "id": "2386f957b4f1a646", |
| 5093 | + "type": "switch", |
| 5094 | + "z": "8e85e8c54d776ddc", |
| 5095 | + "name": "", |
| 5096 | + "property": "config.id", |
| 5097 | + "propertyType": "global", |
| 5098 | + "rules": [ |
| 5099 | + { |
| 5100 | + "t": "nempty" |
| 5101 | + }, |
| 5102 | + { |
| 5103 | + "t": "else" |
| 5104 | + } |
| 5105 | + ], |
| 5106 | + "checkall": "true", |
| 5107 | + "repair": false, |
| 5108 | + "outputs": 2, |
| 5109 | + "x": 930, |
| 5110 | + "y": 820, |
| 5111 | + "wires": [ |
| 5112 | + [ |
| 5113 | + "f97a2faad0f4275a", |
| 5114 | + "c469b4b880927dc6" |
| 5115 | + ], |
| 5116 | + [] |
| 5117 | + ] |
| 5118 | + }, |
| 5119 | + { |
| 5120 | + "id": "2ca8bc5af87333b2", |
| 5121 | + "type": "switch", |
| 5122 | + "z": "8e85e8c54d776ddc", |
| 5123 | + "name": "", |
| 5124 | + "property": "config.id", |
| 5125 | + "propertyType": "global", |
| 5126 | + "rules": [ |
| 5127 | + { |
| 5128 | + "t": "nempty" |
| 5129 | + }, |
| 5130 | + { |
| 5131 | + "t": "else" |
| 5132 | + } |
| 5133 | + ], |
| 5134 | + "checkall": "true", |
| 5135 | + "repair": false, |
| 5136 | + "outputs": 2, |
| 5137 | + "x": 1270, |
| 5138 | + "y": 260, |
| 5139 | + "wires": [ |
| 5140 | + [ |
| 5141 | + "fd627a14335caef4" |
| 5142 | + ], |
| 5143 | + [] |
| 5144 | + ] |
| 5145 | + }, |
| 5146 | + { |
| 5147 | + "id": "3fb24016d76424c3", |
| 5148 | + "type": "switch", |
| 5149 | + "z": "8e85e8c54d776ddc", |
| 5150 | + "name": "", |
| 5151 | + "property": "config.id", |
| 5152 | + "propertyType": "global", |
| 5153 | + "rules": [ |
| 5154 | + { |
| 5155 | + "t": "nempty" |
| 5156 | + }, |
| 5157 | + { |
| 5158 | + "t": "else" |
| 5159 | + } |
| 5160 | + ], |
| 5161 | + "checkall": "true", |
| 5162 | + "repair": false, |
| 5163 | + "outputs": 2, |
| 5164 | + "x": 350, |
| 5165 | + "y": 100, |
| 5166 | + "wires": [ |
| 5167 | + [ |
| 5168 | + "8a7f167c07eca98c" |
| 5169 | + ], |
| 5170 | + [] |
| 5171 | + ] |
| 5172 | + }, |
5085 | 5173 | {
|
5086 | 5174 | "id": "3eb97ccb653722a0",
|
5087 | 5175 | "type": "http in",
|
|
5172 | 5260 | "id": "489afa20fcdf043a",
|
5173 | 5261 | "type": "exec",
|
5174 | 5262 | "z": "177047e3d7a351be",
|
5175 |
| - "command": "curl -X DELETE --unix-socket /var/run/docker.sock ", |
| 5263 | + "command": "curl -s -X DELETE --unix-socket /var/run/docker.sock ", |
5176 | 5264 | "addpay": "post",
|
5177 | 5265 | "append": "",
|
5178 | 5266 | "useSpawn": "false",
|
|
5228 | 5316 | "id": "f40ceca8b2fe91cf",
|
5229 | 5317 | "type": "exec",
|
5230 | 5318 | "z": "177047e3d7a351be",
|
5231 |
| - "command": "curl -X DELETE --unix-socket /var/run/docker.sock ", |
| 5319 | + "command": "curl -s -X DELETE --unix-socket /var/run/docker.sock ", |
5232 | 5320 | "addpay": "post",
|
5233 | 5321 | "append": "",
|
5234 | 5322 | "useSpawn": "false",
|
|
5275 | 5363 | "id": "8dc73accdac55b3b",
|
5276 | 5364 | "type": "exec",
|
5277 | 5365 | "z": "177047e3d7a351be",
|
5278 |
| - "command": "curl -X DELETE --unix-socket /var/run/docker.sock ", |
| 5366 | + "command": "curl -s -X DELETE --unix-socket /var/run/docker.sock ", |
5279 | 5367 | "addpay": "post",
|
5280 | 5368 | "append": "",
|
5281 | 5369 | "useSpawn": "false",
|
|
5322 | 5410 | "id": "551cf7f33257a9d3",
|
5323 | 5411 | "type": "exec",
|
5324 | 5412 | "z": "177047e3d7a351be",
|
5325 |
| - "command": "curl -X DELETE --unix-socket /var/run/docker.sock ", |
| 5413 | + "command": "curl -s -X DELETE --unix-socket /var/run/docker.sock ", |
5326 | 5414 | "addpay": "post",
|
5327 | 5415 | "append": "",
|
5328 | 5416 | "useSpawn": "false",
|
|
5334 | 5422 | "y": 60,
|
5335 | 5423 | "wires": [
|
5336 | 5424 | [
|
5337 |
| - "c594da7accef66e1" |
| 5425 | + "47d05b450f712ec1" |
5338 | 5426 | ],
|
5339 | 5427 | [],
|
5340 | 5428 | []
|
|
5350 | 5438 | "t": "set",
|
5351 | 5439 | "p": "post",
|
5352 | 5440 | "pt": "msg",
|
5353 |
| - "to": "'\\\"http://localhost/containers/' & msg.payload.data.name & '\\\"'", |
| 5441 | + "to": "'\\\"http://localhost/containers/' & msg.payload.data.ContainerID & '\\\"'", |
5354 | 5442 | "tot": "jsonata"
|
5355 | 5443 | }
|
5356 | 5444 | ],
|
|
5619 | 5707 | "z": "177047e3d7a351be",
|
5620 | 5708 | "name": "",
|
5621 | 5709 | "rules": [
|
5622 |
| - { |
5623 |
| - "t": "set", |
5624 |
| - "p": "post", |
5625 |
| - "pt": "msg", |
5626 |
| - "to": "'\\\"http://localhost/images/' & msg.input.data.name & ':' & msg.input.data.version & '\\\"'", |
5627 |
| - "tot": "jsonata" |
5628 |
| - }, |
5629 | 5710 | {
|
5630 | 5711 | "t": "set",
|
5631 | 5712 | "p": "journal",
|
|
5639 | 5720 | "from": "",
|
5640 | 5721 | "to": "",
|
5641 | 5722 | "reg": false,
|
5642 |
| - "x": 1320, |
| 5723 | + "x": 1420, |
5643 | 5724 | "y": 80,
|
5644 | 5725 | "wires": [
|
5645 | 5726 | [
|
5646 | 5727 | "b87eba8ac3329ce3"
|
5647 | 5728 | ]
|
5648 | 5729 | ]
|
5649 | 5730 | },
|
| 5731 | + { |
| 5732 | + "id": "47d05b450f712ec1", |
| 5733 | + "type": "switch", |
| 5734 | + "z": "177047e3d7a351be", |
| 5735 | + "name": "", |
| 5736 | + "property": "config.id", |
| 5737 | + "propertyType": "global", |
| 5738 | + "rules": [ |
| 5739 | + { |
| 5740 | + "t": "nempty" |
| 5741 | + }, |
| 5742 | + { |
| 5743 | + "t": "else" |
| 5744 | + } |
| 5745 | + ], |
| 5746 | + "checkall": "true", |
| 5747 | + "repair": false, |
| 5748 | + "outputs": 2, |
| 5749 | + "x": 1250, |
| 5750 | + "y": 60, |
| 5751 | + "wires": [ |
| 5752 | + [ |
| 5753 | + "c594da7accef66e1" |
| 5754 | + ], |
| 5755 | + [] |
| 5756 | + ] |
| 5757 | + }, |
5650 | 5758 | {
|
5651 | 5759 | "id": "305f23764ca23090",
|
5652 | 5760 | "type": "change",
|
|
0 commit comments