mirror of https://github.com/milvus-io/milvus.git
enhance: support rockylinux8 (#31751)
Signed-off-by: Sammy Huang <sammy.huang@zilliz.com> Signed-off-by: Liang Huang <sammy.huang@zilliz.com>pull/31770/head
parent
1ad5ccc50f
commit
f7a59766df
|
@ -85,3 +85,29 @@ jobs:
|
|||
run: |
|
||||
sed -i 's/ubuntu20.04/amazonlinux2023/g' .env
|
||||
./build/builder.sh /bin/bash -c "make install"
|
||||
|
||||
rockylinux:
|
||||
name: Code Checker rockylinux8
|
||||
# Run in amazonlinux docker
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 180
|
||||
steps:
|
||||
- name: Maximize build space
|
||||
uses: easimon/maximize-build-space@master
|
||||
if: ${{ ! startsWith(runner.name, 'self') }} # skip this step if it is self-hosted runner
|
||||
with:
|
||||
root-reserve-mb: 20480
|
||||
swap-size-mb: 1024
|
||||
remove-dotnet: 'true'
|
||||
remove-android: 'true'
|
||||
remove-haskell: 'true'
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Download Caches
|
||||
uses: ./.github/actions/cache
|
||||
with:
|
||||
os: 'rockylinux8'
|
||||
- name: Code Check
|
||||
run: |
|
||||
sed -i 's/ubuntu20.04/rockylinux8/g' .env
|
||||
./build/builder.sh /bin/bash -c "make install"
|
||||
|
|
|
@ -28,8 +28,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu20.04, amazonlinux2023]
|
||||
arch: [amd64&arm64]
|
||||
os: [ubuntu20.04, amazonlinux2023, rockylinux8]
|
||||
env:
|
||||
OS_NAME: ${{ matrix.os }}
|
||||
IMAGE_ARCH: ${{ matrix.arch }}
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
FROM rockylinux/rockylinux:8
|
||||
|
||||
RUN dnf install -y make automake gcc gcc-c++ curl zip unzip tar git which \
|
||||
libaio libuuid-devel wget python3 python3-pip \
|
||||
pkg-config perl-IPC-Cmd perl-Digest-SHA libatomic libtool
|
||||
|
||||
RUN dnf -y update && \
|
||||
dnf -y install dnf-plugins-core && \
|
||||
dnf config-manager --set-enabled powertools && \
|
||||
dnf -y install texinfo
|
||||
|
||||
RUN pip3 install conan==1.61.0
|
||||
RUN wget https://go.dev/dl/go1.21.6.linux-amd64.tar.gz && tar -xvf go1.21.6.linux-amd64.tar.gz -C /usr/local
|
||||
RUN wget -qO- "https://cmake.org/files/v3.27/cmake-3.27.5-linux-`uname -m`.tar.gz" | tar --strip-components=1 -xz -C /usr/local
|
||||
RUN curl https://sh.rustup.rs -sSf | \
|
||||
sh -s -- --default-toolchain=1.73 -y
|
||||
|
||||
ENV PATH=/root/.cargo/bin:/usr/local/bin:/usr/local/go/bin:$PATH
|
||||
|
||||
COPY --chown=0:0 build/docker/builder/entrypoint.sh /
|
||||
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
CMD ["tail", "-f", "/dev/null"]
|
|
@ -0,0 +1,36 @@
|
|||
# Copyright (C) 2019-2020 Zilliz. All rights reserved.
|
||||
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software distributed under the License
|
||||
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
||||
# or implied. See the License for the specific language governing permissions and limitations under the License.
|
||||
|
||||
FROM rockylinux/rockylinux:8
|
||||
|
||||
ARG TARGETARCH
|
||||
|
||||
RUN dnf install -y wget libgomp libaio libatomic && \
|
||||
rm -rf /var/cache/yum/*
|
||||
|
||||
COPY ./bin/ /milvus/bin/
|
||||
|
||||
COPY ./configs/ /milvus/configs/
|
||||
|
||||
COPY ./lib/ /milvus/lib/
|
||||
|
||||
ENV PATH=/milvus/bin:$PATH
|
||||
ENV LD_LIBRARY_PATH=/milvus/lib:$LD_LIBRARY_PATH:/usr/lib
|
||||
ENV LD_PRELOAD=/milvus/lib/libjemalloc.so
|
||||
ENV MALLOC_CONF=background_thread:true
|
||||
|
||||
# Add Tini
|
||||
ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini-$TARGETARCH /tini
|
||||
RUN chmod +x /tini
|
||||
ENTRYPOINT ["/tini", "--"]
|
||||
|
||||
WORKDIR /milvus
|
Loading…
Reference in New Issue