Skip to content

Commit

Permalink
Fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
baseplate-admin committed Jan 12, 2025
1 parent 1d9e9d2 commit abb9ac5
Show file tree
Hide file tree
Showing 6 changed files with 340 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tracker/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ celerybeat-schedule
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
Expand Down Expand Up @@ -118,7 +117,7 @@ dmypy.json
# But not Pipfile
!Pipfile.lock
# Nor Poetry
!poetry.lock
!uv.lock


# Tattoo sucks
Expand Down
2 changes: 2 additions & 0 deletions tracker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM python:3.13-alpine AS builder

ENV PATH="/root/.local/bin:$PATH"

# Install system dependencies
RUN apk update && apk add --no-cache curl gcc musl-dev

Expand Down
1 change: 0 additions & 1 deletion tracker/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ authors = [
{ name = "baseplate-admin", email = "[email protected]" },
]
requires-python = ">=3.13"
license = "AGPL-v3"
dependencies = [
"twisted>=24.11.0,<25",
"autobahn[twisted]>=24.4.2,<25",
Expand Down
2 changes: 2 additions & 0 deletions tracker/src/coreproject_tracker/env/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .redis import REDIS_HOST as REDIS_HOST
from .redis import REDIS_PORT as REDIS_PORT
4 changes: 4 additions & 0 deletions tracker/src/coreproject_tracker/env/redis.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import os

REDIS_HOST = os.environ.get("REDIS_HOST", "localhost")
REDIS_PORT = os.environ.get("REDIS_PORT", 6739)
Loading

0 comments on commit abb9ac5

Please sign in to comment.