mirror of
https://github.com/Portabase/agent.git
synced 2026-09-10 01:57:10 +00:00
f37e4d2de9
* feat: add firebird * feat: add firebird tests * fix: tests and refactoring, add justfile instead of makefile
14 lines
418 B
Bash
14 lines
418 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SEED_VALUE="${SEED:-}"
|
|
|
|
if [ "$SEED_VALUE" = "big" ]; then
|
|
SQLITE_SEED_FILE="./scripts/sqlite/seed-big.sql"
|
|
else
|
|
SQLITE_SEED_FILE="./scripts/sqlite/seed.sql"
|
|
fi
|
|
|
|
docker exec -u 0 db-sqlite sh -c "chmod -R 777 /workspace/data"
|
|
docker exec -u 0 db-sqlite sh -c "touch /workspace/data/app.db"
|
|
docker exec -i db-sqlite sh -c "sqlite3 /workspace/data/app.db" < "$SQLITE_SEED_FILE" |