79365342

Date: 2025-01-17 15:59:16
Score: 0.5
Natty:
Report link

I took a step back and realized that I could achieve the desired behavior much more easily by writing the changes to a temporary file locally and copying the file into the docker container:

with open(file, 'w+') as f:
    f.write(extracted_data)

subprocess.run(['docker', 'cp', f'{file}', f'{self.container.id}:{self.repository_work_dir}/{file}'])
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Liqs