Commit graph

12 commits

Author SHA1 Message Date
GaltRanch
1fa1846790 Add ARM64 build dependencies to Dockerfile for multi-arch support
Install python3-dev, libgmp-dev, libffi-dev needed to compile
psutil and fastecdsa on ARM64 (Raspberry Pi / Umbrel).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 17:31:41 -03:00
GaltRanch
6fad893db8 Update Dockerfile for Umbrel + add multi-arch CI build
Dockerfile changes:
- Use COPY instead of git clone (build from local source)
- Add entrypoint.sh for auto-configuration from env vars
- EXPOSE 6969 and configurable via PYBLOCK_PORT env var
- Create config directory as volume mount point
- ENTRYPOINT replaces CMD for pre-launch setup

New .github/workflows/docker-build.yml:
- Multi-arch build: linux/amd64 + linux/arm64 (Raspberry Pi)
- Triggers on version tags (v*.*.*)
- Pushes to Docker Hub as curly60e/pyblock:version and :latest
- Uses QEMU + Buildx for cross-compilation
- GitHub Actions cache for faster builds

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 16:33:03 -03:00
GaltRanch
465826c152 Harden Dockerfile and improve ignore files
- Pin Ubuntu base image by SHA256 digest for reproducibility
- Pin ttyd to release tag 1.7.7 with --depth 1
- Add --no-cache-dir to pip install to reduce image size
- Expand .dockerignore with .env, .pickle, cache dirs, logs
- Expand .gitignore with IDE files, OS files, debug logs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 12:06:48 -03:00
GaltRanch
7366e9fe9c Refactor architecture: config singleton, logging, menu system, dependencies
Major improvements across 7 areas:

- Add centralized Config singleton (config.py) replacing ~176 config
  reloads per session with a single cached load
- Add logging framework (log.py) with RotatingFileHandler, replacing
  silent except Exception: pass blocks with structured logging
- Refactor menu system (menu.py) with data-driven color selection,
  eliminating ~1,370 lines of duplicate menu functions
- Create shared/ modules extracting 7 utility functions duplicated
  between PyBlock.py and SPV/spvblock.py
- Clean dependencies: pin all versions, remove stdlib packages
  (asyncio, threading), remove unused imports
- Improve Docker: pin ubuntu:24.04, add non-root user, use venv
- Improve CI: update to actions v4/v5, add test job before publish
- Fix entry point: wrap main loop in def main(), proper module import

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 10:58:24 -03:00
Satoshi Nakamoto
72e1f4d69b
Update Dockerfile to install pyblock from GitHub 2025-11-29 00:01:51 +01:00
Satoshi Nakamoto
b0a794e34f
Update dockerfile 2025-01-08 22:12:09 +01:00
Satoshi Nakamoto
6db3d8524a
Update dockerfile 2023-01-04 21:07:42 +01:00
Satoshi Nakamoto
05a17e1810
Update dockerfile 2023-01-04 19:33:45 +01:00
Satoshi Nakamoto
8bd4dcd4b3
Update dockerfile 2023-01-04 19:17:02 +01:00
Satoshi Nakamoto
d42274d416
Update dockerfile 2022-12-29 20:34:02 +01:00
Satoshi Nakamoto
aaefbe70a2
Update dockerfile 2022-12-29 20:25:22 +01:00
Satoshi Nakamoto
25698fac3b
Create dockerfile 2022-12-29 01:14:41 +01:00