Merge pull request #28138 from overleaf/msm-remove-volumes-dockerode

[clsi] Remove `Volumes` from container options

GitOrigin-RevId: 53a60f69e9689ee777d9b300127885de7b88c1fb
This commit is contained in:
Miguel Serrano
2025-09-01 08:05:03 +00:00
committed by Copybot
parent ecc0d603e2
commit b910cb47ef
-4
View File
@@ -213,11 +213,8 @@ const DockerRunner = {
) { ) {
const timeoutInSeconds = timeout / 1000 const timeoutInSeconds = timeout / 1000
const dockerVolumes = {}
for (const hostVol in volumes) { for (const hostVol in volumes) {
const dockerVol = volumes[hostVol] const dockerVol = volumes[hostVol]
dockerVolumes[dockerVol] = {}
if (volumes[hostVol].slice(-3).indexOf(':r') === -1) { if (volumes[hostVol].slice(-3).indexOf(':r') === -1) {
volumes[hostVol] = `${dockerVol}:rw` volumes[hostVol] = `${dockerVol}:rw`
} }
@@ -238,7 +235,6 @@ const DockerRunner = {
const options = { const options = {
Cmd: command, Cmd: command,
Image: image, Image: image,
Volumes: dockerVolumes,
WorkingDir: '/compile', WorkingDir: '/compile',
NetworkDisabled: true, NetworkDisabled: true,
Memory: 1024 * 1024 * 1024 * 1024, // 1 Gb Memory: 1024 * 1024 * 1024 * 1024, // 1 Gb