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.
黄海 00f63a2470
'commit'
5 months ago
..
.idea 'commit' 5 months ago
SyncData 'commit' 5 months ago
config 'commit' 5 months ago
connectors 'commit' 5 months ago
mappers 'commit' 5 months ago
schemas 'commit' 5 months ago
services 'commit' 5 months ago
utils 'commit' 5 months ago
.dockerignore 'commit' 5 months ago
C1_CreateTable.py 'commit' 5 months ago
C2_SyncData.py 'commit' 5 months ago
Dockerfile 'commit' 5 months ago
checkencoding.sh 'commit' 5 months ago
entrypoint.sh 'commit' 5 months ago
readme.txt 'commit' 5 months ago
requirements.txt 'commit' 5 months ago

readme.txt

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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