This commit is contained in:
vipg
2025-12-26 16:22:23 +08:00
parent 91b663328b
commit 7884c77d69
14 changed files with 5 additions and 730 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/bash
# create.sh - 启动Python容器执行create.py脚本
# create.sh - 启动Python容器执行create_table.py脚本
set -e # 遇到错误立即退出
echo "🚀 启动Python容器执行create.py..."
echo "🚀 启动Python容器执行create_table.py..."
# 获取脚本所在目录的绝对路径
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@@ -34,8 +34,8 @@ docker run --rm \
echo '🔧 安装依赖(如果需要)...'
pip install --quiet --no-cache-dir psycopg2-binary >/dev/null 2>&1 || true
echo '⚙️ 执行 create.py...'
python create/create.py
echo '⚙️ 执行 create_table.py...'
python create/create_table.py
echo ''
echo '✅ 执行完成!'