Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beddari/439de114c2230b4b1f043dff39bb8168 to your computer and use it in GitHub Desktop.
Save beddari/439de114c2230b4b1f043dff39bb8168 to your computer and use it in GitHub Desktop.
Build Ceph radosgw using Centos 7 container
mkdir -p /root/build
docker run --name centos --hostname centos -it -v /root/build:/root/build centos:7 /bin/bash
# inside centos container
yum install -y epel-release
yum install -y git jq wget cmake3 make gcc-c++ rpm-build rpmdevtools
yum install -y centos-release-scl
yum install -y devtoolset-8
scl enable devtoolset-8 bash
cd /root/build
git clone https://github.com/ceph/ceph && cd ceph && git checkout octopus
# https://www.spinics.net/lists/ceph-users/msg63428.html
sed -i -e '/BuildRequires: python%{_python_buildid}-scipy/d' ceph.spec.in
yumdownloader golang-github-prometheus
rpm -i --nodeps golang-github-prometheus*.rpm
./install-deps.sh
./do_cmake.sh
cd build
make -j 8 radosgw
# use customized build
vi /opt/ceph-container/bin/start_rgw.sh
export LD_LIBRARY_PATH=/root/build/ceph/build/lib
exec /root/build/ceph/build/bin/radosgw "${DAEMON_OPTS[@]}" -n client.rgw."${RGW_NAME}" -k "$RGW_KEYRING"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment