From e2bbb0c299dc92b9a73c5c836e74991221b7fe72 Mon Sep 17 00:00:00 2001 From: Roger Martinez <31829545+rogerthatdev@users.noreply.github.com> Date: Fri, 28 Jul 2023 09:48:21 -0700 Subject: [PATCH] fix: rename gcsfuse script (#3369) * run node index.js in bg; rename gcsfuse sh script * update name in dockerfile too --- run/filesystem/gcsfuse.Dockerfile | 4 ++-- run/filesystem/{gcsfuse.run.sh => gcsfuse_run.sh} | 0 run/filesystem/run.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename run/filesystem/{gcsfuse.run.sh => gcsfuse_run.sh} (100%) diff --git a/run/filesystem/gcsfuse.Dockerfile b/run/filesystem/gcsfuse.Dockerfile index bcc1ff0f8f..c96e180ebb 100644 --- a/run/filesystem/gcsfuse.Dockerfile +++ b/run/filesystem/gcsfuse.Dockerfile @@ -48,12 +48,12 @@ RUN npm install --only=production COPY . ./ # Ensure the script is executable -RUN chmod +x /app/gcsfuse.run.sh +RUN chmod +x /app/gcsfuse_run.sh # Use tini to manage zombie processes and signal forwarding # https://github.com/krallin/tini ENTRYPOINT ["/usr/bin/tini", "--"] # Pass the wrapper script as arguments to tini -CMD ["/app/gcsfuse.run.sh"] +CMD ["/app/gcsfuse_run.sh"] # [END cloudrun_fuse_dockerfile] \ No newline at end of file diff --git a/run/filesystem/gcsfuse.run.sh b/run/filesystem/gcsfuse_run.sh similarity index 100% rename from run/filesystem/gcsfuse.run.sh rename to run/filesystem/gcsfuse_run.sh diff --git a/run/filesystem/run.sh b/run/filesystem/run.sh index cc8f190e8e..e0ae632df4 100644 --- a/run/filesystem/run.sh +++ b/run/filesystem/run.sh @@ -25,7 +25,7 @@ mount -o nolock $FILESTORE_IP_ADDRESS:/$FILE_SHARE_NAME $MNT_DIR echo "Mounting completed." # Start the application -node index.js +node index.js & # Exit immediately when one of the background processes terminate. wait -n