Skip to content

Commit 34ed3d6

Browse files
authored
Merge pull request #35 from ClickHouse/follow-up-34
Add uninstall routines for Starrocks and SingleStore
2 parents 3d3da0f + d1160a6 commit 34ed3d6

File tree

6 files changed

+26
-1
lines changed

6 files changed

+26
-1
lines changed

singlestore/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ fi
1010
LICENSE_KEY="$1"
1111
ROOT_PASSWORD="$2"
1212

13+
sudo snap install docker
14+
sudo apt-get update
15+
sudo apt-get install -y mysql-client
16+
1317
docker run -i --init \
1418
--name singlestore-ciab \
1519
-e LICENSE_KEY="${LICENSE_KEY}" \

singlestore/main.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,5 @@ case $choice in
7979
benchmark 1
8080
;;
8181
esac
82+
83+
./uninstall.sh

singlestore/uninstall.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
# stop and remove all docker containers
4+
docker stop $(docker ps -a -q)
5+
docker rm $(docker ps -a -q)
6+
7+
sudo apt-get remove -y mysql-client
8+
sudo snap remove --purge docker

starrocks/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
sudo snap install docker
44
sudo apt-get update
55
sudo apt-get install -y mysql-client
6-
sudo docker run -p 9030:9030 -p 8030:8030 -p 8040:8040 -itd --name quickstart starrocks/allin1-ubuntu
6+
7+
docker run -p 9030:9030 -p 8030:8030 -p 8040:8040 -itd --name quickstart starrocks/allin1-ubuntu

starrocks/main.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,5 @@ case $choice in
7979
benchmark 1 zstd
8080
;;
8181
esac
82+
83+
./uninstall.sh

starrocks/uninstall.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
# stop and remove all docker containers
4+
docker stop $(docker ps -a -q)
5+
docker rm $(docker ps -a -q)
6+
7+
sudo apt-get remove -y mysql-client
8+
sudo snap remove --purge docker

0 commit comments

Comments
 (0)