Skip to content

Commit

Permalink
Merge branch 'main' into feature/update-tiflash-builder
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhuizuo authored Nov 11, 2024
2 parents af8ffba + 8c9f932 commit 456516a
Show file tree
Hide file tree
Showing 14 changed files with 67 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dockerfiles/cd/builders/ng-monitoring/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN --mount=type=cache,target=/var/cache/dnf \

# install golang toolchain
# renovate: datasource=docker depName=golang
ARG GOLANG_VERSION=1.23.2
ARG GOLANG_VERSION=1.23.3
RUN OS=linux; ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo arm64); \
curl -fsSL https://dl.google.com/go/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz | tar -C /usr/local -xz
ENV PATH /usr/local/go/bin/:$PATH
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/cd/builders/skaffold-centos7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ profiles:
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.2
GOLANG_VERSION: 1.23.3
- op: add
path: /build/artifacts/1/docker/buildArgs
value: *value-go1-23
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/cd/builders/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ profiles:
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.2
GOLANG_VERSION: 1.23.3
- op: add
path: /build/artifacts/1/docker/buildArgs
value: *value-go1-23
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/cd/builders/tidb-dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN --mount=type=cache,target=/var/cache/dnf \

# install golang toolchain
# renovate: datasource=docker depName=golang
ARG GOLANG_VERSION=1.23.2
ARG GOLANG_VERSION=1.23.3
RUN OS=linux; ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo arm64); \
curl -fsSL https://dl.google.com/go/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz | tar -C /usr/local -xz
ENV PATH /usr/local/go/bin/:$PATH
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/cd/builders/tidb-operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# - docker build -t tidb-operator -f Dockerfile ./tidb-operator

########### stage: builder
ARG GOLANG_VERSION=1.23.2
ARG GOLANG_VERSION=1.23.3
FROM golang:${GOLANG_VERSION} as builder
LABEL org.opencontainers.image.authors "[email protected]"
LABEL org.opencontainers.image.description "binary builder for TiDB Operator"
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/cd/builders/tidb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN --mount=type=cache,target=/var/cache/dnf \

# install golang toolchain
# renovate: datasource=docker depName=golang
ARG GOLANG_VERSION=1.23.2
ARG GOLANG_VERSION=1.23.3
RUN OS=linux; ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo arm64); \
curl -fsSL https://dl.google.com/go/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz | tar -C /usr/local -xz
ENV PATH /usr/local/go/bin/:$PATH
Expand Down
5 changes: 3 additions & 2 deletions dockerfiles/cd/builders/tiflash/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ ENV PATH="/opt/cmake/bin:/usr/local/bin/:${PATH}:/usr/local/go/bin:/root/.cargo/
FROM builder as building

ADD . /ws
RUN CARGO_NET_GIT_FETCH_WITH_CLI=true /ws/release-centos7-llvm/scripts/build-release.sh
RUN mkdir /ws/output && mv /ws/release-centos7-llvm/tiflash /ws/output/tiflash
RUN CARGO_NET_GIT_FETCH_WITH_CLI=true /ws/release-linux-llvm/scripts/build-release.sh
RUN mkdir /ws/output && mv /ws/release-linux-llvm/tiflash /ws/output/tiflash
RUN /ws/output/tiflash/tiflash version


########### stage: Final image
FROM ghcr.io/pingcap-qe/bases/tiflash-base:v1.9.2

Expand Down
1 change: 0 additions & 1 deletion dockerfiles/cd/builders/tiflash/centos7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ 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"

# renovate: datasource=github-tags depName=pingcap/tiflash
ARG TIFLASH_VER=v8.3.0
RUN FILE=$([ "$(arch)" = "aarch64" ] && echo "bake_llvm_base_aarch64.sh" || echo "bake_llvm_base_amd64.sh"); \
TAR_DIR="tiflash-$(echo $TIFLASH_VER | sed 's/v//')"; \
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/cd/builders/tiflow/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN --mount=type=cache,target=/var/cache/dnf \

# install golang toolchain
# renovate: datasource=docker depName=golang
ARG GOLANG_VERSION=1.23.2
ARG GOLANG_VERSION=1.23.3
RUN OS=linux; ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo arm64); \
curl -fsSL https://dl.google.com/go/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz | tar -C /usr/local -xz
ENV PATH /usr/local/go/bin/:$PATH
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/cd/utils/release/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LABEL org.opencontainers.image.source "https://github.com/PingCAP-QE/artifacts"
RUN apk add --no-cache bash git jq yq uuidgen

# install tools: gomplate
COPY --from=hairyhenderson/gomplate:v4.1.0-alpine /bin/gomplate /usr/local/bin/gomplate
COPY --from=hairyhenderson/gomplate:v4.2.0-alpine /bin/gomplate /usr/local/bin/gomplate

# install tools: oras
COPY --from=ghcr.io/oras-project/oras:v1.2.0 --chown=0:0 /bin/oras /usr/local/bin/oras
Expand Down
4 changes: 2 additions & 2 deletions dockerfiles/ci/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN if [ "$(arch)" = "x86_64" ]; then \

# install golang toolchain
# renovate: datasource=docker depName=golang
ARG GOLANG_VERSION=1.23.2
ARG GOLANG_VERSION=1.23.3
RUN OS=linux; ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo arm64); \
curl -fsSL https://dl.google.com/go/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz | tar -C /usr/local -xz
ENV PATH /usr/local/go/bin/:$PATH
Expand Down Expand Up @@ -71,7 +71,7 @@ ENV PATH=$PATH:/opt/apache-maven-${MAVEN_VER}/bin

