You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
5 months ago | |
---|---|---|
.. | ||
.idea | 5 months ago | |
SyncData | 5 months ago | |
config | 5 months ago | |
connectors | 5 months ago | |
mappers | 5 months ago | |
schemas | 5 months ago | |
services | 5 months ago | |
utils | 5 months ago | |
.dockerignore | 5 months ago | |
C1_CreateTable.py | 5 months ago | |
C2_SyncData.py | 5 months ago | |
Dockerfile | 5 months ago | |
checkencoding.sh | 5 months ago | |
entrypoint.sh | 5 months ago | |
readme.txt | 5 months ago | |
requirements.txt | 5 months ago |
readme.txt
conda activate py310
pip install --upgrade pymysql
pip install --upgrade clickhouse-driver
pip install --upgrade tqdm
pip install --upgrade psutil
# 删除所有.pyc缓存文件
find . -name "*.pyc" -delete
find . -type d -name "__pycache__" -exec rm -rf {} +
# 递归转换所有文件为LF格式
find . -type f -not -path './.git/*' -exec dos2unix {} \;
# 特别处理SQL文件(根据检测结果)
dos2unix ./schemas/*.sql
dos2unix ./services/sync_service.py
dos2unix ./utils/logger.py
dos2unix ./*.py
# 构建镜像
docker build --no-cache --build-arg PYTHON_VERSION=3.10 --build-arg APP_ENV=production -t data-sync-service:1.0 .
# 运行
# 运行测试容器
docker run -it --rm data-sync-service:1.0