forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ClickHouse#38580 from ClickHouse/artifactory-arm64
Push arm64 packages to artifactory and release assets
- Loading branch information
Showing
12 changed files
with
232 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,34 @@ | ||
LATEST_VERSION=$(curl -s https://packages.clickhouse.com/tgz/stable/ | \ | ||
grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | sort -V -r | head -n 1) | ||
export LATEST_VERSION | ||
curl -O "https://packages.clickhouse.com/tgz/stable/clickhouse-common-static-$LATEST_VERSION.tgz" | ||
curl -O "https://packages.clickhouse.com/tgz/stable/clickhouse-common-static-dbg-$LATEST_VERSION.tgz" | ||
curl -O "https://packages.clickhouse.com/tgz/stable/clickhouse-server-$LATEST_VERSION.tgz" | ||
curl -O "https://packages.clickhouse.com/tgz/stable/clickhouse-client-$LATEST_VERSION.tgz" | ||
|
||
tar -xzvf "clickhouse-common-static-$LATEST_VERSION.tgz" | ||
case $(uname -m) in | ||
x86_64) ARCH=amd64 ;; | ||
aarch64) ARCH=arm64 ;; | ||
*) echo "Unknown architecture $(uname -m)"; exit 1 ;; | ||
esac | ||
|
||
for PKG in clickhouse-common-static clickhouse-common-static-dbg clickhouse-server clickhouse-client | ||
do | ||
curl -fO "https://packages.clickhouse.com/tgz/stable/$PKG-$LATEST_VERSION-${ARCH}.tgz" \ | ||
|| curl -fO "https://packages.clickhouse.com/tgz/stable/$PKG-$LATEST_VERSION.tgz" | ||
done | ||
|
||
exit 0 | ||
|
||
tar -xzvf "clickhouse-common-static-$LATEST_VERSION-${ARCH}.tgz" \ | ||
|| tar -xzvf "clickhouse-common-static-$LATEST_VERSION.tgz" | ||
sudo "clickhouse-common-static-$LATEST_VERSION/install/doinst.sh" | ||
|
||
tar -xzvf "clickhouse-common-static-dbg-$LATEST_VERSION.tgz" | ||
tar -xzvf "clickhouse-common-static-dbg-$LATEST_VERSION-${ARCH}.tgz" \ | ||
|| tar -xzvf "clickhouse-common-static-dbg-$LATEST_VERSION.tgz" | ||
sudo "clickhouse-common-static-dbg-$LATEST_VERSION/install/doinst.sh" | ||
|
||
tar -xzvf "clickhouse-server-$LATEST_VERSION.tgz" | ||
tar -xzvf "clickhouse-server-$LATEST_VERSION-${ARCH}.tgz" \ | ||
|| tar -xzvf "clickhouse-server-$LATEST_VERSION.tgz" | ||
sudo "clickhouse-server-$LATEST_VERSION/install/doinst.sh" | ||
sudo /etc/init.d/clickhouse-server start | ||
|
||
tar -xzvf "clickhouse-client-$LATEST_VERSION.tgz" | ||
tar -xzvf "clickhouse-client-$LATEST_VERSION-${ARCH}.tgz" \ | ||
|| tar -xzvf "clickhouse-client-$LATEST_VERSION.tgz" | ||
sudo "clickhouse-client-$LATEST_VERSION/install/doinst.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.