From 9ae34507a442b2a1e88839111b0d7331ec51c80e Mon Sep 17 00:00:00 2001 From: Thephaseless <kukubaorch@gmail.com> Date: Tue, 10 Dec 2024 22:48:35 +0000 Subject: [PATCH] fix docker and update readme --- Dockerfile | 2 +- README.md | 22 +++++++++++++++++----- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index bb702a5..63f5018 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ RUN apt update &&\ RUN curl -LsSf https://astral.sh/uv/install.sh | sh ENV PATH="${HOME}/.local/bin:$PATH" COPY pyproject.toml uv.lock ./ -RUN uv sync --no-group +RUN uv sync COPY . . RUN cd .venv/lib/*/site-packages/seleniumbase/drivers && ln -s /usr/bin/chromedriver uc_driver diff --git a/README.md b/README.md index c992a19..19b8433 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,14 @@ An alternative to [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr) a ## Troubleshooting 1. Clone repo to the host that has the container has issues on. -2. Using vscode and `SSH extention`, connect to the host and open repo in it. -3. Download `devcontainers` extention and reopen repo in container (with `CTRL + SHIFT + P` -> `Reopen in devcontainer`) +2. Using vscode and `SSH extension`, connect to the host and open repo in it. +3. Download `Dev Containers` extension and reopen repo in container (with `CTRL + SHIFT + P` -> `Reopen in devcontainer`) 4. Forward port 6080 from devcontainer (port of noVNC server) to the host. 5. Open `http://localhost:6080` and connect to the virtual desktop. 6. Check if `chromium` works by running in VNC's terminal command `chromium --no-sandbox`. 7. If chromium works, run (or debug) tests from VS Code. - 1. If code works, congrats! (/s) You are on your own. - 2. If it does not, try another host or network, try again and create issue about the problem. + 1. If code works, congrats! (not really) You are on your own. + 2. If it does not, try on another host or network and create an issue if problem persists. ## Usage @@ -37,11 +37,23 @@ services: - "8191:8191" # Optional if needed to make make requests/check docs on host ``` +### Docker + +```bash +docker run -p 8191:8191 ghcr.io/thephaseless/byparr:latest +``` + +### Local + +```bash +uv sync && ./cmd.sh +``` + ## Need help with / TODO - [x] Slimming container (only ~650 MB now!) - [x] Add more anti-bot challenges -- [x] Add docstrings +- [x] Add doc strings - [x] Implement versioning - [ ] Proxy support - [x] Add more architectures support