Skip to content

Commit

Permalink
Fix severe error caused by uncleared docker volume.
Browse files Browse the repository at this point in the history
  • Loading branch information
We-Gold committed Aug 5, 2024
1 parent 2fa1b3c commit 3b6f80a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion python/ouroboros/common/file_system.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import asyncio
import os
from pathlib import Path
from ouroboros.common.volume_server_interface import (
Expand Down
4 changes: 3 additions & 1 deletion resources/processes/volume-server-script.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ function deleteFilesFromVolumeFolder(volumeName, targetFolder) {
// Construct the Docker command
const command = `
docker run --rm -v ${volumeName}:/volume alpine sh -c "
rm -rf '${targetFolderPath}'"
rm -rf ${targetFolderPath}"
`
.replace(/\s+/g, ' ')
.trim()

console.log(command)

return command
}

0 comments on commit 3b6f80a

Please sign in to comment.