Skip to content

Commit

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

echo -e "${BICyan}
1. Delete all the previously created containers${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${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
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
docker compose down mantis
docker compose down mongodb
docker compose down dashboard
;;
2)
echo -e "[-] ${Red}Removing Mantis, Dashboard and retaining MongoDB${NC}"
docker compose down mantis-dashboard
docker compose down dashboard
docker compose down mantis
;;
3)
Expand Down
8 changes: 6 additions & 2 deletions setup/docker/docker-setup-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ 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
docker compose down mantis
docker compose down mongodb
docker compose down appsmith
;;
2)
echo -e "[-] ${Red}Removing Mantis, Appsmith and retaining MongoDB${NC}"
Expand Down Expand Up @@ -154,7 +156,9 @@ echo -e -n "[?] ${BICyan} Do you have sudo access on the machine? (y/n)? ${NC}"
# Install packages


docker compose up --remove-orphans -d --build
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 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,14 +87,12 @@ Following are your options:

echo -e "${BICyan}
1. Delete all the previously created containers${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 dashboard${BICyan}
3. Delete Mantis, MongoDB and don't delete dashboard
- ${BYellow}Recommended to backup the database before deleting MongoDB
- 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
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 @@ -103,11 +101,13 @@ 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
sudo docker compose down dashboard
sudo docker compose down mantis
sudo docker compose down mongodb
;;
2)
echo -e "[-] ${Red}Removing Mantis, dashboard and retaining MongoDB${NC}"
sudo docker compose down mantis-dashboard
sudo docker compose down dashboard
sudo docker compose down mantis
;;
3)
Expand Down
8 changes: 6 additions & 2 deletions setup/docker/docker-setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ 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
sudo docker compose down mantis
sudo docker compose down mongodb
sudo docker compose down appsmith
;;
2)
echo -e "[-] ${Red}Removing Mantis, Appsmith and retaining MongoDB${NC}"
Expand Down Expand Up @@ -149,7 +151,9 @@ 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
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

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

Expand Down

0 comments on commit bfbeaaf

Please sign in to comment.