gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-grid5k] 110/141: add no-copy flag


From: gnunet
Subject: [taler-grid5k] 110/141: add no-copy flag
Date: Thu, 18 Nov 2021 14:50:51 +0100

This is an automated email from the git hooks/post-receive script.

marco-boss pushed a commit to branch master
in repository grid5k.

commit e414c1983731a387e07498e8382d814fdc29d789
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Sat Nov 6 08:54:42 2021 +0100

    add no-copy flag
---
 docker/README.md     | 1 +
 docker/entrypoint.sh | 8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/docker/README.md b/docker/README.md
index 0e1edeb..bcccae7 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -58,6 +58,7 @@ Or place the password (also arguments) in .env too but make 
sure its protected.
 **ARGUMENTS**: args to pass to entrypoint, one of 
   -c|--clean (run make clean) 
   -r|--rebuild (rebuild the image - automatically set if -c is used) 
+  -n|--no-copy (do not copy the generated image to Grid5000 - make sure output 
volume is mounted)
  As per default, running the docker command again will not clean or rebuild 
the image
 
 ##### Additional
diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh
index 1c905b0..79a4be2 100644
--- a/docker/entrypoint.sh
+++ b/docker/entrypoint.sh
@@ -14,6 +14,11 @@ while [[ $# -gt 0 ]]; do
       echo "INFO will rebuild image"
       shift
       ;;
+    -n|--no-copy)
+      COPY=false
+      echo "INFO will not copy image to Grid5000"
+      shift
+      ;;
     *)
       shift
       ;;
@@ -84,7 +89,7 @@ fi
 
 cd build/taler-debian11
 
-if [ -f "/root/cert.pem" ]; then
+if [ -f "/root/cert.pem" ] && [ "$COPY" != false ]; then
 
   eval $(ssh-agent)
   
@@ -120,6 +125,7 @@ if [ -f "/root/cert.pem" ]; then
 fi
 
 if [ -d "/root/output" ]; then
+  echo "INFO copying image to output (mounted volume)" 
   mv taler-debian11.dsc.bak taler-debian11.dsc || true
   cp taler-debian11.tar.zst taler-debian11.dsc /root/output/ 
 fi

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]