1
0
Fork 0

Add standalone Python entrypoint for EasyHAProxy and pip-based installation

- Introduced `/scripts/.venv/bin/easy-haproxy` as the default entrypoint for standalone environments.
- Added `_build_parser` and `start` functions to enable CLI-driven functionality configuration.
- Updated packaging to reflect new `easyhaproxy.main` module and adapted project name from `easymapping` to `easyhaproxy`.
- Modified `Dockerfile` to align with new script paths and entrypoints for better portability.
- Enhanced documentation with dedicated sections for pip-based installation, CLI references, and systemd setup for non-Docker environments.
- Adjusted helm, plugin, and environment-related docs for accurate sidebar ordering.
- Added a new GitHub workflow to automate package publishing to PyPI.
This commit is contained in:
Joao Gilberto Magalhaes 2026-02-17 21:41:33 -05:00
parent 3805100244
commit bfd38adea5
19 changed files with 497 additions and 20 deletions

View file

@ -27,7 +27,7 @@ WORKDIR /scripts
COPY build/assets /
COPY pyproject.toml uv.lock LICENSE README.md /scripts/
COPY src/ /scripts/
COPY src/ /scripts/src/
COPY tests/ /scripts/tests/
RUN cd /scripts && uv sync --frozen
@ -36,4 +36,4 @@ RUN apk del .build-deps
RUN cd /scripts && uv run pytest -s -vv tests/ && uv sync --no-dev
CMD ["uv", "run", "python", "-u", "/scripts/main.py"]
CMD ["/scripts/.venv/bin/easy-haproxy"]