Skip to content

Commit

Permalink
reverting an unverified commit due to email mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ncoder2 committed May 9, 2024
1 parent 6c66d27 commit 13796db
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 31 deletions.
8 changes: 6 additions & 2 deletions setup/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
services:
mantis:
image: ghcr.io/phonepe/mantis:latest
build:
dockerfile: Dockerfile
context: ../../
container_name: mantis
restart: on-failure
command: sleep infinity
Expand Down Expand Up @@ -40,7 +42,9 @@ services:
- ./stacks:/appsmith-stacks
restart: unless-stopped
dashboard:
image: ghcr.io/phonepe/mantis-dashboard:latest
build:
dockerfile: Dockerfile
context: ../../dashboard
container_name: mantis-dashboard
ports:
- "8000:8000"
Expand Down
15 changes: 7 additions & 8 deletions setup/docker/docker-setup-macos-experimental.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,27 +89,26 @@ Following are your options:

echo -e "${BICyan}
1. Delete all the previously created containers${BYellow}
- Recommended to backup the database before deleting MongoDB${BICyan}
2. Delete Mantis, Dashboard and don't delete MongoDB${BICyan}
3. ${BICyan}Delete Mantis, MongoDB and don't delete Dashboard${BYellow}
- Recommended to export the dashboard before deleting Dashboard
- ${BYellow}Recommended to backup the database before deleting MongoDB${BICyan}
2. Delete Mantis, Dashboard and don't delete MongoDB${BYellow}
- Recommended to export the dashboard before deleting Appsmith${BICyan}
3. Delete Mantis, MongoDB and don't delete Dashboard${BYellow}
- Recommended to backup the database before deleting MongoDB
https://www.mongodb.com/docs/manual/tutorial/backup-and-restore-tools/${BICyan}
4. Delete Mantis and don't delete Dashboard, MongoDB
${NC}
"

read -p "What would you like to do? (1/2/3/4): " choice

case $choice in
1)
echo -e "[-] ${Red}Removing all the existing containers from Mantis setup${NC}"
docker compose down mantis
docker compose down mongodb
docker compose down dashboard
docker compose down
;;
2)
echo -e "[-] ${Red}Removing Mantis, Dashboard and retaining MongoDB${NC}"
docker compose down dashboard
docker compose down mantis-dashboard
docker compose down mantis
;;
3)
Expand Down
8 changes: 2 additions & 6 deletions setup/docker/docker-setup-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ read -p "What would you like to do? (1/2/3/4): " choice
case $choice in
1)
echo -e "[-] ${Red}Removing all the existing containers from Mantis setup${NC}"
docker compose down mantis
docker compose down mongodb
docker compose down appsmith
docker compose down
;;
2)
echo -e "[-] ${Red}Removing Mantis, Appsmith and retaining MongoDB${NC}"
Expand Down Expand Up @@ -156,9 +154,7 @@ echo -e -n "[?] ${BICyan} Do you have sudo access on the machine? (y/n)? ${NC}"
# Install packages


docker compose up --remove-orphans -d --build mongodb
docker compose up --remove-orphans -d --build mantis
docker compose up --remove-orphans -d --build appsmith
docker compose up --remove-orphans -d --build
#docker network connect mantis-network appsmith

echo -e "${BIYellow}\n\nSETUP SUMMARY${NC}\n"
Expand Down
18 changes: 9 additions & 9 deletions setup/docker/docker-setup-ubuntu-experimental.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,14 @@ Following are your options:

echo -e "${BICyan}
1. Delete all the previously created containers${BYellow}
- Recommended to backup the database before deleting MongoDB${BICyan}
2. Delete Mantis, Dashboard and don't delete MongoDB${BICyan}
3. ${BICyan}Delete Mantis, MongoDB and don't delete Dashboard${BYellow}
- Recommended to backup the database before deleting MongoDB
- Recommended to export the dashboard before deleting dashboard
- ${BYellow}Recommended to backup the database before deleting MongoDB${BICyan}
2. Delete Mantis,dashboard and don't delete MongoDB
- ${BYellow}Recommended to export the dashboard before deleting dashboard${BICyan}
3. Delete Mantis, MongoDB and don't delete dashboard
- ${BYellow}Recommended to backup the database before deleting MongoDB
https://www.mongodb.com/docs/manual/tutorial/backup-and-restore-tools/${BICyan}
4. Delete Mantis and don't delete Dashboard, MongoDB
4. Delete Mantis and don't delete dashboard, MongoDB
${NC}
"

Expand All @@ -101,13 +103,11 @@ read -p "What would you like to do? (1/2/3/4): " choice
case $choice in
1)
echo -e "[-] ${Red}Removing all the existing containers from Mantis setup${NC}"
sudo docker compose down dashboard
sudo docker compose down mantis
sudo docker compose down mongodb
sudo docker compose down
;;
2)
echo -e "[-] ${Red}Removing Mantis, dashboard and retaining MongoDB${NC}"
sudo docker compose down dashboard
sudo docker compose down mantis-dashboard
sudo docker compose down mantis
;;
3)
Expand Down
8 changes: 2 additions & 6 deletions setup/docker/docker-setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ read -p "What would you like to do? (1/2/3/4): " choice
case $choice in
1)
echo -e "[-] ${Red}Removing all the existing containers from Mantis setup${NC}"
sudo docker compose down mantis
sudo docker compose down mongodb
sudo docker compose down appsmith
sudo docker compose down
;;
2)
echo -e "[-] ${Red}Removing Mantis, Appsmith and retaining MongoDB${NC}"
Expand Down Expand Up @@ -151,9 +149,7 @@ echo -e -n "[?] ${BICyan}Do you have sudo access on the machine? (y/n)? ${NC}"
# Install packages


sudo docker compose up --remove-orphans -d --build mongodb
sudo docker compose up --remove-orphans -d --build mantis
sudo docker compose up --remove-orphans -d --build appsmith
sudo docker compose up --remove-orphans -d --build

echo -e "${BIYellow}\n\nSETUP SUMMARY${NC}\n"

Expand Down

0 comments on commit 13796db

Please sign in to comment.