#### install tools: bazelisk, codecov, oras
# renovate: datasource=github-tags depName=bazelbuild/bazelisk
ARG BAZELISK_VERSION=v1.22.1
ARG BAZELISK_VERSION=v1.23.0
RUN OS=linux; ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo arm64); \
curl -fsSL "https://github.com/bazelbuild/bazelisk/releases/download/${BAZELISK_VERSION}/bazelisk-${OS}-${ARCH}" -o /usr/local/bin/bazel && chmod +x /usr/local/bin/bazel

Expand Down
6 changes: 3 additions & 3 deletions dockerfiles/ci/release-build-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ RUN yum update --nogpgcheck -y && \

##### install golang toolchain
# renovate: datasource=docker depName=golang
ARG GOLANG_VERSION=1.23.2
ARG GOLANG_VERSION=1.23.3
RUN OS=linux; ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo arm64); \
curl -fsSL https://dl.google.com/go/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz | tar -C /usr/local -xz
ENV PATH /usr/local/go/bin/:$PATH
Expand All @@ -74,7 +74,7 @@ RUN npm install -g yarn pnpm

##### install tools: bazelisk, yq, oras
# renovate: datasource=github-tags depName=bazelbuild/bazelisk
ARG BAZELISK_VERSION=v1.22.1
ARG BAZELISK_VERSION=v1.23.0
RUN OS=linux; ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo arm64); \
curl -fsSL "https://github.com/bazelbuild/bazelisk/releases/download/${BAZELISK_VERSION}/bazelisk-${OS}-${ARCH}" -o /usr/local/bin/bazel && chmod +x /usr/local/bin/bazel

Expand All @@ -96,7 +96,7 @@ RUN OS=linux; ARCH=$([ "$(arch)" = "x86_64" ] && echo amd64 || echo arm64); \

# go template tool
# renovate: datasource=docker depName=hairyhenderson/gomplate
COPY --from=hairyhenderson/gomplate:v4.1.0 /gomplate /usr/local/bin/gomplate
COPY --from=hairyhenderson/gomplate:v4.2.0 /gomplate /usr/local/bin/gomplate

# Set cmake3 as default cmake
# renovate: datasource=github-tags depName=Kitware/CMake
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/ci/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ profiles:
path: /build/artifacts/0/docker/buildArgs
value: &value-go1-23
# renovate: datasource=docker depName=golang
GOLANG_VERSION: 1.23.2
GOLANG_VERSION: 1.23.3
- op: add
path: /build/artifacts/0/docker/buildArgs
value: *value-go1-23
Expand Down
53 changes: 50 additions & 3 deletions packages/packages.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -1621,14 +1621,61 @@ components:
- {{ .Release.version }}
builders:
- if: {{ semver.CheckConstraint ">= 8.4.0-0" .Release.version }}
image: ghcr.io/pingcap-qe/cd/builders/tiflash:v2024.10.8-14-g52a7228
image: ghcr.io/pingcap-qe/cd/builders/tiflash:v2024.11.7
- if: {{ semver.CheckConstraint ">= 8.2.0-0, < 8.4.0-0" .Release.version }}
image: hub.pingcap.net/ee/ci/release-build-base-tiflash:v20240625-llvm-17.0.6
- if: {{ semver.CheckConstraint ">= 6.1.0-0, < 8.2.0-0" .Release.version }}
image: hub.pingcap.net/ee/ci/release-build-base-tiflash:v20231106
routers:
- description: For range [v8.4.0, )
if: {{ semver.CheckConstraint ">= 8.4.0-0" .Release.version }}
- description: For range [v8.5.0, ) it changed the build script path.
if: {{ semver.CheckConstraint ">= 8.5.0-0" .Release.version }}
os: [linux, darwin]
arch: [amd64, arm64]
profile: [release, enterprise]
steps:
release:
- os: linux
script: |
./release-linux-llvm/scripts/build-tiflash-release.sh
mkdir outputs
mv release-linux-llvm/tiflash outputs/tiflash
- os: darwin
script: |
./release-darwin/build/build-release.sh
mkdir outputs
mv release-darwin/tiflash outputs/tiflash
enterprise:
- script: export TIFLASH_EDITION=Enterprise
- os: linux
script: |
./release-linux-llvm/scripts/build-tiflash-release.sh
mkdir outputs
mv release-linux-llvm/tiflash outputs/tiflash
- os: darwin
script: |
./release-darwin/build/build-release.sh
mkdir outputs
mv release-darwin/tiflash outputs/tiflash
artifacts:
- name: "tiflash-{{ .Release.version }}-{{ .Release.os }}-{{ .Release.arch }}.tar.gz"
files: # output files.
- name: tiflash/
src:
path: outputs/tiflash/
tiup:
description: The TiFlash Columnar Storage Engine
entrypoint: tiflash/tiflash
- name: container image
type: image
artifactory:
repo: "{{ .Release.registry }}/pingcap/tiflash/image"
dockerfile: https://github.com/PingCAP-QE/artifacts/raw/main/dockerfiles/products/tiflash/Dockerfile
files:
- name: tiflash/
src:
path: outputs/tiflash/
- description: For v8.4.x
if: {{ semver.CheckConstraint "~8.4.0-0" .Release.version }}
os: [linux, darwin]
arch: [amd64, arm64]
profile: [release, enterprise]
Expand Down

0 comments on commit 456516a

Please sign in to comment.