pkg-config, fuse3 package is missing in ubuntu 20.04 image apt list #10528
-
There is a requirement to install python pip package pyfuse3 in virtual env as a part of CI/CD pipeline. We are using action runner controller to run our workflow jobs in that the pyfuse3 requires pkg-config, pyfuse3 package and some other dependencies of these packages. In official document, the pkg-config package is available in apt installed package list: Ubuntu2004-Readme.md But in runner pod container these packages are missing:
workflow job log:
OS details:
I just created simple pod using ubuntu:20.04 image to test the fix for local use, the below update and install packages works well without any issues:
There is no chance to install/update packages once the pod container deployed. Is there any chance to use updated runner image of ubuntu20.04. Please provide the solution to fix this issue and make it work the workflow jobs. Appreciate your support & guidance in advance. OS_details_and_full_apt_list_ubuntu2004.txt |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @selva2tech - Use a Custom Runner Image: You can build a custom Docker image based on ubuntu:20.04 with all the necessary dependencies (pkg-config, fuse3, etc.) pre-installed. If building a custom image is not feasible, try configuring your Kubernetes pod (where the runner is deployed) to allow package installation during startup. You could use an initContainer in the pod to install dependencies before the main container runs the runner. Another approach is to pre-build the necessary dependencies into a shared volume and mount this volume into the runner pod. This allows your container to access pre-installed packages without modifying the pod itself. If possible, set up self-hosted runners where you have more control over the environment. You can pre-install all required dependencies and ensure that the environment remains consistent. If your environment supports it, consider caching packages like pkg-config, pyfuse3, and other dependencies in your pipeline to minimize repeated downloads and installations. |
Beta Was this translation helpful? Give feedback.
Hi @selva2tech -
To resolve the issue with installing pyfuse3 and its dependencies in your CI/CD pipeline, here are a few options to consider:
Use a Custom Runner Image:
You can build a custom Docker image based on ubuntu:20.04 with all the necessary dependencies (pkg-config, fuse3, etc.) pre-installed.
Push this image to a container registry, then configure your CI/CD pipeline to use this custom image as the base for the action runner. This ensures that all required packages are present from the start.
Pre-Configure Runner:
If building a custom image is not feasible, try configuring your Kubernetes pod (where the runner is deployed) to allow package installation during startup. You could…