Skip to content

Commit

Permalink
add: docker build/down/up script for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
rv2931 committed Feb 2, 2025
1 parent 091446d commit 99ef80b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docker/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
cd "$(dirname "$0")"/..
docker compose build $1 || read -p "[$?] Appuyer sur une pour continuer"
3 changes: 2 additions & 1 deletion docker/down.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
cd "$(dirname "$0")"/..
docker compose -f docker-compose.yaml down || read -p "Error. Press any key to continue"
docker compose down $1 || read -p "[$?] Appuyer sur une pour continuer"
3 changes: 2 additions & 1 deletion docker/up.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/sh
cd "$(dirname "$0")"/..
docker compose -f docker-compose.yaml up || read -p "Error. Press any key to continue"
docker compose up $1 || read -p "[$?] Appuyer sur une pour continuer"

0 comments on commit 99ef80b

Please sign in to comment.