Skip to content

Commit

Permalink
chore: cosmetic changes to work with ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
pratapalakshmi committed Dec 5, 2024
1 parent d7d099c commit 849e369
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ballerine_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,17 @@ deploy_ballerine() {
local input=$1
echo "checking domain if suitable $input"
if [[ $input == *http://* && $input != *https://* ]]; then
if [[ "$OSTYPE" == "darwin"* ]]; then
cd deploy; sudo docker-compose -f docker-compose-build.yml up -d
else
cd deploy; sudo docker compose -f docker-compose-build.yml up -d
fi
elif [[ $input == *https://* && $input != *http://* ]]; then
if [[ "$OSTYPE" == "darwin"* ]]; then
cd deploy; sudo docker-compose -f docker-compose-build-https.yml up -d
else
cd deploy; sudo docker compose -f docker-compose-build-https.yml up -d
fi
elif [[ $input == *http://* && $input == *https://* ]]; then
echo "The string contains both 'http' and 'https'."
exit 1;
Expand Down Expand Up @@ -71,7 +79,7 @@ install_docker_ubuntu(){
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
}


Expand Down

0 comments on commit 849e369

Please sign in to comment.