Open shubhe25p opened 1 month ago
I cannot replicate the issue on my end.
Here is what I did:
test_input_arg_value.sh
;podman-hpc run --rm -v $PWD:/test ubuntu:latest /test/test_input_arg_value.sh -i "this is my input_file"
> cat test_input_arg_value.sh
#!/bin/bash
input_arg_value=$2
echo $input_arg_value
> podman-hpc run --rm -v $PWD:/test ubuntu:latest /test/test_input_arg_value.sh -i "this is my input_file"
this is my input_file
Hi everyone, I found a bug while testing N10 LAMMPS in podman-hpc
Image: localhost:/n10-lammps:1.0
Run script:
Error:
Reason for this error: When container arguments are parsed, podman options are filtered out but we never take overlapping into account i.e
-i
podman is a boolean flag but for lammps means input file so it expects a value, thus the error.Solution: Disable filtering of container arguments with podman options
Test program to replicate this error:
Regards, Shubh PEM intern, NERSC