Forked from yuezhu/gist:25e2e43c602a4aa2d1b897bbc47cb0cc
Last active
March 22, 2022 11:58
-
-
Save beddari/439de114c2230b4b1f043dff39bb8168 to your computer and use it in GitHub Desktop.
Build Ceph radosgw using Centos 7 container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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