-
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.
Signed-off-by: lijie <lijie@pingcap.com> Co-authored-by: wuhuizuo <wuhuizuo@126.com>
- Loading branch information
Showing
24 changed files
with
441 additions
and
40 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
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
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
Empty file.
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
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# hub.pingcap.net/bases/tidb-base:v1.7.0 | ||
# hub.pingcap.net/bases/tidb-base:v1.7 | ||
# hub.pingcap.net/bases/tidb-base:v1 | ||
ARG PINGCAP_BASE | ||
FROM $PINGCAP_BASE | ||
RUN dnf install --allowerasing -y curl wget && dnf clean all |
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# hub.pingcap.net/bases/tiflash-base:v1.7.0 | ||
# hub.pingcap.net/bases/tiflash-base:v1.7 | ||
# hub.pingcap.net/bases/tiflash-base:v1 | ||
ARG PINGCAP_BASE | ||
FROM $PINGCAP_BASE | ||
RUN dnf install --allowerasing -y wget && dnf clean all |
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,6 @@ | ||
ARG PINGCAP_BASE=ghcr.io/pingcap-qe/bases/pingcap-base:v1.8.0 | ||
FROM $PINGCAP_BASE | ||
# wget is requested by operator | ||
RUN dnf install -y tzdata wget openssl && dnf clean all | ||
ENV TZ=/etc/localtime \ | ||
TZDIR=/usr/share/zoneinfo |
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
# hub.pingcap.net/bases/tools-base:v1.7.0 | ||
# hub.pingcap.net/bases/tools-base:v1.7 | ||
# hub.pingcap.net/bases/tools-base:v1 | ||
ARG PINGCAP_BASE | ||
FROM $PINGCAP_BASE | ||
RUN dnf install -y bind-utils wget nc && dnf clean all |
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,27 @@ | ||
FROM centos:7.9.2009 as builder | ||
|
||
RUN yum -y update | ||
RUN yum -y groupinstall "Development Tools" | ||
|
||
# Install golang. | ||
ENV PATH /usr/local/go/bin:$PATH | ||
RUN export ARCH=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && \\ | ||
export GO_VERSION=1.19.5 && \\ | ||
curl -OL https://golang.org/dl/go$GO_VERSION.linux-$ARCH.tar.gz && \\ | ||
tar -C /usr/local/ -xzf go$GO_VERSION.linux-$ARCH.tar.gz && \\ | ||
rm -f go$GO_VERSION.linux-$ARCH.tar.gz | ||
ENV GOROOT /usr/local/go | ||
ENV GOPATH /go | ||
ENV PATH $GOPATH/bin:$PATH | ||
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" | ||
|
||
# Install nodejs. | ||
RUN curl -fsSL https://rpm.nodesource.com/setup_16.x | bash - | ||
RUN yum -y install nodejs | ||
RUN npm install -g pnpm@7.30.5 | ||
|
||
# Install java. | ||
RUN yum -y install java-11-openjdk | ||
|
||
RUN mkdir -p /go/src/github.com/pingcap/tidb-dashboard/ui | ||
WORKDIR /go/src/github.com/pingcap/tidb-dashboard |
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,55 @@ | ||
# build requires: | ||
# - docker >= v20.10 | ||
# | ||
# build steps: | ||
# - git clone --recurse-submodules --branch feature/release-6.5-fips https://github.com/tikv/tikv.git tikv | ||
# - docker build -t tikv -f Dockerfile ./tikv | ||
|
||
########### stage: Builder | ||
FROM rockylinux:9.3.20231119 as builder | ||
|
||
# install packages. | ||
RUN dnf install -y \ | ||
openssl-devel \ | ||
gcc \ | ||
gcc-c++ \ | ||
make \ | ||
cmake \ | ||
perl \ | ||
git \ | ||
findutils \ | ||
curl \ | ||
python3 --allowerasing && \ | ||
dnf --enablerepo=crb install -y \ | ||
libstdc++-static && \ | ||
dnf clean all | ||
|
||
# install protoc. | ||
# renovate: datasource=github-release depName=protocolbuffers/protobuf | ||
ARG PROTOBUF_VER=v3.15.8 | ||
RUN FILE=$([ "$(arch)" = "aarch64" ] && echo "protoc-${PROTOBUF_VER#?}-linux-aarch_64.zip" || echo "protoc-${PROTOBUF_VER#?}-linux-$(arch).zip"); \ | ||
curl -LO "https://github.com/protocolbuffers/protobuf/releases/download/${PROTOBUF_VER}/${FILE}" && unzip "$FILE" -d /usr/local/ && rm -f "$FILE" | ||
|
||
# Install Rustup | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s - -y --default-toolchain none | ||
ENV PATH /root/.cargo/bin/:$PATH | ||
|
||
########### stage: Buiding | ||
FROM builder as building | ||
COPY . /tikv | ||
RUN --mount=type=cache,target=/tikv/target \ | ||
source /opt/rh/devtoolset-8/enable && \ | ||
ENABLE_FIPS=1 \ | ||
ROCKSDB_SYS_STATIC=1 \ | ||
make dist_release -C /tikv | ||
RUN /tikv/bin/tikv-server --version | ||
|
||
########### stage: Final image | ||
FROM ghcr.io/pingcap-qe/bases/tikv-base:v1.8.0 | ||
|
||
ENV MALLOC_CONF="prof:true,prof_active:false" | ||
COPY --from=building /tikv/bin/tikv-server /tikv-server | ||
COPY --from=building /tikv/bin/tikv-ctl /tikv-ctl | ||
|
||
EXPOSE 20160 | ||
ENTRYPOINT ["/tikv-server"] |
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,5 @@ | ||
ARG BASE_IMG=hub.pingcap.net/bases/pd-base:v1.8.0 | ||
FROM $BASE_IMG | ||
COPY tidb-dashboard /tidb-dashboard | ||
EXPOSE 12333 | ||
ENTRYPOINT ["/tidb-dashboard"] |
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,7 @@ | ||
ARG BASE_IMG=hub.pingcap.net/bases/tikv-base:v1.8.0-fips | ||
FROM $BASE_IMG | ||
COPY tikv-server /tikv-server | ||
COPY tikv-ctl /tikv-ctl | ||
ENV MALLOC_CONF="prof:true,prof_active:false" | ||
EXPOSE 20160 | ||
ENTRYPOINT ["/tikv-server"] |
Oops, something went wrong.