Sign inSign up

lapicidae/nvchecker-email

By lapicidae

Updated about 18 hours ago

new version checker (nvchecker) notifies you by email if a new version of software is released

Image
Developer tools
Monitoring & observability
0

4.1K

lapicidae/nvchecker-email repository overview

nvchecker-email

new version checker (nvchecker) checks whether a new version of a software has been released and then notifies you by e-mail.

lapicidae/nvchecker-email

GitHub Repo stars Docker Pulls Docker Stars GitHub Workflow Status

The nvchecker e-mail Docker image is based on Alpine Linux, cron and nvchecker.

Features

  • regular and timely application updates
  • BusyBox provides a subset of over two hundred utilities
  • schedule via cronjob
  • simple configuration
Note

The image is automatically rebuilt when the alpine (latest) Official Docker Image receives an update.

Getting Started

Usage

Here are some example snippets to help you get started creating a container.

Compatible with docker-compose v2 schemas.

version: "2.1"
services:
  nvchecker-email:
    image: lapicidae/nvchecker-email:latest
    container_name: nvchecker-email
    environment:
      - TZ=Europe/London
    volumes:
      - /path/to/config:/nvchecker
    restart: unless-stopped
docker cli
docker run -d \
  --name=nvchecker-email \
  -e TZ=Europe/London \
  -v /path/to/config:/nvchecker \
  --restart unless-stopped \
  lapicidae/nvchecker-email:latest
Parameters

Container images are configured using parameters passed at runtime.

ParameterDefaultFunction
-e PUID=10001000for UserID - see below for explanation
-e PGID=10001000for GroupID - see below for explanation
-e TZ=Europe/LondonUTCSpecify a timezone to use (e.g. Europe/London)
-e NVCHECKER_UPDATE=falsetrueMark all versions as updated after successfully sending the e-mail (nvtake --all)
-e CRON_SCHEDULE='0 6 * * *''0 1 * * *'crontab schedule (examples)
-e APK_ADD=’7zip,curl,httpie’---Comma-separated list of additional packages to be installed
-e CRON_HUMAN=falsetruedeactivate the human-readable output of the crontab schedule at the beginning of the log
-v /nvcheckerConfiguration files directory
User / Group Identifiers

When using volumes (-v flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1234 and PGID=4321, to find yours use id user as below:

  $ id username
    uid=1234(dockeruser) gid=4321(dockergroup) groups=4321(dockergroup)

Configuration

nvchecker

The software version source file /nvchecker/nvchecker.toml is in toml format. The key name is the name of the software. Following fields are used to tell nvchecker how to determine the current version of that software.
See sample_source.toml for an example.
For more information, please read the documentation.

e-mail

The e-mail functionality is realised by the Python module smtplib. The e-mail settings are configured centrally in the file /nvchecker/email.toml.

Options
ValueDefaultDescription
[SMTP]
hostDomain name of SMTP service
port25If port is zero, the default port is used
sslfalseSecured by SSL or TLS (default port 465)
starttlsfalseOpportunistic TLS (default port 25)
timeout15Timeout in seconds
[AUTH]
userUser name
passwordPassword
[ADDR]
fromE-mail address of the sender
toE-mail address of the recipient
Gmail Example (STARTTLS)
[SMTP]
host = 'smtp.gmail.com'
port = 587
starttls = true

[AUTH]
user = '[email protected]'
password = 'pAsSwOrD'                           # use https://myaccount.google.com/lesssecureapps

[ADDR]
from = '[email protected]'
to = '[email protected]'   # you can append a plus ("+") sign and any combination of words or numbers after your email address.
Configuration test

Send an e-mail to test your configuration.

## already running container
# docker exec -it [container-name] nvchecker-email --testmail
docker exec -it nvchecker-email nvchecker-email --testmail

# start new container
docker run -it --rm -v "/path/to/config:/nvchecker" lapicidae/nvchecker-email:latest /bin/bash -c 'nvchecker-email --testmail'

Note

Take a look at crontab guru for help with for cron schedule expression.

Tag summary

Content type

Image

Digest

sha256:39fad8e42

Size

35.9 MB

Last updated

about 18 hours ago

docker pull lapicidae/nvchecker-email