Skip to content

Commit

Permalink
Merge pull request #102 from SaaShup/add_wait_on_stop_for_recreate
Browse files Browse the repository at this point in the history
💡 adding wait on stop during recreation
  • Loading branch information
fanshan committed Jun 6, 2024
2 parents b2c8b19 + e3b15af commit b3e47ca
Show file tree
Hide file tree
Showing 3 changed files with 271 additions and 293 deletions.
57 changes: 53 additions & 4 deletions flows.json
Original file line number Diff line number Diff line change
Expand Up @@ -3979,7 +3979,7 @@
"id": "c1b8315cfebedf9c",
"type": "exec",
"z": "8e85e8c54d776ddc",
"command": "curl -X POST --unix-socket /var/run/docker.sock",
"command": "curl -s -X POST --unix-socket /var/run/docker.sock",
"addpay": "post",
"append": "",
"useSpawn": "false",
Expand All @@ -3991,7 +3991,7 @@
"y": 420,
"wires": [
[
"98651876cfa546d5"
"af1be3389f29018e"
],
[],
[]
Expand Down Expand Up @@ -4023,7 +4023,7 @@
"from": "",
"to": "",
"reg": false,
"x": 1050,
"x": 1110,
"y": 420,
"wires": [
[
Expand All @@ -4043,7 +4043,7 @@
"winHide": false,
"oldrc": false,
"name": "containers",
"x": 1230,
"x": 1290,
"y": 420,
"wires": [
[
Expand Down Expand Up @@ -5012,6 +5012,55 @@
]
]
},
{
"id": "af1be3389f29018e",
"type": "change",
"z": "8e85e8c54d776ddc",
"name": "wait",
"rules": [
{
"t": "set",
"p": "post",
"pt": "msg",
"to": "\"http://localhost/containers/\" & $string(msg.input.data.ContainerID) & \"/wait -H 'content-type: application/json'\"",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1050,
"y": 360,
"wires": [
[
"8e599cf2e587d848"
]
]
},
{
"id": "8e599cf2e587d848",
"type": "exec",
"z": "8e85e8c54d776ddc",
"command": "curl -s -X POST --unix-socket /var/run/docker.sock",
"addpay": "post",
"append": "",
"useSpawn": "false",
"timer": "",
"winHide": false,
"oldrc": false,
"name": "containers",
"x": 1250,
"y": 360,
"wires": [
[
"98651876cfa546d5"
],
[],
[]
]
},
{
"id": "3eb97ccb653722a0",
"type": "http in",
Expand Down
Loading

0 comments on commit b3e47ca

Please sign in to comment.