Skip to content

Commit 3d3da0f

Browse files
authored
Merge pull request #34 from ClickHouse/follow-up-33
Follow-up to #33
2 parents 5861562 + b08a50e commit 3d3da0f

File tree

11 files changed

+42
-18
lines changed

11 files changed

+42
-18
lines changed

duckdb/install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
sudo snap install duckdb
1+
#!/bin/bash
2+
3+
rm -rf ~/.duckdb # remove remainders
4+
curl https://install.duckdb.org | sh

duckdb/main.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ if [ "$CHOICE" = "ask" ]; then
3333
fi
3434

3535
./install.sh
36+
export PATH='/home/ubuntu/.duckdb/cli/latest':$PATH
3637

3738
benchmark() {
3839
local size=$1
@@ -71,3 +72,6 @@ case $choice in
7172
benchmark 1
7273
;;
7374
esac
75+
76+
77+
./uninstall.sh

duckdb/uninstall.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
rm -rf ~/.duckdb

elasticsearch/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Install elasticsearch
4-
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg
4+
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor --yes -o /usr/share/keyrings/elasticsearch-keyring.gpg
55
sudo apt-get install apt-transport-https
66
echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/8.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-8.x.list
77
sudo apt-get update && sudo apt-get install elasticsearch

elasticsearch/main.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,5 @@ case $choice in
9696
benchmark 1 no_source_default_compression
9797
;;
9898
esac
99+
100+
./uninstall

elasticsearch/uninstall.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
sudo apt-get remove --yes elasticsearch filebeat

mongodb/install.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
sudo sudo apt-get install gnupg curl
66
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
7-
sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \
8-
--dearmor
7+
sudo gpg --dearmor --yes -o /usr/share/keyrings/mongodb-server-8.0.gpg
98
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
109
sudo apt-get update
1110
sudo apt-get install -y mongodb-org
1211
sudo systemctl start mongod
13-
sudo systemctl status mongod

mongodb/main.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,5 @@ case $choice in
8282
benchmark 1 zstd
8383
;;
8484
esac
85+
86+
./uninstall.sh

mongodb/uninstall.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
sudo systemctl stop mongod
4+
sudo apt-get remove -y mongodb-org

postgresql/main.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ benchmark() {
5454
./drop_tables.sh "bluesky_${size}m_${compression}"
5555
}
5656

57-
./uninstall
58-
5957
case $choice in
6058
2)
6159
benchmark 10 lz4
@@ -84,3 +82,5 @@ case $choice in
8482
benchmark 1 pglz
8583
;;
8684
esac
85+
86+
./uninstall

0 commit comments

Comments
 (0)