-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dockerfiles/cd/builders/tiflash): fix dockerfile to avoid cache c…
…onflict with docker buildx (#398) Signed-off-by: wuhuizuo <[email protected]> --------- Signed-off-by: wuhuizuo <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2ed3ea4
commit 022d4cc
Showing
34 changed files
with
98 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
ci: | ||
autofix_commit_msg: | | ||
fix: auto fixes from pre-commit.com hooks | ||
for more information, see https://pre-commit.ci | ||
autoupdate_commit_msg: "chore: pre-commit autoupdate" | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/gitleaks/gitleaks | ||
rev: v8.16.1 | ||
hooks: | ||
- id: gitleaks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,15 @@ | |
# - docker >= v20.10 | ||
# | ||
# build steps: | ||
# - git clone https://github.com/pingcap/ng-monitoring.git ng-monitoring | ||
# - git clone https://github.com/pingcap/ng-monitoring.git ng-monitoring | ||
# - rm ng-monitoring/.dockerignore # make step depended on git metadata. | ||
# - docker build -t ng-monitoring -f Dockerfile ./ng-monitoring | ||
|
||
########### stage: builder | ||
FROM quay.io/rockylinux/rockylinux:8.10.20240528 as builder | ||
LABEL org.opencontainers.image.authors "[email protected]" | ||
LABEL org.opencontainers.image.description "binary builder for NG-Monitoring" | ||
LABEL org.opencontainers.image.source = "https://github.com/PingCAP-QE/artifacts" | ||
LABEL org.opencontainers.image.source "https://github.com/PingCAP-QE/artifacts" | ||
|
||
# install packages. | ||
RUN --mount=type=cache,target=/var/cache/dnf \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
FROM quay.io/rockylinux/rockylinux:8.10.20240528 as builder | ||
LABEL org.opencontainers.image.authors "[email protected]" | ||
LABEL org.opencontainers.image.description "binary builder for PD" | ||
LABEL org.opencontainers.image.source = "https://github.com/PingCAP-QE/artifacts" | ||
LABEL org.opencontainers.image.source "https://github.com/PingCAP-QE/artifacts" | ||
|
||
# install packages. | ||
RUN --mount=type=cache,target=/var/cache/dnf \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,15 @@ | |
# - docker >= v20.10 | ||
# | ||
# build steps: | ||
# - git clone https://github.com/pingcap/tidb-dashbord.git tidb-dashbord | ||
# - git clone https://github.com/pingcap/tidb-dashbord.git tidb-dashbord | ||
# - rm tidb-dashbord/.dockerignore # make step depended on git metadata. | ||
# - docker build -t tidb-dashbord -f Dockerfile ./tidb-dashbord | ||
|
||
########### stage: builder | ||
FROM quay.io/rockylinux/rockylinux:8.10.20240528-ubi as builder | ||
LABEL org.opencontainers.image.authors "[email protected]" | ||
LABEL org.opencontainers.image.description "binary builder for TiDB Dashboard" | ||
LABEL org.opencontainers.image.source = "https://github.com/PingCAP-QE/artifacts" | ||
LABEL org.opencontainers.image.source "https://github.com/PingCAP-QE/artifacts" | ||
|
||
# install packages. | ||
RUN --mount=type=cache,target=/var/cache/dnf \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# - docker >= v20.10 | ||
# | ||
# build steps: | ||
# - git clone https://github.com/pingcap/tidb-operator.git tidb | ||
# - git clone https://github.com/pingcap/tidb-operator.git tidb | ||
# - rm tidb-operator/.dockerignore # make step depended on git metadata. | ||
# - docker build -t tidb-operator -f Dockerfile ./tidb-operator | ||
|
||
|
@@ -11,7 +11,7 @@ ARG GOLANG_VERSION=1.21.13 | |
FROM golang:${GOLANG_VERSION} as builder | ||
LABEL org.opencontainers.image.authors "[email protected]" | ||
LABEL org.opencontainers.image.description "binary builder for TiDB Operator" | ||
LABEL org.opencontainers.image.source = "https://github.com/PingCAP-QE/artifacts" | ||
LABEL org.opencontainers.image.source "https://github.com/PingCAP-QE/artifacts" | ||
LABEL go-version="${GOLANG_VERSION}" | ||
|
||
# install packages. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,15 @@ | |
# - docker >= v20.10 | ||
# | ||
# build steps: | ||
# - git clone https://github.com/pingcap/tidb.git tidb | ||
# - 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 "[email protected]" | ||
LABEL org.opencontainers.image.description "binary builder for TiDB" | ||
LABEL org.opencontainers.image.source = "https://github.com/PingCAP-QE/artifacts" | ||
LABEL org.opencontainers.image.source "https://github.com/PingCAP-QE/artifacts" | ||
|
||
# install packages. | ||
RUN --mount=type=cache,target=/var/cache/dnf \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ RUN zip_url=$([ "$(arch)" = "x86_64" ] && \ | |
FROM quay.io/rockylinux/rockylinux:8.10.20240528-ubi as builder | ||
LABEL org.opencontainers.image.authors "[email protected]" | ||
LABEL org.opencontainers.image.description "binary builder for TiFlash" | ||
LABEL org.opencontainers.image.source = "https://github.com/PingCAP-QE/artifacts" | ||
LABEL org.opencontainers.image.source "https://github.com/PingCAP-QE/artifacts" | ||
|
||
# install packages. | ||
RUN --mount=type=cache,target=/var/cache/dnf \ | ||
|
@@ -38,12 +38,12 @@ ENV LD ld.lld | |
COPY --from=extract-conda-openssl /usr/local/opt/openssl /usr/local/opt/openssl | ||
|
||
# building and install libc++ | ||
RUN --mount=type=cache,target=/tmp/llvm \ | ||
git clone https://github.com/llvm/llvm-project.git --branch llvmorg-17.0.6 --depth 1 /tmp/llvm/llvm-project && \ | ||
cd /tmp/llvm/llvm-project && rm -rf build && mkdir build && \ | ||
RUN git clone https://github.com/llvm/llvm-project.git --branch llvmorg-17.0.6 --depth 1 /tmp/llvm-project && \ | ||
cd /tmp/llvm-project && rm -rf build && mkdir build && \ | ||
cmake -G Ninja -S runtimes -B build -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" -DCMAKE_INSTALL_PREFIX=/usr -DLLVM_LIBDIR_SUFFIX=64 && \ | ||
ninja -C build cxx cxxabi unwind && \ | ||
ninja -C build install-cxx install-cxxabi install-unwind | ||
ninja -C build install-cxx install-cxxabi install-unwind && \ | ||
rm -rf /tmp/llvm-project | ||
|
||
# install rust toolchain | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s - -y --default-toolchain none | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ RUN node --version && npm --version && npm install -g yarn | |
FROM builder-dm as builder | ||
LABEL org.opencontainers.image.authors "[email protected]" | ||
LABEL org.opencontainers.image.description "binary builder for TiFlow" | ||
LABEL org.opencontainers.image.source = "https://github.com/PingCAP-QE/artifacts" | ||
LABEL org.opencontainers.image.source "https://github.com/PingCAP-QE/artifacts" | ||
|
||
########### stage: building-cdc | ||
FROM builder-cdc as building-cdc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
FROM quay.io/rockylinux/rockylinux:8.10.20240528-ubi as builder | ||
LABEL org.opencontainers.image.authors "[email protected]" | ||
LABEL org.opencontainers.image.description "binary builder for TiKV" | ||
LABEL org.opencontainers.image.source = "https://github.com/PingCAP-QE/artifacts" | ||
LABEL org.opencontainers.image.source "https://github.com/PingCAP-QE/artifacts" | ||
|
||
# install packages. | ||
# install packages. | ||
|
Oops, something went wrong.