chore(install-script): 🗑️ remove arm YAML as already satisfied by single YAML (#1326)

Signed-off-by: Prashant Shahi <prashant@signoz.io>
This commit is contained in:
Prashant Shahi 2022-06-28 17:33:50 +05:30 committed by GitHub
parent ba7427f280
commit dbe68c064c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,9 +36,9 @@ is_mac() {
[[ $OSTYPE == darwin* ]] [[ $OSTYPE == darwin* ]]
} }
is_arm64(){ # is_arm64(){
[[ `uname -m` == 'arm64' ]] # [[ `uname -m` == 'arm64' ]]
} # }
check_os() { check_os() {
if is_mac; then if is_mac; then
@ -237,11 +237,7 @@ bye() { # Prints a friendly good bye message and exits the script.
echo "🔴 The containers didn't seem to start correctly. Please run the following command to check containers that may have errored out:" echo "🔴 The containers didn't seem to start correctly. Please run the following command to check containers that may have errored out:"
echo "" echo ""
if is_arm64; then echo -e "$sudo_cmd docker-compose -f ./docker/clickhouse-setup/docker-compose.yaml ps -a"
echo -e "$sudo_cmd docker-compose -f ./docker/clickhouse-setup/docker-compose.arm.yaml ps -a"
else
echo -e "$sudo_cmd docker-compose -f ./docker/clickhouse-setup/docker-compose.yaml ps -a"
fi
# echo "Please read our troubleshooting guide https://signoz.io/docs/deployment/docker#troubleshooting" # echo "Please read our troubleshooting guide https://signoz.io/docs/deployment/docker#troubleshooting"
echo "or reach us for support in #help channel in our Slack Community https://signoz.io/slack" echo "or reach us for support in #help channel in our Slack Community https://signoz.io/slack"
@ -466,22 +462,14 @@ start_docker
echo "" echo ""
echo -e "\n🟡 Pulling the latest container images for SigNoz.\n" echo -e "\n🟡 Pulling the latest container images for SigNoz.\n"
if is_arm64; then $sudo_cmd docker-compose -f ./docker/clickhouse-setup/docker-compose.yaml pull
$sudo_cmd docker-compose -f ./docker/clickhouse-setup/docker-compose.arm.yaml pull
else
$sudo_cmd docker-compose -f ./docker/clickhouse-setup/docker-compose.yaml pull
fi
echo "" echo ""
echo "🟡 Starting the SigNoz containers. It may take a few minutes ..." echo "🟡 Starting the SigNoz containers. It may take a few minutes ..."
echo echo
# The docker-compose command does some nasty stuff for the `--detach` functionality. So we add a `|| true` so that the # The docker-compose command does some nasty stuff for the `--detach` functionality. So we add a `|| true` so that the
# script doesn't exit because this command looks like it failed to do it's thing. # script doesn't exit because this command looks like it failed to do it's thing.
if is_arm64; then $sudo_cmd docker-compose -f ./docker/clickhouse-setup/docker-compose.yaml up --detach --remove-orphans || true
$sudo_cmd docker-compose -f ./docker/clickhouse-setup/docker-compose.arm.yaml up --detach --remove-orphans || true
else
$sudo_cmd docker-compose -f ./docker/clickhouse-setup/docker-compose.yaml up --detach --remove-orphans || true
fi
wait_for_containers_start 60 wait_for_containers_start 60
echo "" echo ""
@ -510,11 +498,7 @@ else
echo -e "🟢 Your frontend is running on http://localhost:3301" echo -e "🟢 Your frontend is running on http://localhost:3301"
echo "" echo ""
if is_arm64; then echo " To bring down SigNoz and clean volumes : $sudo_cmd docker-compose -f ./docker/clickhouse-setup/docker-compose.yaml down -v"
echo " To bring down SigNoz and clean volumes : $sudo_cmd docker-compose -f ./docker/clickhouse-setup/docker-compose.arm.yaml down -v"
else
echo " To bring down SigNoz and clean volumes : $sudo_cmd docker-compose -f ./docker/clickhouse-setup/docker-compose.yaml down -v"
fi
echo "" echo ""
echo "+++++++++++++++++++++++++++++++++++++++++++++++++" echo "+++++++++++++++++++++++++++++++++++++++++++++++++"