Skip to content

Commit

Permalink
chore(vector): update versions for 24.11 (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
siegfriedweber committed Sep 18, 2024
1 parent 0a376b0 commit c449ae0
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 20 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ All notable changes to this project will be documented in this file.

- ci: Add mirror workflow, add new helper scripts ([#819]).
- opa: Add version `0.67.1` ([#797]).
- vector: Add version `0.40.1` ([#802], [#815]).
- vector: Add version `0.41.1` ([#802], [#815], [#867]).
- airflow: Add version `2.9.3` ([#809]).
- kafka: Add version `3.8.0` ([#813]).
- hive: Add version `4.0.0` ([#818]).
Expand Down Expand Up @@ -61,6 +61,7 @@ All notable changes to this project will be documented in this file.
[#852]: https://github.com/stackabletech/docker-images/pull/852
[#853]: https://github.com/stackabletech/docker-images/pull/853
[#866]: https://github.com/stackabletech/docker-images/pull/866
[#867]: https://github.com/stackabletech/docker-images/pull/867

## [24.7.0] - 2024-07-24

Expand Down
4 changes: 2 additions & 2 deletions airflow/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"git_sync": "v4.2.4",
"statsd_exporter": "0.27.0",
"tini": "0.19.0",
"vector": "0.40.1",
"vector": "0.41.1",
},
{
"product": "2.9.3",
"python": "3.9",
"git_sync": "v4.2.4",
"statsd_exporter": "0.27.0",
"tini": "0.19.0",
"vector": "0.40.1",
"vector": "0.41.1",
},
]
10 changes: 5 additions & 5 deletions java-base/versions.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
versions = [
{
"product": "1.8.0",
"vector": "0.40.1",
"vector": "0.41.1",
},
{
"product": "11",
"vector": "0.40.1",
"vector": "0.41.1",
},
{
"product": "17",
"vector": "0.40.1",
"vector": "0.41.1",
},
{
"product": "21",
"vector": "0.40.1",
"vector": "0.41.1",
},
{
"product": "22",
"vector": "0.40.1",
"vector": "0.41.1",
},
]
4 changes: 2 additions & 2 deletions opa/versions.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
versions = [
{
"product": "0.66.0",
"vector": "0.40.1",
"vector": "0.41.1",
"bundle_builder_version": "1.1.2",
"stackable-base": "1.0.0",
},
{
"product": "0.67.1",
"vector": "0.40.1",
"vector": "0.41.1",
"bundle_builder_version": "1.1.2",
"stackable-base": "1.0.0",
},
Expand Down
4 changes: 2 additions & 2 deletions spark-k8s/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"jackson_dataformat_xml": "2.15.2", # https://mvnrepository.com/artifact/org.apache.spark/spark-core_2.13/3.5.1
"stax2_api": "4.2.1", # https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-xml/2.15.2
"woodstox_core": "6.5.1", # https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-xml/2.15.2
"vector": "0.40.1",
"vector": "0.41.1",
"jmx_exporter": "1.0.1",
"tini": "0.19.0",
},
Expand All @@ -27,7 +27,7 @@
"jackson_dataformat_xml": "2.15.2", # https://mvnrepository.com/artifact/org.apache.spark/spark-core_2.13/3.5.1
"stax2_api": "4.2.1", # https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-xml/2.15.2
"woodstox_core": "6.5.1", # https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-xml/2.15.2
"vector": "0.40.1",
"vector": "0.41.1",
"jmx_exporter": "1.0.1",
"tini": "0.19.0",
},
Expand Down
2 changes: 1 addition & 1 deletion superset/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"product": "4.0.2",
"python": "3.9",
"vector": "0.40.1",
"vector": "0.41.1",
"statsd_exporter": "0.27.0",
"authlib": "1.2.1", # https://github.com/dpgaspar/Flask-AppBuilder/blob/release/4.4.1/requirements/extra.txt#L7
},
Expand Down
41 changes: 35 additions & 6 deletions vector/upload_new_vector_version.sh
Original file line number Diff line number Diff line change
@@ -1,28 +1,57 @@
#!/usr/bin/env bash
#
# Example usage:
# upload_new_vector_version.sh 0.41.1 1 nexus-username /var/lib/rpm

set -euo pipefail

VERSION=${1:?"Missing version number argument (arg 1)"}
RELEASE=${2:?"Missing release number argument (arg 2)"}
NEXUS_USER=${3:?"Missing Nexus username argument (arg 3)"}
RPM_PACKAGE_DB_PATH=${4:-"/var/lib/rpm"}

ARCHITECTURES=(
x86_64
aarch64
)

major_version="${VERSION%%.*}"

read -r -s -p "Nexus Password: " NEXUS_PASSWORD
echo ""

# Vector does not currently publish signatures or SBOMs (as of
# 2023-10-11, latest version at this point 0.33.0)
# But there are SHA256 sums in Github Releases. Maybe we should download from there?

for arch in "${ARCHITECTURES[@]}"; do
file="vector-$VERSION-$RELEASE.$arch.rpm"

echo "Downloading $file from timber.io"
curl -LOs "https://packages.timber.io/vector/$VERSION/$file"
echo "Downloading $file from yum.vector.dev"
curl \
--fail \
--location \
--remote-name \
--silent \
"https://yum.vector.dev/stable/vector-$major_version/$arch/$file"

echo "Validating signature"
echo "--> NOTE: Make sure you have downloaded and added Datadog's \
public key (https://keys.datadoghq.com/DATADOG_RPM_KEY_B01082D3.public) \
to the RPM package database:
rpmkeys --import --dbpath $RPM_PACKAGE_DB_PATH DATADOG_APT_KEY_CURRENT.public"

EXIT_STATUS=0
# `rpmkeys --checksig` also succeeds if the digests of an unsigned
# package are okay. Therefore, test explicitly if the output
# contains "digests signatures OK" to ensure that the package is
# signed.
rpmkeys \
--checksig \
--dbpath "$RPM_PACKAGE_DB_PATH" \
"$file" | \
grep "^$file: digests signatures OK\$" || \
EXIT_STATUS=$?
if [ $EXIT_STATUS -ne 0 ]; then
echo "ERROR: The signature could not be verified."
exit 1
fi

echo "Uploading $file to Nexus"
curl --fail -u "$NEXUS_USER:$NEXUS_PASSWORD" \
Expand Down
2 changes: 1 addition & 1 deletion vector/versions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
versions = [
{
"product": "0.40.1",
"product": "0.41.1",
"rpm_release": "1",
"stackable-base": "1.0.0",
"inotify_tools": "3.22.1.0-1.el9",
Expand Down

0 comments on commit c449ae0

Please sign in to comment.