support other runtimes
This commit is contained in:
@@ -149,10 +149,12 @@ module.exports = DockerRunner =
|
|||||||
"CapDrop": "ALL"
|
"CapDrop": "ALL"
|
||||||
"SecurityOpt": ["no-new-privileges"]
|
"SecurityOpt": ["no-new-privileges"]
|
||||||
|
|
||||||
|
|
||||||
if Settings.path?.synctexBinHostPath?
|
if Settings.path?.synctexBinHostPath?
|
||||||
options["HostConfig"]["Binds"].push("#{Settings.path.synctexBinHostPath}:/opt/synctex:ro")
|
options["HostConfig"]["Binds"].push("#{Settings.path.synctexBinHostPath}:/opt/synctex:ro")
|
||||||
|
|
||||||
|
if Settings.clsi.docker.runtime?
|
||||||
|
options["HostConfig"]["Runtime"] = Settings.clsi.docker.runtime
|
||||||
|
|
||||||
if Settings.clsi.docker.seccomp_profile?
|
if Settings.clsi.docker.seccomp_profile?
|
||||||
options.HostConfig.SecurityOpt.push "seccomp=#{Settings.clsi.docker.seccomp_profile}"
|
options.HostConfig.SecurityOpt.push "seccomp=#{Settings.clsi.docker.seccomp_profile}"
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ if process.env["DOCKER_RUNNER"]
|
|||||||
module.exports.clsi =
|
module.exports.clsi =
|
||||||
dockerRunner: process.env["DOCKER_RUNNER"] == "true"
|
dockerRunner: process.env["DOCKER_RUNNER"] == "true"
|
||||||
docker:
|
docker:
|
||||||
|
runtime: process.env["DOCKER_RUNTIME"]
|
||||||
image: process.env["TEXLIVE_IMAGE"] or "quay.io/sharelatex/texlive-full:2017.1"
|
image: process.env["TEXLIVE_IMAGE"] or "quay.io/sharelatex/texlive-full:2017.1"
|
||||||
env:
|
env:
|
||||||
HOME: "/tmp"
|
HOME: "/tmp"
|
||||||
|
|||||||
Reference in New Issue
Block a user