All checks were successful
Publish FaceAI Container / publish (push) Successful in 6m52s
- Updated Dockerfile to include default MySQL client for better database interaction. - Modified entrypoint.sh to support additional workspace for legacy applications and added MySQL readiness check before startup. - Enhanced PowerShell script for trimming MySQL dumps to include overlay dumps and improved error handling for missing race and user IDs. - Added new image files and face encoding pickles for various projects, ensuring comprehensive data availability. - Removed outdated face encoding pickle from PISA directory to maintain data relevance. Co-authored-by: Copilot <copilot@github.com>
21 lines
No EOL
667 B
Bash
21 lines
No EOL
667 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
seed_dump="${LOCAL_DB_SEED_DUMP:-pg-local-purpose-seed-20260422.sql}"
|
|
overlay_dump="${LOCAL_DB_OVERLAY_DUMP:-}"
|
|
|
|
if [ ! -f "/seed/${seed_dump}" ]; then
|
|
echo "Seed dump not found: /seed/${seed_dump}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "Importing seed dump: ${seed_dump}"
|
|
mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" "${MYSQL_DATABASE}" < "/seed/${seed_dump}"
|
|
|
|
if [ -n "${overlay_dump}" ] && [ -f "/seed/${overlay_dump}" ]; then
|
|
echo "Importing seed overlay: ${overlay_dump}"
|
|
mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" "${MYSQL_DATABASE}" < "/seed/${overlay_dump}"
|
|
elif [ -n "${overlay_dump}" ]; then
|
|
echo "Seed overlay not found: /seed/${overlay_dump}" >&2
|
|
exit 1
|
|
fi |