From 01c46e9e947cd0806a4b4393ac81b4ce340f31a6 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 11 Mar 2020 10:06:55 +0000 Subject: [PATCH] remove ./bin/install_texlive_gce.sh which shouldn't be needed we shouldn't have needed this for a while, I think it is a cause of startup delay, however this should have stopped other missing texlive images in the past which is strange --- services/clsi/bin/install_texlive_gce.sh | 21 --------------------- services/clsi/entrypoint.sh | 1 - 2 files changed, 22 deletions(-) delete mode 100755 services/clsi/bin/install_texlive_gce.sh diff --git a/services/clsi/bin/install_texlive_gce.sh b/services/clsi/bin/install_texlive_gce.sh deleted file mode 100755 index ee6efba471..0000000000 --- a/services/clsi/bin/install_texlive_gce.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh -METADATA=http://metadata.google.internal./computeMetadata/v1 -SVC_ACCT=$METADATA/instance/service-accounts/default -PROJECT_URL=$METADATA/project/project-id -ACCESS_TOKEN=$(curl -s -H 'Metadata-Flavor: Google' $SVC_ACCT/token | cut -d'"' -f 4) -if [ -z "$ACCESS_TOKEN" ]; then - echo "No acccess token to download texlive-full images from google container, continuing without downloading. This is likely not a google cloud enviroment." - exit 0 -fi -PROJECT=$(curl -s -H 'Metadata-Flavor: Google' $PROJECT_URL) -if [ -z "$PROJECT" ]; then - echo "No project name to download texlive-full images from google container, continuing without downloading. This is likely not a google cloud enviroment." - exit 0 -fi -docker login -u '_token' -p $ACCESS_TOKEN https://gcr.io -docker pull --all-tags gcr.io/$PROJECT/texlive-full -cp /app/bin/synctex /app/bin/synctex-mount/synctex - -echo "Finished downloading texlive-full images" - - diff --git a/services/clsi/entrypoint.sh b/services/clsi/entrypoint.sh index 71ced1412b..15a41db949 100755 --- a/services/clsi/entrypoint.sh +++ b/services/clsi/entrypoint.sh @@ -21,5 +21,4 @@ chown -R node:node /app chown -R node:node /app/bin -./bin/install_texlive_gce.sh exec runuser -u node -- "$@"