No route registered for '/docker/hook'

916 Views Asked by At

I'm creating an Azure AppService based on a Docker image. The image is in Docker public registry, so I want the service to 'know' when there's a new version of the image (same tag).

I thought the WebHook under Continuous Deployment was to achieve that, but when I call it with curl I get the message from the subject.

I couldn't find the right doc... is that WebHook URL for what I think (hope) it is? is there a specific HTTP verb to use?

EDIT: I mean the WebHook URL found under Continuous Deployment in my Container Settings in Azure

enter image description here

1

There are 1 best solutions below

3
On BEST ANSWER

I was stuck on this one for some time as well, until I realized that it requires POST HTTP request on that URL.

Here is an example of the CURL request that I have in my gitlab CI script

curl -X POST "https://\$$AZURE_DEPLOY_USER:$AZURE_DEPLOY_PASSWORD@$AZURE_KUDU_URL/docker/hook" -d -H

It does require to have set the following variables in the environment or you can replace it directly with your URL

  • $AZURE_DEPLOY_USER
  • $AZURE_DEPLOY_PASSWORD
  • $AZURE_KUDU_URL