Stop using shell redirection for container-based specs #12
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Chewing_Bever/backup-tool#12
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
The current workings of the container-based spec uses
docker exec
which then expects a command to output data to stdout. I have however experienced issues with creating binary files using this method (e.g. apg_dump
archive).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