1 Star 0 Fork 12

YangeCool/tikv

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile.FIPS 999 Bytes
一键复制 编辑 原始数据 按行查看 历史
overvenus 提交于 2023-11-22 12:31 . Dockerfile: update base image (#16033)
# This Docker image contains a minimal build environment for a FIPS compliant TiKV.
FROM rockylinux:9 as builder
RUN dnf install -y openssl-devel
RUN dnf install -y \
gcc \
gcc-c++ \
make \
cmake \
perl \
git \
findutils \
curl \
python3 --allowerasing && \
dnf --enablerepo=crb install -y \
libstdc++-static && \
dnf clean all
# Install Rustup
RUN curl https://sh.rustup.rs -sSf | sh -s -- --no-modify-path --default-toolchain none -y
ENV PATH /root/.cargo/bin/:$PATH
# Checkout TiKV source code.
WORKDIR /tikv
COPY .git .git
ARG GIT_HASH
RUN git checkout ${GIT_HASH} && git checkout .
# Do not static link OpenSSL.
ENV ENABLE_FIPS 1
RUN make build_dist_release
# Export to a clean image
FROM rockylinux:9-minimal
RUN microdnf install -y openssl
COPY --from=builder /tikv/target/release/tikv-server /tikv-server
COPY --from=builder /tikv/target/release/tikv-ctl /tikv-ctl
EXPOSE 20160 20180
ENTRYPOINT ["/tikv-server"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangecool/tikv.git
git@gitee.com:yangecool/tikv.git
yangecool
tikv
tikv
master

搜索帮助