ci: 更新 Docker 部署配置和环境设置

- 修改 .drone.yml 中的 Docker Compose 命令,使用 jd_bind_card_server 代替 bind_card
- 更新 .gitignore 文件,使用通配符路径以更全面地忽略文件和目录
- 在 babel_channel/app.py 中,将 unidbg_url 的 IP 地址改为服务名 unidbg_boot_server
- 修改 unidbg_boot_server/Dockerfile,将暴露的端口从 8080 改为 9999
This commit is contained in:
danial
2025-04-13 23:02:56 +08:00
parent 98668bbdf7
commit aa25b9e17e
6 changed files with 57 additions and 57 deletions

View File

@@ -103,9 +103,9 @@ steps:
port: 31245
script:
- cd /data/kami
- BRANCH=${DRONE_BRANCH} docker compose --profile bind_card pull
- BRANCH=${DRONE_BRANCH} docker compose --profile bind_card down
- BRANCH=${DRONE_BRANCH} docker compose --profile bind_card up -d
- BRANCH=${DRONE_BRANCH} docker compose --profile jd_bind_card_server pull
- BRANCH=${DRONE_BRANCH} docker compose --profile jd_bind_card_server down
- BRANCH=${DRONE_BRANCH} docker compose --profile jd_bind_card_server up -d
when:
changeset:
includes: [ bind_card/** ]

104
.gitignore vendored
View File

@@ -1,71 +1,71 @@
# IDE
.idea/
.vscode/
*.swp
*.swo
.DS_Store
**/.idea/
**/.vscode/
**/*.swp
**/*.swo
**/.DS_Store
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
**/__pycache__/
**/*.py[cod]
**/*$py.class
**/*.so
**/.Python
**/env/
**/build/
**/develop-eggs/
**/dist/
**/downloads/
**/eggs/
**/.eggs/
**/lib/
**/lib64/
**/parts/
**/sdist/
**/var/
**/*.egg-info/
**/.installed.cfg
**/*.egg
# Node.js
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log
**/node_modules/
**/npm-debug.log
**/yarn-debug.log
**/yarn-error.log
# Docker
.docker/
docker-compose.override.yml
**/.docker/
**/docker-compose.override.yml
# Logs
*.log
logs/
log/
**/*.log
**/logs/
**/log/
# Environment variables
.env
.env.local
.env.*.local
**/.env
**/.env.local
**/.env.*.local
# Temporary files
*.tmp
*.temp
.temp/
tmp/
temp/
**/*.tmp
**/*.temp
**/.temp/
**/tmp/
**/temp/
# Build output
dist/
build/
out/
target/
**/dist/
**/build/
**/out/
**/target/
# Coverage
coverage/
.coverage
htmlcov/
**/coverage/
**/.coverage
**/htmlcov/
# Cache
.cache/
.pytest_cache/
.mypy_cache/
**/.cache/
**/.pytest_cache/
**/.mypy_cache/

View File

@@ -241,7 +241,7 @@ def get_sign(func, body, uuid, version):
"platform": "android",
"version": version
})
unidbg_url = "http://127.0.0.1:9999/api/jd/encrypt"
unidbg_url = "http://unidbg_boot_server:9999/api/jd/encrypt"
response_jd = requests.request("POST", url=unidbg_url, headers=headers_jd, data=payload)
res = response_jd.json()
params = parse_qs(res["data"])

View File

View File

View File

@@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y \
COPY unidbg-boot-server.jar app.jar
# 设置环境变量
ENV PORT=8080
ENV PORT=9999
ENV JAVA_OPTS="-Xms512m -Xmx1024m"
# 暴露端口