TiDB 的官方镜像的编译Dockerfile在哪里

有猫万事足
Fri, 17 Jan 2025 13:52:07 +0000

github.com

PingCAP-QE/artifacts/blob/main/dockerfiles/cd/builders/tidb/Dockerfile

# build requires:
#   - docker >= v20.10
#
# build steps:
#   - git clone https://github.com/pingcap/tidb.git tidb
#   - rm tidb/.dockerignore # make step depended on git metadata.
#   - docker build -t tidb -f Dockerfile ./tidb

########### stage: builder
FROM quay.io/rockylinux/rockylinux:8.10.20240528 as builder
LABEL org.opencontainers.image.authors "wuhui.zuo@pingcap.com"
LABEL org.opencontainers.image.description "binary builder for TiDB"
LABEL org.opencontainers.image.source "https://github.com/PingCAP-QE/artifacts"

# install packages.
RUN --mount=type=cache,target=/var/cache/dnf \
    dnf upgrade-minimal -y && \
    dnf install -y make git gcc findutils

# install golang toolchain

This file has been truncated. show original

好像是这个，我对这个不熟，不是非常确定。

阅读完整话题