whyour / qinglong

支持 Python3、JavaScript、Shell、Typescript 的定时任务管理平台(Timed task management platform supporting Python3, JavaScript, Shell, Typescript)
http://demo.ninesix.cc:4433
Apache License 2.0
15.2k stars 2.86k forks source link

qinglong-debian增加是否更新apt update选项 #2403

Closed yanghanbin closed 1 month ago

yanghanbin commented 1 month ago

Clear and concise description of the problem

我的docker设置如下 version: '2' name: qinglong services: qinglong: container_name: qinglong stdin_open: true tty: true restart: always deploy: resources: limits: memory: 4GB

alpine 基础镜像版本

#image: whyour/qinglong:latest
# debian-slim 基础镜像版本
image: whyour/qinglong:debian
volumes:
  - /volume1/docker/qinglong/ql:/ql/data
  - /volume2/Download:/ql/download
  - /volume1/docker/qinglong/sources.list:/etc/apt/sources.list
  - /volume1/docker/qinglong/apt.conf:/etc/apt/apt.conf
ports:
  - "0.0.0.0:5700:5700"

因为某些原因,增加了 deb http://ftp.de.debian.org/debian bullseye main non-free 构建启动后,应用初始化,自动安装linux依赖会失败,如果手动运行一下apt update就正常了

Suggested solution

在首次运行自动安装linux依赖的时候,自动执行一下apt update 后续作为可选配置

Alternative

No response

Additional context

No response

Validations

whyour commented 1 month ago

可以把 apt update 写到配置文件的 extra.sh 里,config 配置里 EnableExtraShell 设置为 true

yanghanbin commented 1 month ago

确认有效