From 33a56dee3cfa30c9c0598a13acde064c8f765d97 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 11 Apr 2026 11:25:23 -0400 Subject: [PATCH] add ci for telnet server --- .github/workflows/docker.yml | 8 ++++++++ Dockerfile.telnet | 8 ++++++++ docker-compose.yml | 8 ++++++++ pyproject.toml | 2 +- 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 Dockerfile.telnet diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 76bab8d..146ff0c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -27,3 +27,11 @@ jobs: context: . push: true tags: ghcr.io/${{ github.repository }}:latest + + - name: Build and push telnet + uses: docker/build-push-action@v6 + with: + context: . + file: Dockerfile.telnet + push: true + tags: ghcr.io/${{ github.repository_owner }}/atbbs-telnet:latest diff --git a/Dockerfile.telnet b/Dockerfile.telnet new file mode 100644 index 0000000..a26e9b6 --- /dev/null +++ b/Dockerfile.telnet @@ -0,0 +1,8 @@ +FROM python:3.14-slim +WORKDIR /app +COPY pyproject.toml . +RUN pip install --no-cache-dir httpx +COPY core/ core/ +COPY telnet/ telnet/ +EXPOSE 2323 +CMD ["python", "-m", "telnet.server"] diff --git a/docker-compose.yml b/docker-compose.yml index 2a3a811..fde104a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,3 +6,11 @@ services: environment: PUBLIC_URL: ${PUBLIC_URL:?Set PUBLIC_URL in .env or shell (e.g. https://atbbs.app)} restart: unless-stopped + + telnet: + build: + context: . + dockerfile: Dockerfile.telnet + ports: + - "2323:2323" + restart: unless-stopped diff --git a/pyproject.toml b/pyproject.toml index 585a3a5..7089a8b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ build-backend = "hatchling.build" atbbs = "cli.__main__:main" [tool.hatch.build.targets.wheel] -packages = ["cli", "core", "tui"] +packages = ["cli", "core", "telnet", "tui"] [dependency-groups] dev = [] -- 2.51.2