Skip to content

Commit

Permalink
Add 'docker-remove' task to execution process
Browse files Browse the repository at this point in the history
An additional task called 'docker-remove' has been added to the execution sequence in the REST controller. This task will remove docker instances after usage. Also, a new attribute 'dr.id' has been introduced and will be used to identify the docker instance to be removed.
PiotrFerenc committed Jun 1, 2024
1 parent e08396c commit 9630366
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rest/controller.http
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ POST localhost:5000/execute
}
]
}

###
GET http://localhost:5000/process/cbff06d2-24a2-40e5-9b3e-bcd9aaaabd7f

@@ -93,6 +94,7 @@ POST localhost:5000/execute
}
]
}

###

POST localhost:5000/execute
@@ -102,7 +104,8 @@ POST localhost:5000/execute
"docker.image" : "dotnet-classlib",
"docker.e" : "PROJECT_NAME=MyCustomProject2",
"docker.v" : "/home/piotr/Documents/mash2/docker/data:/data",
"console.text":"container id: {{docker.id}}"
"console.text":"container id: {{docker.id}}",
"dr.id" : "{{docker.id}}"
},
"Tasks": [
{
@@ -114,9 +117,14 @@ POST localhost:5000/execute
"Sequence": 2,
"Name": "console",
"Action": "console"
},{
"Sequence": 3,
"Name": "dr",
"Action": "docker-remove"
}
]
}

###

POST localhost:5000/execute

0 comments on commit 9630366

Please sign in to comment.