Upgrade Go to 1.25 (#6011)
* Upgrade Go to 1.25 * Upgrade to golangci-lint v2 * Remove use of apt-key
This commit is contained in:
1 parent
6d32c4e6cd
commit
30d97687b5
17 files changed
+117
-95
No files matched your search
@@ -17,16 +17,22 @@ apt update
|
||||
# default-mysql-client is used for mysql tests
|
||||
# wget is used for downloading external dependencies and repository keys
|
||||
# apt-transport-https enables HTTPS transport for APT repositories
|
||||
apt install unzip pass lsb-release postgresql-client default-mysql-client wget apt-transport-https -y
|
||||
apt install unzip pass lsb-release postgresql-client default-mysql-client wget apt-transport-https -y
|
||||
|
||||
# Function to install Cassandra
|
||||
install_cassandra() {
|
||||
# Add Cassandra repository key
|
||||
wget -q -O - https://www.apache.org/dist/cassandra/KEYS | apt-key add -
|
||||
|
||||
wget -O cassandra.keys https://www.apache.org/dist/cassandra/KEYS
|
||||
|
||||
# Convert key to gpg format
|
||||
gpg --no-default-keyring --keyring ./temp-keyring.gpg --import cassandra.keys
|
||||
gpg --no-default-keyring --keyring ./temp-keyring.gpg --export --output cassandra.gpg
|
||||
rm ./temp-keyring.gpg cassandra.keys
|
||||
mv cassandra.gpg /etc/apt/keyrings/cassandra.gpg
|
||||
|
||||
# Add Cassandra repository
|
||||
echo "deb https://debian.cassandra.apache.org 41x main" | tee -a /etc/apt/sources.list.d/cassandra.sources.list
|
||||
|
||||
echo "deb [signed-by=/etc/apt/keyrings/cassandra.gpg] https://debian.cassandra.apache.org 41x main" | tee -a /etc/apt/sources.list.d/cassandra.sources.list
|
||||
|
||||
# Update package list and install Cassandra
|
||||
apt update
|
||||
apt install cassandra -y
|
||||
@@ -40,9 +46,9 @@ install_cassandra
|
||||
export KEY_PW=boundary
|
||||
gpg --generate-key --batch <<eoGpgConf
|
||||
%echo Started!
|
||||
Key-Type: default
|
||||
Key-Type: RSA
|
||||
Key-Length: default
|
||||
Subkey-Type: default
|
||||
Subkey-Type: RSA
|
||||
Name-Real: boundary
|
||||
Name-Comment: default
|
||||
Name-Email: default
|
||||
|
||||
Reference in new issue
Block a user