Skip to content

Commit

Permalink
Updated run.sh with new commands (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenPj authored Apr 13, 2023
1 parent e772f9f commit 15ddfea
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
#!/bin/sh

start() {
build() {
docker-compose build
}

build_start() {
docker volume create aps-db-sa-volume
docker volume create aps-admin-db-sa-volume
docker volume create aps-contentstore-sa-volume
docker volume create aps-es-sa-volume
docker-compose up --build -d
}

start() {
docker volume create aps-db-sa-volume
docker volume create aps-admin-db-sa-volume
docker volume create aps-contentstore-sa-volume
docker volume create aps-es-sa-volume
docker-compose up -d
}

down() {
docker-compose down
}
Expand All @@ -28,6 +40,13 @@ tail_all() {
}

case "$1" in
build)
build
;;
build_start)
build_start
tail
;;
start)
start
tail
Expand All @@ -43,5 +62,5 @@ case "$1" in
tail
;;
*)
echo "Usage: $0 {start|stop|purge|tail}"
esac
echo "Usage: $0 {build_start | build | start | stop | purge | tail}"
esac

0 comments on commit 15ddfea

Please sign in to comment.