Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/scripts/test_image
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ set -ex

PROJECT_NAME=smartapp-template

python -m copier copy --trust --defaults --vcs-ref=HEAD . smartapp-template
python -m copier copy --trust --defaults --vcs-ref=HEAD --data add_worker=false . smartapp-template
docker build -t $PROJECT_NAME $PROJECT_NAME

# there should be added `--fail` option to curl command when healthcheck endpoint is added
docker run \
-d \
--name $PROJECT_NAME \
Expand All @@ -16,7 +15,7 @@ docker run \
-e REDIS_DSN=$REDIS_DSN \
-e POSTGRES_DSN=$POSTGRES_DSN \
-e BOT_CREDENTIALS="https://cts.example.com@secret@aab1b617-7694-4e75-bc59-145a2fd1502f" \
--health-cmd "curl http://localhost:8000/status || exit 1" \
--health-cmd "curl --fail http://localhost:8000/healthcheck || exit 1" \
--health-interval 2s \
--health-start-period 4s \
--health-timeout 1s \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM python:3.13.11-alpine

# Install system-wide dependencies
RUN apk update && \
apk add --no-cache --clean-protected git curl gcc python3-dev && \
apk add --no-cache --clean-protected git curl build-base && \
rm -rf /var/cache/apk/*

# Create user for app
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ asyncpg = ">=0.31.0,<1.0.0" # DB backend for application
psycopg2-binary = ">=2.9.11,<3.0.0" # DB backend for alembic (migration tool)

redis = ">=7.4.0,<8.0.0"
{% if add_worker -%}
saq = { version = ">=0.26.4,<1.0.0", extras = ["hiredis"] }
{%- endif %}

[tool.poetry.group.dev.dependencies]
mypy = "2.1.0"
Expand Down
Loading