You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.
podman exec --user root:root "$CONTAINER_ID" /bin/bash -c 'if ! type '"$TEST_BINARY"' >/dev/null 2>&1; then
I think the install_command test could be improved as the packages listed under the dependencies don't all contain binaries that are equal to the name of the package.
The ca-certificates package for example does not contain any binary called ca-certificates (at least not on archlinux/debian/redhat) which causes the ca-certificates package to be installed in every job.
This can count for a significant amount of time, especially on yum based distros that have a lot of repos enabled.
Possible solutions:
Adding a second argument to install_command for a file to check (or perhaps a command to run).
Check if a package is installed instead of relying on the existence of a certain file/binary. This would need to be distro specific but it would be possible to use dpkg/rpm/etc. instead of apt/yum/dnf (using rpm is significantly faster than relying on yum/dnf).
The text was updated successfully, but these errors were encountered:
It is indeed unfortunate that this always tries to install the package, but I am not aware how to check these things properly in a distro-agnostic version. Another problem I see is that the install command gets executed multiple times instead of installing all missing packages at once.
If someone wants to improve the situation, I am happy to merge that.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
podman-gitlab-runner/prepare.sh
Lines 71 to 76 in 02d3f9e
I think the install_command test could be improved as the packages listed under the dependencies don't all contain binaries that are equal to the name of the package.
The
ca-certificates
package for example does not contain any binary calledca-certificates
(at least not on archlinux/debian/redhat) which causes theca-certificates
package to be installed in every job.This can count for a significant amount of time, especially on yum based distros that have a lot of repos enabled.
Possible solutions:
The text was updated successfully, but these errors were encountered: