Skip to content

Commit

Permalink
docker: save SPDK target arch as label
Browse files Browse the repository at this point in the history
Signed-off-by: Ernesto Puerta <[email protected]>
  • Loading branch information
epuertat committed Jan 22, 2024
1 parent c342a01 commit 4d50f7e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,16 @@ jobs:
- name: Save container images
run: |
. .env
docker save $QUAY_NVMEOF:$NVMEOF_VERSION > nvmeof.tar
docker save $QUAY_NVMEOFCLI:$NVMEOF_VERSION > nvmeof-cli.tar
docker save $QUAY_CEPH:$CEPH_VERSION > vstart-cluster.tar
docker save bdevperf > bdevperf.tar
docker save $QUAY_NVMEOF:$NVMEOF_VERSION -o nvmeof.tar.xz
docker save $QUAY_NVMEOFCLI:$NVMEOF_VERSION -o nvmeof-cli.tar.xz
docker save $QUAY_CEPH:$CEPH_VERSION -o ceph.tar.xz
docker save bdevperf -o bdevperf.tar.xz
- name: Upload container images
uses: actions/upload-artifact@v3
with:
name: ceph_nvmeof_container_images-${{ github.run_number }}
path: |
nvmeof.tar
nvmeof-cli.tar
vstart-cluster.tar
bdevperf.tar
path: "*.tar.xz"

pytest:
needs: build
Expand All @@ -84,8 +80,7 @@ jobs:

- name: Load container images
run: |
docker load < nvmeof.tar
docker load < vstart-cluster.tar
docker load -i *.tar.xz
- name: Clear space on disk
run: |
Expand Down Expand Up @@ -191,10 +186,7 @@ jobs:

- name: Load container images
run: |
docker load < nvmeof.tar
docker load < nvmeof-cli.tar
docker load < vstart-cluster.tar
docker load < bdevperf.tar
docker load -i *.tar.xz
- name: Start containers
run: |
Expand Down Expand Up @@ -324,10 +316,7 @@ jobs:

- name: Load container images
run: |
docker load < nvmeof.tar
docker load < nvmeof-cli.tar
docker load < vstart-cluster.tar
docker load < bdevperf.tar
docker load -i +.tar.xz
- name: Start discovery controller
if: matrix.integration == 'container'
Expand Down Expand Up @@ -500,8 +489,7 @@ jobs:

- name: Load container images
run: |
docker load < nvmeof.tar
docker load < nvmeof-cli.tar
docker load -i *.tar.xz
- name: Login to quay.io
uses: docker/login-action@v2
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.spdk
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ LABEL io.spdk.version="$SPDK_VERSION" \
io.spdk.build.pkgdep-args="$SPDK_PKGDEP_ARGS" \
io.spdk.build.configure-args="$SPDK_CONFIGURE_ARGS" \
io.spdk.build.makeflags="$SPDK_MAKEFLAGS" \
io.spdk.build.target-arch="$SPDK_TARGET_ARCH" \
io.spdk.build.ceph-release="$SPDK_CEPH_VERSION" \
io.spdk.git.repo="$SPDK_GIT_REPO" \
io.spdk.git.branch="$SPDK_GIT_BRANCH" \
Expand Down
4 changes: 4 additions & 0 deletions mk/containerized.mk
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ down: override OPTS += --volumes --remove-orphans

events: ## Receive real-time events from containers

.PHONY:
image_name:
@$(DOCKER_COMPOSE) config --format=json | jq '.services."$(SVC)".image'

.PHONY:
docker_compose_clean: down
$(DOCKER) system prune --all --force --volumes --filter label="io.ceph.nvmeof"
Expand Down

0 comments on commit 4d50f7e

Please sign in to comment.