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-08-29 11:26:39 +02:00
committed by Copybot
parent ecc0d603e2
commit b910cb47ef

View File

@@ -213,11 +213,8 @@ const DockerRunner = {
) {
const timeoutInSeconds = timeout / 1000
const dockerVolumes = {}
for (const hostVol in volumes) {
const dockerVol = volumes[hostVol]
dockerVolumes[dockerVol] = {}
if (volumes[hostVol].slice(-3).indexOf(':r') === -1) {
volumes[hostVol] = `${dockerVol}:rw`
}
@@ -238,7 +235,6 @@ const DockerRunner = {
const options = {
Cmd: command,
Image: image,
Volumes: dockerVolumes,
WorkingDir: '/compile',
NetworkDisabled: true,
Memory: 1024 * 1024 * 1024 * 1024, // 1 Gb