Add testcontainer for agent image with nginx

This commit is contained in:
GW_MC
2025-12-22 12:54:14 +08:00
parent 61ecd91219
commit 7db23b01df
13 changed files with 589 additions and 78 deletions

View File

@@ -2,6 +2,8 @@ set dotenv-load := true
# development environment file
set dotenv-filename := "./public/database/.env.generated"
DEFAULT_SIMULATE_ARGS := "--agent-dockerfile-path=../agent/Dockerfile"
cli *args:
cd apps/cli && \
if [ -n "{{args}}" ]; then \
@@ -13,9 +15,9 @@ cli *args:
simulate *args:
cd apps/container && \
if [ -n "{{args}}" ]; then \
cargo run --bin container-simulate -- --db-type={{args}}; \
cargo run --bin container-simulate -- {{args}}; \
else \
cargo run --bin container-simulate; \
cargo run --bin container-simulate -- {{DEFAULT_SIMULATE_ARGS}}; \
fi
# Usage: (following SeaORM migration commands)