From 2d03cb3eb11aa2ce6193c1316c3de9f7951a086f Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Fri, 16 Mar 2018 17:30:11 +0000 Subject: [PATCH] added debugging and new moving commands --- services/clsi/app.coffee | 4 ++++ services/clsi/entrypoint.sh | 8 ++++++-- services/clsi/install_deps.sh | 5 +---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/services/clsi/app.coffee b/services/clsi/app.coffee index 527b17e9d6..7bd056460e 100644 --- a/services/clsi/app.coffee +++ b/services/clsi/app.coffee @@ -144,6 +144,10 @@ app.get "/smoke_test_force", (req, res)-> smokeTest.run(require.resolve(__dirname + "/test/smoke/js/SmokeTests.js"))(req, res) +#TODO delete this +app.get "/settings", (req, res)-> + res.json(Settings) + profiler = require "v8-profiler" app.get "/profile", (req, res) -> time = parseInt(req.query.time || "1000") diff --git a/services/clsi/entrypoint.sh b/services/clsi/entrypoint.sh index d50a70a386..ecb28d1180 100755 --- a/services/clsi/entrypoint.sh +++ b/services/clsi/entrypoint.sh @@ -1,10 +1,14 @@ #!/bin/sh echo "Changing permissions of /var/run/docker.sock for sibling containers" -cp /var/clsi/bin/synctex /var/clsi/bin/synctex-mount/synctex chown root:docker /var/run/docker.sock -chown app:app /app/compiles + +mkdir -p /app/cache +chown -R app:app /app/cache + +mkdir -p /app/compiles +chown -R app:app /app/compiles ./bin/install_texlive_gce.sh exec runuser -u app "$@" \ No newline at end of file diff --git a/services/clsi/install_deps.sh b/services/clsi/install_deps.sh index 511f291ccc..20ab946523 100755 --- a/services/clsi/install_deps.sh +++ b/services/clsi/install_deps.sh @@ -4,8 +4,5 @@ apt-get install poppler-utils vim ghostscript --yes npm rebuild usermod -aG docker app -mkdir -p /app/cache -chown -R app:app /app/cache +cp /app/bin/synctex /app/bin/synctex-mount/synctex -mkdir -p /app/compiles -chown -R app:app /app/compiles