late-keyboard-89314
11/22/2023, 9:21 PMdocker_environment? I’m building out some smoke tests for one of our images and want to do it by running my python_tests within the container as a docker_environment. So far it’s choked on lacking /bin/sh which I fixed by adding in a busybox shell, but now it’s looking for bash as well. Is there anything else that I’ll need to put in?
pants test ::
14:17:30.27 [INFO] Initialization options changed: reinitializing scheduler...
14:17:34.89 [INFO] Scheduler initialized.
14:17:36.00 [ERROR] 1 Exception encountered:
Engine traceback:
in `test` goal
ProcessExecutionFailure: Process 'Searching for `bash` on PATH=/usr/bin:/bin:/usr/local/bin' failed with exit code 126.
stdout:
OCI runtime exec failed: exec failed: unable to start container process: exec ./find_binary.sh: no such file or directory: unknown
stderr:
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.broad-processor-92400
11/22/2023, 9:54 PMlate-keyboard-89314
11/22/2023, 9:59 PMbash installed in the container now and am getting another error that I’m having trouble diagnosing:
ProcessExecutionFailure: Process 'Searching for `bash` on PATH=/usr/bin:/bin:/usr/local/bin' failed with exit code 126.
stdout:
OCI runtime exec failed: exec failed: unable to start container process: exec ./find_binary.sh: no such file or directory: unknownlate-keyboard-89314
11/22/2023, 10:01 PMno such file or directory before on files that are definitely there when there are shared libs missing, but I don’t think that’s the case here. I’m able to get a bash shell in the container, and I symlinked /usr/bin/env as well since the shebang at the top of find_binary.sh relies on it.late-keyboard-89314
11/22/2023, 10:03 PMlate-keyboard-89314
11/22/2023, 10:08 PMbash
• /bin/sh -> can be symlinked to either bash or busybox
• /usr/bin/env -> can by symlinked to busybox
• tar -> can be anywhere on $PATH (although oddly pants checks for my local path, not those in the container). Can be symlinked from busybox.late-keyboard-89314
11/23/2023, 2:52 AMimage field itself since that feels like the most likely place to look: https://github.com/pantsbuild/pants/pull/20231broad-processor-92400
11/23/2023, 9:52 AM