Provide hosts and siblings container as environment settings and add npm run start script

This commit is contained in:
James Allen 2017-12-29 08:08:19 +00:00
parent adaf742a7b
commit 08a0c6feb4
2 changed files with 18 additions and 12 deletions

View file

@ -16,21 +16,10 @@ module.exports =
clsiCacheDir: Path.resolve(__dirname + "/../cache")
synctexBaseDir: (project_id) -> Path.join(@compilesDir, project_id)
# clsi:
# commandRunner: "docker-runner-sharelatex"
# docker:
# image: "quay.io/sharelatex/texlive-full:2017.1"
# env:
# HOME: "/tmp"
# socketPath: "/var/run/docker.sock"
# user: "tex"
# expireProjectAfterIdleMs: 24 * 60 * 60 * 1000
# checkProjectsIntervalMs: 10 * 60 * 1000
internal:
clsi:
port: 3013
host: "localhost"
host: process.env["LISTEN_ADDRESS"] or "localhost"
apis:
@ -40,3 +29,16 @@ module.exports =
smokeTest: false
project_cache_length_ms: 1000 * 60 * 60 * 24
parallelFileDownloads:1
if process.env["COMMAND_RUNNER"]
module.exports.clsi =
commandRunner: process.env["COMMAND_RUNNER"]
docker:
image: process.env["TEXLIVE_IMAGE"] or "quay.io/sharelatex/texlive-full:2017.1"
env:
HOME: "/tmp"
socketPath: "/var/run/docker.sock"
user: "tex"
expireProjectAfterIdleMs: 24 * 60 * 60 * 1000
checkProjectsIntervalMs: 10 * 60 * 1000
module.exports.path.sandboxedCompilesHostDir = process.env["COMPILES_HOST_DIR"]

View file

@ -6,6 +6,10 @@
"type": "git",
"url": "https://github.com/sharelatex/clsi-sharelatex.git"
},
"scripts": {
"compile:app": "coffee -o app/js -c app/coffee && coffee -c app.coffee",
"start": "npm run compile:app && node app.js"
},
"author": "James Allen <james@sharelatex.com>",
"dependencies": {
"async": "0.2.9",