Files
hassio-addons/binance-trading-bot/config.yaml
Alexandre e253d18335 fix(binance-trading-bot): unbreak build — pip PEP 668 + v1.0.0 (#2945)
* fix(binance-trading-bot): pip install with --break-system-packages (PEP 668)

Alpine's py3-pip now marks the system Python as externally managed, so the
TradingView requirements install failed with 'externally-managed-environment'
and broke every rebuild (run 31227083872).

Also bumps to upstream v1.0.0, which the updater bot tried and had reverted by
the same build failure.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(binance-trading-bot): pin base image to the frozen v0 line, drop the v1.0.0 bump

Upstream retagged chrisleekr/binance-trading-bot:latest to v1.0.0 on 2026-07-31
(latest and v1.0.0 share digest sha256:60a1a88e...). build.json pinned :latest,
so this add-on was silently building on the v1 rewrite while its rootfs still
starts mongod/redis and runs the v0 'npm start' entrypoint.

v1.0.0 is a complete rewrite with no in-place upgrade: the datastore moved to
Postgres + TimescaleDB. Adopting it needs an add-on rewrite, not a version bump,
so pin build_from to :0.0.101 (the frozen v0 line, linux/amd64 + linux/arm64)
and pause the updater so the bot stops re-proposing v1 weekly.

Keeps --break-system-packages so the build survives PEP 668 if the pin ever
moves forward.

Reported by Copilot on PR #2945.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(binance-trading-bot): drop --break-system-packages, the pinned image predates it

CI: 'no such option: --break-system-packages'. The 0.0.101 image ships a pip
older than 23.0.1, which is where that flag was introduced.

The flag was only ever needed because :latest had moved to the v1 rewrite and
its newer Alpine carries a PEP 668 marker. With build_from pinned to the frozen
0.0.101 image, that marker cannot appear, so the flag is both unnecessary and
fatal. binance-trading-bot/Dockerfile is now identical to master again: the
whole fix is the build.json pin.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-08 11:54:51 +02:00

119 lines
2.4 KiB
YAML

arch:
- aarch64
- amd64
description:
Automated Binance trading bot - Trade multiple cryptocurrencies. Buy
low/sell high with Grid Trading. Integrated with TradingView technical analysis
devices:
- /dev/dri
- /dev/dri/card0
- /dev/dri/card1
- /dev/dri/renderD128
- /dev/vchiq
- /dev/video10
- /dev/video11
- /dev/video12
- /dev/video13
- /dev/video14
- /dev/video15
- /dev/video16
- /dev/ttyUSB0
- /dev/sda
- /dev/sdb
- /dev/sdc
- /dev/sdd
- /dev/sde
- /dev/sdf
- /dev/sdg
- /dev/nvme
- /dev/nvme0
- /dev/nvme0n1
- /dev/nvme0n1p1
- /dev/nvme0n1p2
- /dev/nvme0n1p3
- /dev/nvme1n1
- /dev/nvme1n1p1
- /dev/nvme1n1p2
- /dev/nvme1n1p3
- /dev/nvme2n1
- /dev/nvme2n1p1
- /dev/nvme2n1p2
- /dev/nvme2n3p3
- /dev/mmcblk
- /dev/fuse
- /dev/sda1
- /dev/sdb1
- /dev/sdc1
- /dev/sdd1
- /dev/sde1
- /dev/sdf1
- /dev/sdg1
- /dev/sda2
- /dev/sdb2
- /dev/sdc2
- /dev/sdd2
- /dev/sde2
- /dev/sdf2
- /dev/sdg2
- /dev/sda3
- /dev/sdb3
- /dev/sda4
- /dev/sdb4
- /dev/sda5
- /dev/sda6
- /dev/sda7
- /dev/sda8
- /dev/nvme0
- /dev/nvme1
- /dev/nvme2
environment:
BINANCE_REDIS_HOST: localhost
BINANCE_REDIS_PASSWORD: ""
BINANCE_REDIS_PORT: "6379"
PYTHONUNBUFFERED: "1"
TRADINGVIEW_LOG_LEVEL: INFO
image: ghcr.io/alexbelgium/binance_trading_bot-{arch}
ingress: true
ingress_stream: true
map:
- config:rw
name: Binance Trading Bot
options:
env_vars: []
BINANCE_AUTHENTICATION_ENABLED: true
BINANCE_AUTHENTICATION_PASSWORD: null
BINANCE_MODE: test
BINANCE_SLACK_ENABLED: false
panel_admin: false
panel_icon: mdi:bitcoin
ports:
80/tcp: null
8080/tcp: null
ports_description:
80/tcp: Web UI port
8080/tcp: Trading View port
privileged:
- SYS_ADMIN
- DAC_READ_SEARCH
schema:
env_vars:
- name: match(^[A-Za-z0-9_]+$)
value: str?
BINANCE_AUTHENTICATION_ENABLED: bool
BINANCE_AUTHENTICATION_PASSWORD: str
BINANCE_LIVE_API_KEY: str?
BINANCE_LIVE_SECRET_KEY: str?
BINANCE_LOCAL_TUNNEL_ENABLED: bool?
BINANCE_LOCAL_TUNNEL_SUBDOMAIN: str?
BINANCE_MODE: list(live|test)
BINANCE_SLACK_CHANNEL: str?
BINANCE_SLACK_ENABLED: bool?
BINANCE_SLACK_USERNAME: str?
BINANCE_SLACK_WEBHOOK_URL: str?
BINANCE_TEST_API_KEY: str?
BINANCE_TEST_SECRET_KEY: str?
slug: binance-trading-bot
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: 0.0.101.1