Skip to content

Commit

Permalink
ceph-nvmeof and libraries installation
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Indenbaum <[email protected]>
  • Loading branch information
Alexander Indenbaum committed Nov 20, 2023
1 parent 2616e5f commit 1f4b6cc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
!pdm.toml
!README.md
!LICENSE
!ceph-monitor/ceph-nvmeof
!ceph-monitor/libceph-common.so.2
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,24 @@ RUN \
--mount=type=cache,target=/var/lib/dnf \
dnf update -y

RUN \
--mount=type=cache,target=/var/cache/dnf \
--mount=type=cache,target=/var/lib/dnf \
dnf config-manager --set-enabled crb

RUN \
--mount=type=cache,target=/var/cache/dnf \
--mount=type=cache,target=/var/lib/dnf \
dnf install -y epel-release epel-next-release

RUN \
--mount=type=cache,target=/var/cache/dnf \
--mount=type=cache,target=/var/lib/dnf \
dnf install -y protobuf grpc grpc-cpp snappy gperftools-libs fmt thrift

COPY ceph-monitor/ceph-nvmeof /usr/local/bin/
COPY ceph-monitor/libceph-common.so.2 /lib64/

ENV PYTHONUNBUFFERED=1 \
PYTHONIOENCODING=UTF-8 \
LC_ALL=C.UTF-8 \
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ setup: ## Configure huge-pages (requires sudo/root password)
@echo Actual Hugepages allocation: $$(cat $(HUGEPAGES_DIR))
@[ $$(cat $(HUGEPAGES_DIR)) -eq $(HUGEPAGES) ]

ceph-monitor-copy:
mkdir -p ceph-monitor
cp ../../../build/bin/ceph-nvmeof ceph-monitor/
cp ../../../build/lib/libceph-common.so.2 ceph-monitor/
ls -l ceph-monitor

build: ceph-monitor-copy

build pull logs: SVC ?= spdk bdevperf nvmeof nvmeof-devel nvmeof-cli discovery ceph

build: export NVMEOF_GIT_REPO != git remote get-url origin
Expand Down

0 comments on commit 1f4b6cc

Please sign in to comment.