Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎨完善Docker构建解决原基础镜像Debian-12.0与mariadb-10.6不兼容问题 #865

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

ontheway01
Copy link
Contributor

  • 场景:
    使用main分支代码进行打包镜像TCA_IMAGE_BUILD=true ./quick_install.sh docker deploy
    时,执行报错
4273.2 + bash /tmp/mariadb_repo_setup --mariadb-server-version=mariadb-10.6
4273.2 # [error] Detected Debian but version (12.0) is not supported.
4273.2 # [error] # The MariaDB Repository only supports these distributions:
4273.2 #    * RHEL/Rocky 8 & 9 (rhel)
4273.2 #    * RHEL/CentOS 7 (rhel)
4273.2 #    * Ubuntu 18.04 LTS (bionic), 20.04 LTS (focal), and 22.04 LTS (jammy)
4273.2 #    * Debian 10 (buster), & 11 (bullseye)
4273.2 #    * SLES 12 & 15 (sles)
4273.2 # [error] # See https://mariadb.com/kb/en/mariadb/mariadb-package-repository-setup-and-usage/#platform-support
  • 分析:
    python:3.7-slim (Image hierarchy From debian:12-slim),而MariaDB-10.6不支持Debian-12
    基础镜像操作系统升级后导致兼容

  • 解决:
    更换Python基础镜像为3.7-slim-bullseye(Image hierarchy From debian:11-slim)
    重新运行脚本后执行成功。

Copy link
Collaborator

@Lingghh Lingghh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Lingghh Lingghh merged commit 161bc15 into Tencent:main Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants