diff --git a/.env b/.env index 1ebcb1a53..b941fa25f 100644 --- a/.env +++ b/.env @@ -48,16 +48,16 @@ SPDK_DESCRIPTION="The Storage Performance Development Kit (SPDK) provides a set SPDK_URL="https://spdk.io" SPDK_PKGDEP_ARGS="--rbd" +# check spdk/configure --help SPDK_CONFIGURE_ARGS="--with-rbd --disable-tests --disable-unit-tests --disable-examples --enable-debug" +SPDK_TARGET_ARCH="x86-64-v2" SPDK_MAKEFLAGS= -SPDK_DISABLE_VPCLMULQDQ= -SPDK_DISABLE_AVX512= SPDK_CENTOS_BASE="https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/" SPDK_CENTOS_REPO_VER="9.0-21.el9" # Ceph Cluster CEPH_CLUSTER_VERSION="${CEPH_VERSION}" -# CEPH_CLUSTER_CEPH_REPO_BASEURL= # Uncomment for specifying a custom Ceph YUM repo +#CEPH_CLUSTER_CEPH_REPO_BASEURL= CEPH_VSTART_ARGS="--memstore" CEPH_DEVEL_MGR_PATH=../ceph diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 4f9edd896..1d43c85b4 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -1,11 +1,13 @@ name: "CI" on: push: - branches: - - '*' tags: - 'v*' pull_request: + branches: + - devel + schedule: + - cron: '0 0 * * *' workflow_dispatch: release: types: @@ -22,8 +24,26 @@ jobs: # git submodule update --init --recursive submodules: recursive - - name: Build container images - run: make build SPDK_DISABLE_VPCLMULQDQ="yes" SPDK_DISABLE_AVX512="yes" + - name: Build container images - ceph + run: make build SVC=ceph SPDK_TARGET_ARCH=x86-64-v2 + + - name: Build container images - spdk + run: make build SVC="spdk" SPDK_TARGET_ARCH=x86-64-v2 + + - name: Build container images - bdevperf + run: make build SVC="bdevperf" SPDK_TARGET_ARCH=x86-64-v2 + + - name: Build container images - nvmeof + run: make build SVC="nvmeof" SPDK_TARGET_ARCH=x86-64-v2 + + - name: Build container images - nvmeof-devel + run: make build SVC="nvmeof-devel" SPDK_TARGET_ARCH=x86-64-v2 + + - name: Build container images - nvmeof-cli + run: make build SVC="nvmeof-cli" SPDK_TARGET_ARCH=x86-64-v2 + + - name: Build container images - discovery + run: make build SVC="discovery" SPDK_TARGET_ARCH=x86-64-v2 - name: Save container images run: | @@ -45,21 +65,6 @@ jobs: vstart-cluster.tar bdevperf.tar - - name: Build stand-alone packages (RPMs and Python wheel) - id: build-standalone-packages - run: | - export EXPORT_DIR=$(mktemp -d) - make export-rpms - make export-python - echo "EXPORT_DIR=$EXPORT_DIR" >> "$GITHUB_ENV" - - - name: Upload stand-alone packages - uses: actions/upload-artifact@v3 - with: - name: ceph_nvmeof_standalone_packages-${{ github.run_number }} - path: | - ${{ env.EXPORT_DIR }}/** - pytest: needs: build strategy: diff --git a/Dockerfile.ceph b/Dockerfile.ceph index e6af8a8fc..9f2d570ec 100644 --- a/Dockerfile.ceph +++ b/Dockerfile.ceph @@ -3,25 +3,9 @@ FROM quay.io/centos/centos:stream9-minimal AS build ARG CEPH_CLUSTER_VERSION \ - CEPH_CLUSTER_CEPH_REPO_BASEURL="https://download.ceph.com/rpm-$CEPH_CLUSTER_VERSION/el\$releasever" \ + CEPH_CLUSTER_CEPH_REPO_BASEURL="https://download.ceph.com/rpm-${CEPH_CLUSTER_VERSION}/el\$releasever" \ CEPH_CLUSTER_EPEL_REPO_URL="https://copr.fedorainfracloud.org/coprs/ceph/el9/repo/epel-9/ceph-el9-epel-9.repo" -COPY <