Closed tlex closed 4 years ago
I've rebased to the current master
I've also fixed the failing check - regenerated the Dockerfiles
Arg sorry, I wish I had checked this earlier -- the image size impact of this is pretty high. Testing 5.1, before is ~531MB and after is ~597MB (a pretty sizeable jump). When I build without explicitly marking librbd1
, the image size is ~532MB, so maybe that's a reasonable compromise (so that we technically support rbd
, but librbd1
has to be installed before it can be used).
Would that work for your "needs a newer version of librbd.so
" use case too? In other words, is the ABI compatible enough that you could just install the newer version instead and have it "just work" without issue?
If we end up going this way, it probably warrants a note similar to:
...
--enable-xen \
--enable-xfsctl \
# rbd support is enabled, but "librbd1" is not included since it adds ~60MB and is version-sensitive (https://github.com/tianon/docker-qemu/pull/11#issuecomment-689816553)
--enable-rbd \
# --enable-vde \
; \
make -j "$(nproc)"; \
...
Would that work for your "needs a newer version of
librbd.so
" use case too? In other words, is the ABI compatible enough that you could just install the newer version instead and have it "just work" without issue?
I need to test this some more, but for now it looks good - I could create an image and start a VM, after installing ceph octopus (15.2) in the container.
This PR adds support for Ceph/RBD, by doing the following:
-enable-rbd
flag to configureThis enables a basic usage such as:
Also, it enables running a VM with RBD volume:
Note: The
librbd1
andlibrados2
packages need to be installed in the image in order to use RBD devices. For those needing that, I suggest a simple script that gets mounted in the image (withdocker run -v
):Of course, this script can be modified to install the latest images from https://download.ceph.com/ (see https://docs.ceph.com/docs/master/install/get-packages/#configure-repositories-manually)