From 15ddfea6411ca5de73648e448e4a2adad73d5582 Mon Sep 17 00:00:00 2001 From: Piergiorgio Lucidi Date: Thu, 13 Apr 2023 12:48:39 +0200 Subject: [PATCH] Updated run.sh with new commands (#5) --- run.sh | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index 9825f30..84315c8 100755 --- a/run.sh +++ b/run.sh @@ -1,6 +1,10 @@ #!/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 @@ -8,6 +12,14 @@ start() { 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 } @@ -28,6 +40,13 @@ tail_all() { } case "$1" in + build) + build + ;; + build_start) + build_start + tail + ;; start) start tail @@ -43,5 +62,5 @@ case "$1" in tail ;; *) - echo "Usage: $0 {start|stop|purge|tail}" -esac \ No newline at end of file + echo "Usage: $0 {build_start | build | start | stop | purge | tail}" +esac