Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No route registered for '/docker/hook'

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

like image 950
sebagomez Avatar asked Oct 01 '18 22:10

sebagomez


1 Answers

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
like image 166
zdarsky.peter Avatar answered Sep 22 '22 22:09

zdarsky.peter