Tailon image for Raspberry Pi
1.2K
This image is intended for using tailon package as a Raspberry Pi container.
Overview coming soon.
This image uses Python package tailon by Pete Halverson.
Official documentation: Docs
docker-compose.yml
version: '3'
services:
tailon:
image: chemtrails/tailon-raspberry:1.4.3
restart: unless-stopped
environment:
- TAILON_WEB_SERVER_ROOT=/ # If you want to use another root (For a reverse proxy, for example)
- TAILON_TAIL_LINES=100 # Default tail'd lines when loaded
- TAILON_WRAP_LINES=true # Wrap lines or add horizontal scroll
- TAILON_FOLLOW_NAMES=false # Use future names (Files which doesn't exist)
- TAILON_USERNAME=admin
- TAILON_PASSWORD=admin
- TAILON_FILE_MASK=*/latest.log # Mask, by default is *, you can use any mask as stated in official documentation.
container_name: tailon
ports:
- "8040:8080" # Tailon uses port 8080.
volumes:
- ./tailon-config.yml:/tailon/tailon-config.yml
- /my-logs:/data
This package is not intended for use in public internet as it uses Basic Authentication. It is intended for internal usage. Use at your own risk.
This image had to patch official Tailon library, as latest yaml Python package now needs a Loader implicit when using yaml.load(). For transparecy purposes, code is here as follows:
awk '
{
# Reemplaza "import yaml" con "from yaml import load, Loader"
if ($0 ~ /import yaml/) {
sub(/import yaml/, "from yaml import load, Loader")
}
# Reemplaza "raw_config = yaml.load(cfg)" con "raw_config = yaml.load(cfg, Loader=Loader)"
if ($0 ~ /raw_config = yaml\.load\(cfg\)/) {
sub(/raw_config = yaml\.load\(cfg\)/, "raw_config = load(cfg, Loader=Loader)")
}
print
}' /usr/local/lib/python3.9/site-packages/tailon/main.py > tmp_main.py
This may be patched in future versions.
Content type
Image
Digest
sha256:780ee1636…
Size
29.5 MB
Last updated
over 2 years ago
docker pull chemtrails/tailon-raspberry