Skip to content

A REST service that can notify Slack when updates to aptitude packages are available

License

Notifications You must be signed in to change notification settings

mwvdev/aptpeeker

Repository files navigation

aptpeeker

Java CI with Gradle

A REST service that can notify Slack when updates to aptitude packages are available.

Example screenshot

Try it out using Docker

AptPeeker is available on Docker Hub.

AptPeeker will need a bridged network to reach Slack when posting notifications, so start by creating a bridged network:

$ docker network create external_network

Then try it out:

$ docker run -e SPRING_SECURITY_USER_PASSWORD=<insert password> -e SLACK_ENDPOINT=<insert slack incoming webhook endpoint> --network external_network mwvdev/aptpeeker

Ensure that package lists are periodically updated and that jq is installed, then use the following command to report to a locally running instance:

$ apt-get upgrade -s | grep ^Inst | awk '{ print $2,$3; }' | tr -d '[]' | jq --compact-output --slurp --raw-input 'split("\n") | map(select(. != ""))' | curl -X POST -u user:<insert password> -H 'Content-type: application/json' --data @- http://localhost:8080/api/package/updates/server-name-goes-here

Credits

This application is heavily inspired by AptWatcher by Honeybadger.

About

A REST service that can notify Slack when updates to aptitude packages are available

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages