diff --git a/Database/tidb/8.5.3/24.03-lts-sp1/Dockerfile b/Database/tidb/8.5.3/24.03-lts-sp1/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..8a58326e5af567428ac4d573c6204d20e0a33f02 --- /dev/null +++ b/Database/tidb/8.5.3/24.03-lts-sp1/Dockerfile @@ -0,0 +1,19 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM $BASE AS builder + +ARG VERSION=8.5.3 +ARG TARGETARCH +RUN yum install -y make gcc git && \ + curl -fSL -o go.tar.gz https://golang.google.cn/dl/go1.23.7.linux-${TARGETARCH}.tar.gz && \ + tar -xvf go.tar.gz -C /usr/local +ENV PATH="/usr/local/go/bin:${PATH}" +RUN git clone -b v${VERSION} https://github.com/pingcap/tidb.git && \ + cd tidb && \ + make server + +# use distroless image as base +FROM openeuler/distroless-base:2.38-oe2403lts +COPY --from=builder /tidb/bin/tidb-server /tidb-server +WORKDIR / +EXPOSE 4000 +ENTRYPOINT [ "/tidb-server" ] \ No newline at end of file diff --git a/Database/tidb/meta.yml b/Database/tidb/meta.yml index 0be077dce5ecef190f6d2cb47e972f037679eb16..7ba5de3043075d82c91d7442cb7dbf97b741f3da 100644 --- a/Database/tidb/meta.yml +++ b/Database/tidb/meta.yml @@ -1,2 +1,4 @@ 8.5.1-oe2403sp1: - path: 8.5.1/24.03-lts-sp1/Dcokerfile \ No newline at end of file + path: 8.5.1/24.03-lts-sp1/Dcokerfile +8.5.3-oe2403sp1: + path: 8.5.3/24.03-lts-sp1/Dockerfile \ No newline at end of file