提交 ad299b7b 编写于 作者: Q quicksilver

add centos7 on github actions

上级 3928037f
......@@ -40,3 +40,33 @@ jobs:
docker login -u ${{ secrets.DOCKERHUB_USER }} \
-p ${{ secrets.DOCKERHUB_TOKEN }}
docker-compose push ubuntu-core
centos:
name: AMD64 CentOS ${{ matrix.centos }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
centos: [7]
env:
CENTOS: ${{ matrix.centos }}
steps:
- name: Checkout Milvus
uses: actions/checkout@v1
- name: Docker Pull
shell: bash
run: |
docker-compose pull --ignore-pull-failures db
docker-compose pull --ignore-pull-failures centos-core
- name: Docker Build
run: |
docker-compose run --use-aliases -d db
docker-compose run centos-core
- name: Docker Push
if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus'
continue-on-error: true
shell: bash
run: |
docker login -u ${{ secrets.DOCKERHUB_USER }} \
-p ${{ secrets.DOCKERHUB_TOKEN }}
docker-compose push centos-core
ARG arch=amd64
FROM ${arch}/centos:7
RUN yum install -y epel-release centos-release-scl-rh && yum install -y wget curl which && \
wget -qO- "https://cmake.org/files/v3.14/cmake-3.14.3-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local && \
yum install -y ccache make automake git python3-pip libcurl-devel python3-devel boost-static mysql-devel \
devtoolset-6-gcc devtoolset-6-gcc-c++ devtoolset-6-gcc-gfortran llvm-toolset-7.0-clang llvm-toolset-7.0-clang-tools-extra lcov \
&& \
rm -rf /var/cache/yum/*
RUN echo "source scl_source enable devtoolset-6" >> /etc/profile.d/devtoolset-6.sh
RUN echo "source scl_source enable llvm-toolset-7.0" >> /etc/profile.d/llvm-toolset-7.sh
ENV CLANG_TOOLS_PATH="/opt/rh/llvm-toolset-7.0/root/usr/bin"
......@@ -2,6 +2,7 @@ version: '3.5'
volumes:
amd64-ubuntu-18.04-cache:
amd64-centos-7-cache:
x-ccache: &ccache
CCACHE_COMPILERCHECK: content
......@@ -44,5 +45,22 @@ services:
- milvus
command: *cpp-command
centos-core:
image: ${REPO}:${ARCH}-centos-${CENTOS}-core
build:
context: .
dockerfile: ci/docker/centos-${CENTOS}-core.dockerfile
cache_from:
- ${REPO}:${ARCH}-centos-${CENTOS}-core
shm_size: 2G
environment:
<<: *ccache
volumes: &ubuntu-volumes
- .:/milvus:delegated
- ${ARCH}-centos-${CENTOS}-cache:/build:delegated
networks:
- milvus
command: *cpp-command
networks:
milvus:
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册