You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Fei Yang cf3ab8f1c9 Initial commit. 5 months ago
patches Initial commit. 5 months ago
.gitignore Initial commit. 5 months ago
Dockerfile Initial commit. 5 months ago
LOCALES Initial commit. 5 months ago
README.md Initial commit. 5 months ago
RUST_TOOLCHAIN_VERSION Initial commit. 5 months ago
VERSION Initial commit. 5 months ago
azure-pipelines.yml Initial commit. 5 months ago

README.md

RustRssBot

Overview

Minimalistic modified lightweight Telegram RSS bot container image based on Apline linux.

Build

LOCALE={en/zh}
docker build --build-arg LOCALE="$LOCALE" --build-arg VERSION=$(< VERSION) --build-arg RUST_TOOLCHAIN_VERSION=$(< RUST_TOOLCHAIN_VERSION) -t "${PWD##*/}-$LOCALE" .

Push image to registry:

docker tag "${PWD##*/}-$LOCALE" "$DOCKER_REGISTRY_USERNAME/${PWD##*/}:$(< VERSION)-$LOCALE"
docker tag "${PWD##*/}-$LOCALE" "$DOCKER_REGISTRY_USERNAME/${PWD##*/}:latest-$LOCALE"
docker push -a "$DOCKER_REGISTRY_USERNAME/${PWD##*/}"

Environment variables

Name Default value Description
BOT_TOKEN - Telegram bot token
MAX_INTERVAL 3600 Maximum fetch interval
MIN_INTERVAL 300 Minimum fetch interval
HTTP_PROXY - Proxy for HTTP connections
HTTPS_PROXY - Proxy for HTTPS connections
RSSBOT_DONT_PROXY_FEEDS - Only use proxy for Telegram bot API

Run

docker run --detach \
--env VARIABLE=DATA \
--restart always \
--volume /PATH/TO/DATA:/data \
fei1yang/rustrssbot:latest-$LOCALE

Note: This container image supports the automatic update feature of Podman, please refer to the official document for help.