Merge pull request #83 from sharelatex/ja-dockerize-dev

Provide hosts as settings and add npm run start script
This commit is contained in:
James Allen 2018-01-16 17:08:09 +00:00 committed by GitHub
commit 64ad02b1bf
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: process.env["TEXLIVE_IMAGE_USER"] or "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",