Stop using shell redirection for container-based specs #12
Labels
No labels
Brainstorm
Parent
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Chewing_Bever/backup-tool#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current workings of the container-based spec uses
docker execwhich then expects a command to output data to stdout. I have however experienced issues with creating binary files using this method (e.g. apg_dumparchive).There is, however, a better alternative:
We can use subprocess's built-in methods for handling stdout streaming.
A better method would be to use subprocess's built-in methods for handling stdout. We could stream the command's output as follows:
I haven't tested however wether our not this also works for random binary data.
Stop using stdout for container-based specsto Stop using shell redirection for container-based specs