mirror of
https://github.com/Portabase/agent.git
synced 2026-09-10 10:08:01 +00:00
f37e4d2de9
* feat: add firebird * feat: add firebird tests * fix: tests and refactoring, add justfile instead of makefile
54 lines
1.6 KiB
Makefile
54 lines
1.6 KiB
Makefile
set dotenv-load := true
|
|
set shell := ["bash", "-cu"]
|
|
|
|
CLUSTER_SCRIPT := "docker/entrypoints/app-dev-entrypoint.sh"
|
|
|
|
up:
|
|
bash {{CLUSTER_SCRIPT}}
|
|
|
|
seed-mongo:
|
|
echo "Seeding MongoDB..."
|
|
bash ./scripts/mongo/seed-mongo.sh
|
|
|
|
seed-mongo-auth:
|
|
echo "Seeding MongoDB with auth..."
|
|
bash ./scripts/mongo/seed-mongo.sh auth
|
|
|
|
seed-mysql:
|
|
echo "Seeding MySQL..."
|
|
mysql -h 127.0.0.1 -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASSWORD" "$MYSQL_DB" < ./scripts/mysql/seed-mysql.sql
|
|
|
|
seed-mysql-1gb:
|
|
echo "Seeding MySQL (1GB)..."
|
|
mysql -h 127.0.0.1 -P "$MYSQL_PORT" -u "$MYSQL_USER" -p"$MYSQL_PASSWORD" "$MYSQL_DB" < ./scripts/mysql/seed-1gb.sql
|
|
|
|
seed-postgres:
|
|
echo "Seeding Postgres..."
|
|
docker exec -i -e PGPASSWORD="$PG_PASSWORD" "$PG_CONTAINER" \
|
|
psql -U "$PG_USER" -d "$PG_DB" < ./scripts/postgres/seed.sql
|
|
|
|
seed-postgres-1gb:
|
|
echo "Seeding Postgres (1GB)..."
|
|
docker exec -i -e PGPASSWORD="$PG_PASSWORD" "$PG_CONTAINER" \
|
|
psql -U "$PG_USER" -d "$PG_DB" < ./scripts/postgres/seed-1gb.sql
|
|
|
|
seed-sqlite:
|
|
echo "Seeding SQLite..."
|
|
bash ./scripts/sqlite/seed.sh
|
|
echo "Done"
|
|
|
|
seed-firebird:
|
|
echo "Seeding Firebird..."
|
|
docker exec -i db-firebird isql -user alice -password fake_password /var/lib/firebird/data/mirror.fdb < ./scripts/firebird/seed.sql
|
|
|
|
echo "Verifying Firebird tables..."
|
|
docker exec -i db-firebird isql -user alice -password fake_password /var/lib/firebird/data/mirror.fdb -sql "SHOW TABLES;"
|
|
|
|
seed-all:
|
|
just seed-mongo
|
|
just seed-mysql
|
|
just seed-postgres
|
|
just seed-postgres-1gb
|
|
just seed-sqlite
|
|
just seed-mongo
|
|
just seed-firebird
|