mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 16:09:03 +08:00
Fix ami linux docker installation (#387)
* chore: remove kafka + druid setup * fix: changed command to install docker in amazon linux
This commit is contained in:
parent
c8830c9e3a
commit
556914f808
@ -160,8 +160,9 @@ install_docker() {
|
|||||||
echo
|
echo
|
||||||
echo "Amazon Linux detected ... "
|
echo "Amazon Linux detected ... "
|
||||||
echo
|
echo
|
||||||
sudo yum install docker
|
# sudo yum install docker
|
||||||
sudo service docker start
|
# sudo service docker start
|
||||||
|
sudo amazon-linux-extras install docker
|
||||||
else
|
else
|
||||||
|
|
||||||
yum_cmd="sudo yum --assumeyes --quiet"
|
yum_cmd="sudo yum --assumeyes --quiet"
|
||||||
@ -313,28 +314,30 @@ check_os
|
|||||||
|
|
||||||
SIGNOZ_INSTALLATION_ID=$(curl -s 'https://api64.ipify.org')
|
SIGNOZ_INSTALLATION_ID=$(curl -s 'https://api64.ipify.org')
|
||||||
|
|
||||||
echo ""
|
# echo ""
|
||||||
|
|
||||||
echo -e "👉 ${RED}Two ways to go forward\n"
|
# echo -e "👉 ${RED}Two ways to go forward\n"
|
||||||
echo -e "${RED}1) ClickHouse as database (default)\n"
|
# echo -e "${RED}1) ClickHouse as database (default)\n"
|
||||||
echo -e "${RED}2) Kafka + Druid as datastore \n"
|
# echo -e "${RED}2) Kafka + Druid as datastore \n"
|
||||||
read -p "⚙️ Enter your preference (1/2):" choice_setup
|
# read -p "⚙️ Enter your preference (1/2):" choice_setup
|
||||||
|
|
||||||
while [[ $choice_setup != "1" && $choice_setup != "2" && $choice_setup != "" ]]
|
# while [[ $choice_setup != "1" && $choice_setup != "2" && $choice_setup != "" ]]
|
||||||
do
|
# do
|
||||||
# echo $choice_setup
|
# # echo $choice_setup
|
||||||
echo -e "\n❌ ${CYAN}Please enter either 1 or 2"
|
# echo -e "\n❌ ${CYAN}Please enter either 1 or 2"
|
||||||
read -p "⚙️ Enter your preference (1/2): " choice_setup
|
# read -p "⚙️ Enter your preference (1/2): " choice_setup
|
||||||
# echo $choice_setup
|
# # echo $choice_setup
|
||||||
done
|
# done
|
||||||
|
|
||||||
|
# if [[ $choice_setup == "1" || $choice_setup == "" ]];then
|
||||||
|
# setup_type='clickhouse'
|
||||||
|
# else
|
||||||
|
# setup_type='druid'
|
||||||
|
# fi
|
||||||
|
|
||||||
if [[ $choice_setup == "1" || $choice_setup == "" ]];then
|
|
||||||
setup_type='clickhouse'
|
setup_type='clickhouse'
|
||||||
else
|
|
||||||
setup_type='druid'
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -e "\n✅ ${CYAN}You have chosen: ${setup_type} setup\n"
|
# echo -e "\n✅ ${CYAN}You have chosen: ${setup_type} setup\n"
|
||||||
|
|
||||||
# Run bye if failure happens
|
# Run bye if failure happens
|
||||||
trap bye EXIT
|
trap bye EXIT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user