datakit icon indicating copy to clipboard operation
datakit copied to clipboard

`Term.branch_head` should add any required `.monitor` file

Open talex5 opened this issue 7 years ago • 6 comments

Currently if you want to check the status of a project that isn't itself being built by the CI, you need to add the .monitor file manually to tell the bridge to watch it. This should be done automatically.

Will wait for #384 to be merged before changing this, to avoid conflicts.

talex5 avatar Dec 06 '16 15:12 talex5

This would still be really useful to have for rapid bootstrapping of fresh CI setups.

avsm avatar Jan 16 '17 16:01 avsm

Another thought: it would help with unprivileged monitoring to be able to put in a poll: daily (or similar) into the monitor file to make it not establish a webhook, and to regularly check for updates (as it does on restarting) instead.

avsm avatar Jan 23 '17 16:01 avsm

you can already put a .dirty in there and write your own loop to write it daily.

samoht avatar Jan 23 '17 16:01 samoht

aha, this might be something for the datakit-ci process to help with then? An unprivileged mode where instead of writing a .monitor file it uses .dirty on a loop but can operate without GitHub privilege.

avsm avatar Jan 23 '17 16:01 avsm

For bootstrapping fresh CI setups, you might prefer to use the local bridge: https://github.com/docker/datakit/tree/master/bridge/local

talex5 avatar Jan 23 '17 16:01 talex5

LOCAL BRIDGE!!!! Yes!!

avsm avatar Jan 23 '17 16:01 avsm