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: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN apt-get update \
RUN pip install "uv==$UV_VERSION"
COPY pyproject.toml config.toml ./
RUN uv venv -p 3.13
RUN uv sync --all-extras
RUN uv sync --no-dev
COPY src ./src
RUN uv pip install -e .

Expand All @@ -31,4 +31,5 @@ FROM python-base AS runner
COPY --from=builder $VIRTUAL_ENV $VIRTUAL_ENV
COPY --from=builder $APP_PATH/src $APP_PATH/src
COPY --from=builder $APP_PATH/pyproject.toml $APP_PATH/pyproject.toml
COPY --from=builder $APP_PATH/config.toml $APP_PATH/config.toml
COPY --from=builder $APP_PATH/config.toml $APP_PATH/config.toml
COPY --from=builder $APP_PATH/src/conode/infrastructure/credentials $APP_PATH/infrastructure/credentials
32 changes: 27 additions & 5 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,40 @@ up target build="" profile="":
up $BUILD_FLAG
fi

down rm="":
down flag="":
#!/usr/bin/env bash

set -e

RM_FLAG=""
FLAG=""

if [ "{{rm}}" = "rm" ]; then
RM_FLAG="-v"
if [ "{{flag}}" = "rm" ]; then
FLAG="-v"
fi

docker compose -f docker-compose.base.yaml down $RM_FLAG
docker compose -f docker-compose.base.yaml down $FLAG

keygen path="src/conode/infrastructure/credentials/":
#!/usr/bin/env bash

openssl genrsa -out {{path}}private.pem 4096
openssl rsa \
-in {{path}}private.pem \
-pubout \
-out {{path}}public.pem

test flag="":
#!/usr/bin/env bash

set -e

FLAG=""

if [ "{{flag}}" = "parallel" ]; then
FLAG="-n auto"
fi

pytest . $FLAG

restart target:
docker compose -f docker-compose.base.yaml restart {{target}}
Expand Down
8 changes: 0 additions & 8 deletions deploy/keycloak/keycloak.env

This file was deleted.

Loading
Loading