From: Dan Mick Date: Tue, 3 Dec 2024 19:13:35 +0000 (-0800) Subject: Keep track of extra script get-tarballs.sh X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=84fc14fe9ad5ba15af9ffe6a93bce9ddf14bb438;p=ceph-build.git Keep track of extra script get-tarballs.sh This is used by sync-pull to fetch the tarballs when constructing a release, but needs modification for the prerelease/ directory structure. It's invoked by ssh to download.ceph.com to run from /home/signer/bin, because it needs to copy large files from chacra to download.ceph.com and doing that on download.ceph.com is much more efficient. Signed-off-by: Dan Mick --- diff --git a/scripts/get-tarballs.sh b/scripts/get-tarballs.sh new file mode 100644 index 00000000..8186d0f1 --- /dev/null +++ b/scripts/get-tarballs.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# Helper to get tarballs for releases +# Does not do any placement, you must be on the destination directory. + +# There are two files it grabs, one with 'orig' and one without (unsure why we need both) + +: ${2?"Usage: $0 \$release \$sha1 \$version"} + +release=$1 +sha1=$2 +version=$3 + +pushd /data/download.ceph.com/www/tarballs + +if [ ! -f ceph_$version.orig.tar.gz ]; then + wget https://chacra.ceph.com/binaries/ceph/$release/$sha1/ubuntu/focal/x86_64/flavors/default/ceph_$version.orig.tar.gz || wget https://chacra.ceph.com/binaries/ceph/$release/$sha1/ubuntu/jammy/x86_64/flavors/default/ceph_$version.orig.tar.gz + wget https://chacra.ceph.com/binaries/ceph/$release/$sha1/ubuntu/focal/x86_64/flavors/default/ceph-$version.tar.gz || wget https://chacra.ceph.com/binaries/ceph/$release/$sha1/ubuntu/jammy/x86_64/flavors/default/ceph-$version.tar.gz +fi + +popd +