Skip to content

Commit f044dac

Browse files
NickLarsenNZTechassi
authored andcommitted
chore(⏲): Use fast download mirrors (#1061)
* chore: Use fast download mirrors * chore: Show download progress bar * chore: Improve gpg key warning message * chore: Show upload progress bar Thanks to <https://bashupload.com/how_to_upload_progress_curl> * Apply suggestions from code review Co-authored-by: Techassi <sascha.lautenschlaeger@stackable.tech> * chore: Make output more consistent --------- Co-authored-by: Techassi <sascha.lautenschlaeger@stackable.tech>
1 parent 999b808 commit f044dac

24 files changed

+205
-157
lines changed

.scripts/upload_new_async-profiler_version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ for arch in "${ARCHITECTURES[@]}"; do
4343
file=async-profiler-$VERSION-linux-$arch.tar.gz
4444

4545
echo "Downloading $file from github.com"
46-
curl --fail -LOs "https://github.com/async-profiler/async-profiler/releases/download/v$VERSION/$file"
46+
curl --fail -LO --progress-bar "https://github.com/async-profiler/async-profiler/releases/download/v$VERSION/$file"
4747

4848
echo "Uploading $file to Nexus"
49-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" \
49+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" \
5050
--upload-file "$file" \
5151
'https://repo.stackable.tech/repository/packages/async-profiler/'
5252
done

.scripts/upload_new_inotify-tools_version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ for arch in "${ARCHITECTURES[@]}"; do
4949
file=inotify-tools-$VERSION.$arch.rpm
5050

5151
echo "Downloading $file from dl.fedoraproject.org"
52-
curl --fail -LOs "https://dl.fedoraproject.org/pub/epel/$EPEL_VERSION/Everything/$arch/Packages/i/$file"
52+
curl --fail -LO --progress-bar "https://dl.fedoraproject.org/pub/epel/$EPEL_VERSION/Everything/$arch/Packages/i/$file"
5353

5454
echo "Uploading $file to Nexus"
55-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" \
55+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" \
5656
--upload-file "$file" \
5757
'https://repo.stackable.tech/repository/packages/inotify-tools/'
5858
done

.scripts/upload_new_jmx_exporter_version.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ JAR_FILE="jmx_prometheus_javaagent-$VERSION.jar"
3535
SUM_FILE="$JAR_FILE.sha256"
3636

3737
echo "Downloading JMX Exporter"
38-
curl --fail -LOs "https://github.com/prometheus/jmx_exporter/releases/download/$VERSION/$JAR_FILE"
39-
curl --fail -LOs "https://github.com/prometheus/jmx_exporter/releases/download/$VERSION/$SUM_FILE"
38+
curl --fail -LO --progress-bar "https://github.com/prometheus/jmx_exporter/releases/download/$VERSION/$JAR_FILE"
39+
curl --fail -LO --progress-bar "https://github.com/prometheus/jmx_exporter/releases/download/$VERSION/$SUM_FILE"
4040

4141
# Check that sha256 sum matches before uploading
4242
sha256sum --check --status "$SUM_FILE" && echo "SHA256 Sum matches"
4343

4444
echo "Uploading to Nexus"
45-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$JAR_FILE" 'https://repo.stackable.tech/repository/packages/jmx-exporter/'
46-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$SUM_FILE" 'https://repo.stackable.tech/repository/packages/jmx-exporter/'
45+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$JAR_FILE" 'https://repo.stackable.tech/repository/packages/jmx-exporter/'
46+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$SUM_FILE" 'https://repo.stackable.tech/repository/packages/jmx-exporter/'
4747

4848
echo "Successfully uploaded new version of the JMX Exporter ($VERSION) Jar to Nexus"
4949
echo "https://repo.stackable.tech/service/rest/repository/browse/packages/jmx-exporter/"

.scripts/upload_new_kcat_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ echo "Downloading kcat"
3838
curl --fail -Ls -o "kcat-$VERSION.tar.gz" "https://github.com/edenhill/kcat/archive/refs/tags/$VERSION.tar.gz"
3939

4040
echo "Uploading to Nexus"
41-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "kcat-$VERSION.tar.gz" 'https://repo.stackable.tech/repository/packages/kcat/'
41+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "kcat-$VERSION.tar.gz" 'https://repo.stackable.tech/repository/packages/kcat/'
4242

4343

4444
echo "Successfully uploaded new version of kcat ($VERSION) to Nexus"

.scripts/upload_new_protoc_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ for arch in "${ARCHITECTURES[@]}"; do
5050
FILE_NAME=$(basename "$DOWNLOAD_URL")
5151

5252
echo "Uploading protoc to Nexus"
53-
if ! curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$FILE_NAME" 'https://repo.stackable.tech/repository/packages/protoc/'; then
53+
if ! curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$FILE_NAME" 'https://repo.stackable.tech/repository/packages/protoc/'; then
5454
echo "Failed to upload protoc to Nexus"
5555
exit 1
5656
fi

.scripts/upload_new_tini_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ for arch in "${ARCHITECTURES[@]}"; do
4141
curl --fail -Ls -o "tini-$VERSION-$arch" "https://github.com/krallin/tini/releases/download/v$VERSION/tini-$arch"
4242

4343
echo "Uploading to Nexus"
44-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "tini-$VERSION-$arch" 'https://repo.stackable.tech/repository/packages/tini/'
44+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "tini-$VERSION-$arch" 'https://repo.stackable.tech/repository/packages/tini/'
4545
done
4646

4747
echo "Successfully uploaded new version of TINI ($VERSION) to Nexus"

druid/upload_new_druid_version.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -euo pipefail
55
VERSION=${1:?"Missing version number argument (arg 1)"}
66
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
77

8+
# We prefer fast downloads...
9+
BASE_DOWNLOAD_URL="https://dlcdn.apache.org/druid"
10+
# However, if the version is not available, use the slow archive instead:
11+
# BASE_DOWNLOAD_URL="https://archive.apache.org/dist/druid"
12+
813
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
914
echo ""
1015

@@ -33,10 +38,10 @@ cd "$WORK_DIR" || exit
3338

3439
src_file="apache-druid-${VERSION}-src.tar.gz"
3540

36-
echo "Downloading Druid (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
37-
curl --fail -LOs "https://archive.apache.org/dist/druid/${VERSION}/${src_file}"
38-
curl --fail -LOs "https://archive.apache.org/dist/druid/${VERSION}/${src_file}.asc"
39-
curl --fail -LOs "https://archive.apache.org/dist/druid/${VERSION}/${src_file}.sha512"
41+
echo "Downloading Druid source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
42+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/${VERSION}/${src_file}"
43+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/${VERSION}/${src_file}.asc"
44+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/${VERSION}/${src_file}.sha512"
4045

4146
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
4247
echo "Validating SHA512 Checksum"
@@ -46,18 +51,18 @@ if ! (sha512sum "${src_file}" | cut -d " " -f 1 | diff -Z - "${src_file}.sha512"
4651
fi
4752

4853
echo "Validating signature"
49-
echo '--> NOTE: Make sure you have downloaded and added the KEYS file (https://www.apache.org/dist/druid/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using "curl https://archive.apache.org/dist/druid/KEYS | gpg --import")'
50-
5154
if ! (gpg --verify "${src_file}.asc" "${src_file}" 2> /dev/null); then
5255
echo "ERROR: The signature could not be verified"
56+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
57+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
5358
exit 1
5459
fi
5560

5661
echo "Uploading everything to Nexus"
5762
EXIT_STATUS=0
58-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}" 'https://repo.stackable.tech/repository/packages/druid/' || EXIT_STATUS=$?
59-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.asc" 'https://repo.stackable.tech/repository/packages/druid/' || EXIT_STATUS=$?
60-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.sha512" 'https://repo.stackable.tech/repository/packages/druid/' || EXIT_STATUS=$?
63+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}" 'https://repo.stackable.tech/repository/packages/druid/' || EXIT_STATUS=$?
64+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.asc" 'https://repo.stackable.tech/repository/packages/druid/' || EXIT_STATUS=$?
65+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "${src_file}.sha512" 'https://repo.stackable.tech/repository/packages/druid/' || EXIT_STATUS=$?
6166

