mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Merge pull request #28138 from overleaf/msm-remove-volumes-dockerode
[clsi] Remove `Volumes` from container options GitOrigin-RevId: 53a60f69e9689ee777d9b300127885de7b88c1fb
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user