Enhance Docker and PowerShell scripts for improved functionality and maintainability
All checks were successful
Publish FaceAI Container / publish (push) Successful in 6m52s
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>
This commit is contained in:
parent
c227fce036
commit
dd7d4c865b
54 changed files with 492 additions and 144 deletions
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
seed_dump="${LOCAL_DB_SEED_DUMP:-pg-model-seed-trimmed-20260421.sql}"
|
||||
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
|
||||
|
|
@ -9,4 +10,12 @@ if [ ! -f "/seed/${seed_dump}" ]; then
|
|||
fi
|
||||
|
||||
echo "Importing seed dump: ${seed_dump}"
|
||||
mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" "${MYSQL_DATABASE}" < "/seed/${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
|
||||
Loading…
Add table
Add a link
Reference in a new issue