Commit f640b429 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

fix

parent fca52bde
Loading
Loading
Loading
Loading
Loading
+15 −1
Original line number Original line Diff line number Diff line
@@ -188,7 +188,21 @@ def refresh_docx_fields(input_path: str, image: str = "docx-field-refresh") -> s
    
    
    print(f"🐳 Docker command: {' '.join(cmd)}")
    print(f"🐳 Docker command: {' '.join(cmd)}")
    
    
    subprocess.run("ls -al && pwd && whoami", check=True)
    # Run diagnostic commands on the host
    print(f"🔍 Running diagnostic commands on HOST...")
    host_diag_cmd = f"ls -la {mount_point_host} && pwd && whoami && echo 'Mount point contents:' && ls -la {mount_point_host}/baseline/ 2>/dev/null || echo 'No baseline directory'"
    subprocess.run(host_diag_cmd, shell=True, check=False)  # Don't fail if diagnostic fails
    
    # Run diagnostic commands in the container
    print(f"🔍 Running diagnostic commands in CONTAINER...")
    diag_cmd = [
        "docker", "run", "--rm",
        "-v", f"{mount_point_host}:{mount_point_container}",
        "--entrypoint", "/bin/bash",
        image,
        "-c", f"ls -la {mount_point_container} && pwd && whoami && echo 'Mount point contents:' && ls -la {mount_point_container}/baseline/ 2>/dev/null || echo 'No baseline directory'",
    ]
    subprocess.run(diag_cmd, check=False)  # Don't fail if diagnostic fails


    subprocess.run(cmd, check=True)
    subprocess.run(cmd, check=True)