mirror of
https://github.com/ceph/ceph
synced 2024-12-24 20:33:27 +00:00
78b2a9aa74
Instead of relying on git_base_url, use the get_ceph_git_url() to obtain the URL of the Ceph repository to use with git clone. This allows the user to override it via the git_ceph_url configuration option and the --git-ceph-url command line option to teuthology-openstack. http://tracker.ceph.com/issues/11883 Refs: #11883 Signed-off-by: Loic Dachary <loic@dachary.org>
30 lines
887 B
Bash
30 lines
887 B
Bash
#!/bin/bash
|
|
#
|
|
# Copyright (C) 2015 Red Hat <contact@redhat.com>
|
|
#
|
|
# Author: Loic Dachary <loic@dachary.org>
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU Library Public License as published by
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
# any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Library Public License for more details.
|
|
#
|
|
function install_deps() {
|
|
git archive --remote=git://git.ceph.com/ceph.git master install-deps.sh | tar -xvf -
|
|
bash -x install-deps.sh
|
|
}
|
|
|
|
function get_ceph() {
|
|
local git_ceph_url=$1
|
|
local sha1=$2
|
|
|
|
test -d ceph || git clone ${git_ceph_url}
|
|
cd ceph
|
|
git checkout ${sha1}
|
|
}
|