Merge pull request #6541 from overleaf/ms-em-server-ce-image-selector

Never show the TeX Live image selector in CE

GitOrigin-RevId: e41724a1c7cf089c214aa1cd6584035f20281576
This commit is contained in:
Eric Mc Sween 2022-01-31 09:00:15 -05:00 committed by Copybot
parent d90dc2bfae
commit d069da46ae

View file

@ -12,7 +12,7 @@
* DS207: Consider shorter variations of null checks * DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/ */
let allTexLiveDockerImageNames, allTexLiveDockerImages, redisConfig, siteUrl let redisConfig, siteUrl
let e let e
const Path = require('path') const Path = require('path')
@ -726,28 +726,6 @@ if (process.env.SHARELATEX_ELASTICSEARCH_URL != null) {
} }
} }
// TeX Live Images
// -----------
if (process.env.ALL_TEX_LIVE_DOCKER_IMAGES != null) {
allTexLiveDockerImages = process.env.ALL_TEX_LIVE_DOCKER_IMAGES.split(',')
}
if (process.env.ALL_TEX_LIVE_DOCKER_IMAGE_NAMES != null) {
allTexLiveDockerImageNames =
process.env.ALL_TEX_LIVE_DOCKER_IMAGE_NAMES.split(',')
}
if (allTexLiveDockerImages != null) {
settings.allowedImageNames = []
for (let index = 0; index < allTexLiveDockerImages.length; index++) {
const fullImageName = allTexLiveDockerImages[index]
const imageName = Path.basename(fullImageName)
const imageDesc =
allTexLiveDockerImageNames != null
? allTexLiveDockerImageNames[index]
: imageName
settings.allowedImageNames.push({ imageName, imageDesc })
}
}
// With lots of incoming and outgoing HTTP connections to different services, // With lots of incoming and outgoing HTTP connections to different services,
// sometimes long running, it is a good idea to increase the default number // sometimes long running, it is a good idea to increase the default number
// of sockets that Node will hold open. // of sockets that Node will hold open.