6267
if [ $EXIT_STATUS -ne 0 ]; then
6368
echo "ERROR: Upload failed"

hadoop/upload_new_hadoop_version.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ cd "$WORK_DIR" || exit
3939
bin_file=hadoop-$VERSION.tar.gz
4040
src_file=hadoop-$VERSION-src.tar.gz
4141

42-
echo "Downloading Hadoop (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
42+
echo "Downloading Hadoop binary (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
4343
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hadoop-$VERSION/$bin_file"
4444
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hadoop-$VERSION/$bin_file.asc"
4545
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hadoop-$VERSION/$bin_file.sha512"
4646

47+
echo "Downloading Hadoop source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
4748
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hadoop-$VERSION/$src_file"
4849
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hadoop-$VERSION/$src_file.asc"
4950
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hadoop-$VERSION/$src_file.sha512"
5051

51-
5252
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
5353
echo "Validating SHA512 Checksums"
5454
if ! (sha512sum --tag "$bin_file" | diff - "$bin_file.sha512" && sha512sum --tag "$src_file" | diff - "$src_file.sha512"); then
@@ -58,22 +58,22 @@ if ! (sha512sum --tag "$bin_file" | diff - "$bin_file.sha512" && sha512sum --tag
5858
fi
5959

6060
echo "Validating signatures"
61-
echo "--> NOTE: Make sure you have downloaded and added the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\")"
62-
6361
if ! (gpg --verify "$bin_file.asc" "$bin_file" 2> /dev/null && gpg --verify "$src_file.asc" "$src_file" 2> /dev/null); then
6462
echo "ERROR: One of the signatures could not be verified"
63+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
64+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
6565
exit 1
6666
fi
6767

6868
echo "Uploading everything to Nexus"
6969
EXIT_STATUS=0
70-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
71-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.asc" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
72-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.sha512" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
70+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
71+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.asc" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
72+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$bin_file.sha512" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
7373

74-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
75-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
76-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
74+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
75+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
76+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/hadoop/' || EXIT_STATUS=$?
7777

7878
if [ $EXIT_STATUS -ne 0 ]; then
7979
echo "ERROR: Upload failed"

hbase/upload_new_hbase-operator-tools_version.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -euo pipefail
55
VERSION=${1:?"Missing version number argument (arg 1)"}
66
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
77

8+
# We prefer fast downloads...
9+
BASE_DOWNLOAD_URL="https://dlcdn.apache.org/hbase"
10+
# However, if the version is not available, use the slow archive instead:
11+
# BASE_DOWNLOAD_URL="https://archive.apache.org/dist/hbase"
12+
813
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
914
echo ""
1015

@@ -33,11 +38,10 @@ cd "$WORK_DIR" || exit
3338

3439
src_file=hbase-operator-tools-$VERSION-src.tar.gz
3540

36-
echo "Downloading hbase-operator-tools (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
37-
curl --fail -LOs "https://archive.apache.org/dist/hbase/hbase-operator-tools-$VERSION/$src_file"
38-
curl --fail -LOs "https://archive.apache.org/dist/hbase/hbase-operator-tools-$VERSION/$src_file.asc"
39-
curl --fail -LOs "https://archive.apache.org/dist/hbase/hbase-operator-tools-$VERSION/$src_file.sha512"
40-
41+
echo "Downloading hbase-operator-tools source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
42+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hbase-operator-tools-$VERSION/$src_file"
43+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hbase-operator-tools-$VERSION/$src_file.asc"
44+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/hbase-operator-tools-$VERSION/$src_file.sha512"
4145

4246
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
4347
echo "Validating SHA512 Checksums"
@@ -47,19 +51,20 @@ if ! (gpg --print-md SHA512 "$src_file" | diff - "$src_file.sha512"); then
4751
fi
4852

4953
echo "Validating signatures"
50-
echo '--> NOTE: Make sure you have downloaded and added the KEYS file (https://downloads.apache.org/hbase/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using "curl https://downloads.apache.org/hbase/KEYS | gpg --import")'
5154
if ! (gpg --verify "$src_file.asc" "$src_file" 2> /dev/null); then
5255
echo "ERROR: One of the signatures could not be verified"
56+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
57+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
5358
exit 1
5459
fi
5560

5661

5762

5863
echo "Uploading everything to Nexus"
5964
EXIT_STATUS=0
60-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hbase-operator-tools/' || EXIT_STATUS=$?
61-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hbase-operator-tools/' || EXIT_STATUS=$?
62-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/hbase-operator-tools/' || EXIT_STATUS=$?
65+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hbase-operator-tools/' || EXIT_STATUS=$?
66+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hbase-operator-tools/' || EXIT_STATUS=$?
67+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/hbase-operator-tools/' || EXIT_STATUS=$?
6368

6469

6570
if [ $EXIT_STATUS -ne 0 ]; then

hbase/upload_new_hbase_version.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -euo pipefail
55
VERSION=${1:?"Missing version number argument (arg 1)"}
66
NEXUS_USER=${2:?"Missing Nexus username argument (arg 2)"}
77

8+
# We prefer fast downloads...
9+
BASE_DOWNLOAD_URL="https://dlcdn.apache.org/hbase"
10+
# However, if the version is not available, use the slow archive instead:
11+
# BASE_DOWNLOAD_URL="https://archive.apache.org/dist/hbase"
12+
813
read -r -s -p "Nexus Password: " NEXUS_PASSWORD
914
echo ""
1015

@@ -33,11 +38,10 @@ cd "$WORK_DIR" || exit
3338

3439
src_file=hbase-$VERSION-src.tar.gz
3540

36-
echo "Downloading HBase source (this can take a while, it is intentionally downloading from a slow mirror that contains all old versions)"
37-
curl --fail -LOs "https://archive.apache.org/dist/hbase/$VERSION/$src_file"
38-
curl --fail -LOs "https://archive.apache.org/dist/hbase/$VERSION/$src_file.asc"
39-
curl --fail -LOs "https://archive.apache.org/dist/hbase/$VERSION/$src_file.sha512"
40-
41+
echo "Downloading HBase source (if this fails, try switching the BASE_DOWNLOAD_URL to the archive)"
42+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/$src_file"
43+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/$src_file.asc"
44+
curl --fail -LO --progress-bar "${BASE_DOWNLOAD_URL}/$VERSION/$src_file.sha512"
4145

4246
# It is probably redundant to check both the checksum and the signature but it's cheap and why not
4347
echo "Validating SHA512 Checksums"
@@ -47,17 +51,18 @@ if ! (gpg --print-md SHA512 "$src_file" | diff - "$src_file.sha512"); then
4751
fi
4852

4953
echo "Validating signatures"
50-
echo '--> NOTE: Make sure you have downloaded and added the KEYS file (https://downloads.apache.org/hbase/KEYS) to GPG: https://www.apache.org/info/verification.html (e.g. by using "curl https://downloads.apache.org/hbase/KEYS | gpg --import")'
5154
if ! (gpg --verify "$src_file.asc" "$src_file" 2> /dev/null); then
5255
echo "ERROR: One of the signatures could not be verified"
56+
echo "--> Make sure you have imported the KEYS file (${BASE_DOWNLOAD_URL}/KEYS) into GPG: https://www.apache.org/info/verification.html"
57+
echo "--> e.g. \"curl ${BASE_DOWNLOAD_URL}/KEYS | gpg --import\""
5358
exit 1
5459
fi
5560

5661
echo "Uploading everything to Nexus"
5762
EXIT_STATUS=0
58-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hbase/' || EXIT_STATUS=$?
59-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hbase/' || EXIT_STATUS=$?
60-
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/hbase/' || EXIT_STATUS=$?
63+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file" 'https://repo.stackable.tech/repository/packages/hbase/' || EXIT_STATUS=$?
64+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.asc" 'https://repo.stackable.tech/repository/packages/hbase/' || EXIT_STATUS=$?
65+
curl --fail -o /dev/null --progress-bar -u "$NEXUS_USER:$NEXUS_PASSWORD" --upload-file "$src_file.sha512" 'https://repo.stackable.tech/repository/packages/hbase/' || EXIT_STATUS=$?
6166

6267
if [ $EXIT_STATUS -ne 0 ]; then
6368
echo "ERROR: Upload failed"

0 commit comments

Comments
 (0)