From a61cc3f13d161e332c510de9099387906b433eba Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Wed, 11 Mar 2020 14:53:40 -0400 Subject: [PATCH] testing: add Dockerfile based on ceph containers Ceph containers [1] are built by the ceph team and for our purposes, only lack build tools and Go making the delta we need to do smaller. 1: https://github.com/ceph/ceph-container Signed-off-by: John Mulligan --- testing/containers/ceph/Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 testing/containers/ceph/Dockerfile diff --git a/testing/containers/ceph/Dockerfile b/testing/containers/ceph/Dockerfile new file mode 100644 index 0000000..f2e8eb9 --- /dev/null +++ b/testing/containers/ceph/Dockerfile @@ -0,0 +1,26 @@ +ARG CEPH_VERSION +FROM ceph/daemon-base:latest-${CEPH_VERSION:-nautilus} + +ENV CEPH_VERSION=${CEPH_VERSION:-nautilus} + +RUN true && \ + yum install -y git wget curl libcephfs-devel librados-devel librbd-devel /usr/bin/cc /usr/bin/c++ make && \ + true + +ENV GOTAR=go1.12.17.linux-amd64.tar.gz +RUN true && \ + curl -o /tmp/${GOTAR} https://dl.google.com/go/${GOTAR} && \ + tar -x -C /opt/ -f /tmp/${GOTAR} && \ + rm -f /tmp/${GOTAR} && \ + true + +ENV PATH="${PATH}:/opt/go/bin" +ENV GOROOT=/opt/go +ENV GO111MODULE=on +ENV GOPATH /go +WORKDIR /go/src/github.com/ceph/go-ceph +VOLUME /go/src/github.com/ceph/go-ceph + +COPY micro-osd.sh / +COPY entrypoint.sh / +ENTRYPOINT ["/entrypoint.sh"]