You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by ms...@apache.org on 2021/12/02 23:21:20 UTC

[incubator-teaclave] branch master updated: Add the -b argument to rebuild services (#579)

This is an automated email from the ASF dual-hosted git repository.

mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git


The following commit(s) were added to refs/heads/master by this push:
     new 9232696  Add the -b argument to rebuild services (#579)
9232696 is described below

commit 92326966f09a8872c86a3b915d2c61a688f2e553
Author: Mingshen Sun <bo...@mssun.me>
AuthorDate: Thu Dec 2 15:21:12 2021 -0800

    Add the -b argument to rebuild services (#579)
---
 docker/run-teaclave-services.sh | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/docker/run-teaclave-services.sh b/docker/run-teaclave-services.sh
index 773df4d..2e17df3 100755
--- a/docker/run-teaclave-services.sh
+++ b/docker/run-teaclave-services.sh
@@ -122,17 +122,18 @@ function aesm_detect() {
 }
 
 function usage {
-    echo "Usage: $(basename $0) [-hdm:]" 2>&1
+    echo "Usage: $(basename $0) [-hdbm:]" 2>&1
     echo '   -h           shows usage'
     echo '   -m           run mode (default: sgx)'
     echo '   -d           detached mode'
+    echo '   -b           build or rebuild services'
     echo 'Available run modes: sim, sgx'
     exit 1
 }
 
 RUN_MODE="sgx"
 DETACH_ARG=""
-optstring="hdm:"
+optstring="hdbm:"
 while getopts ${optstring} arg; do
     case ${arg} in
         h)
@@ -142,6 +143,9 @@ while getopts ${optstring} arg; do
         d)
             DETACH_ARG="-d"
             ;;
+        b)
+            BUILD_ARG="--build"
+            ;;
         m)
             RUN_MODE=$OPTARG
             ;;
@@ -215,5 +219,5 @@ else
     DC_ARGS="-f $DOCKER_COMPOSE_FILE"
 fi
 
-echo COMMAND: docker-compose ${DC_ARGS} up ${DETACH_ARG}
-docker-compose ${DC_ARGS} up ${DETACH_ARG}
+echo COMMAND: docker-compose ${DC_ARGS} up ${DETACH_ARG} ${BUILD_ARG}
+docker-compose ${DC_ARGS} up ${DETACH_ARG} ${BUILD_ARG}

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org