Webhook: hotreload not working

Created on 9 Feb 2018  路  5Comments  路  Source: adnanh/webhook

not working hotreload, when using it inside docker container.

question

All 5 comments

Hi @ptflp sorry I've not tested using hot reload in a container so hopefully someone else might comment.

However just out of interest I would have expected you to treat the container as immutable and so only performed this task during container creation at which point I don;t think you need to use the hot reload do you?

@ptflp Are you editing the file outside of docker container?

@adnanh, hooks.json updates from host machine when webhook is triggered

@ptflp - how do you mount your file into the guest container? make sure to mount folder and not a specific file,
my tests with the latest version of webhook work as expected,

that's from docker logs:

[webhook] 2018/03/01 13:32:01 hooks file hooks.yaml overwritten
[webhook] 2018/03/01 13:32:01 attempting to reload hooks from hooks.yaml
[webhook] 2018/03/01 13:32:01 found 2 hook(s) in file
[webhook] 2018/03/01 13:32:01   loaded: import
[webhook] 2018/03/01 13:32:01   loaded: export

my compose file:

    volumes:
      - "/root/blabla/hooks:/hooks"
    working_dir: /hooks
    command: "webhook -verbose -hooks=hooks.yaml -hotreload"

@sh33pz0r, Thank you! folder bind mount, instead file, solved it!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Adnn picture Adnn  路  6Comments

avtar picture avtar  路  6Comments

AndrewSav picture AndrewSav  路  6Comments

gedw99 picture gedw99  路  3Comments

adamaze picture adamaze  路  5Comments