Skip to content

A simple application to handle, store and view notifications sent by the distribution container registry.

Notifications You must be signed in to change notification settings

evanebb/regnotify

Repository files navigation

regnotify

A simple application to handle and store notifications sent by the distribution container registry, and view them using a web interface/API.

The web interface

  • Simple web interface written with Alpine and Bootstrap.
  • Small JSON API to write/read/listen for events. Documentation can be found at api/openapi.yaml.
  • Uses Bolt as the back-end storage for events.
  • Utilizes Server-Sent Events to stream new events to your browser as they come in.

Deployment

Quick deployment using Docker Compose

For a quick 'batteries-included' setup including the registry itself, take a look at the docker-compose.yml in this repository.
To deploy it, run the following:

git clone https://github.com/evanebb/regnotify.git
cd regnotify
make docker
docker compose up -d

You can now access the application at http://localhost:8000 or http://<host-ip>:8000. If you push an image to the newly created registry instance, you should see some events appear in the application.

With existing registry

The application itself

This application is shipped as a container image, available at ghcr.io/evanebb/regnotify.

For example, to run it using Docker, use the following command:

docker run --name regnotify -d -p 8000:8000 -v regnotify_db_data:/var/lib/regnotify ghcr.io/evanebb/regnotify

It can now be accessed at http://localhost:8000 or http://<host-ip>:8000.

Registry configuration

In order to actually receive these events, your registry instance must be configured to send notifications to this container. The following is a very basic example snippet of the configuration:

notifications:
  endpoints:
    - name: listener
      url: http://<regnotify-host-ip>:8000/api/v1/events

For a full, but very basic, registry configuration take a look at the registry-config.yml file in this repository.

Additionally, take a look at the official registry documentation on how to configure it to send notifications.

About

A simple application to handle, store and view notifications sent by the distribution container registry.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages