Skip to content

Install Sonobuoy in Dockerfile#1100

Open
gerbsen wants to merge 1 commit intomainfrom
gerbsen-patch-2
Open

Install Sonobuoy in Dockerfile#1100
gerbsen wants to merge 1 commit intomainfrom
gerbsen-patch-2

Conversation

@gerbsen
Copy link
Contributor

@gerbsen gerbsen commented Feb 17, 2026

Add Sonobuoy installation to Dockerfile with architecture support.

Add Sonobuoy installation to Dockerfile with architecture support.

Signed-off-by: gerbsen <1186245+gerbsen@users.noreply.github.com>
Copy link
Contributor

@mbuechse mbuechse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be frank, I do hate this Dockerfile. It tries to install all dependencies, that is, for IaaS and KaaS alike, regardless of the eventual purpose. Would it be possible to supply sonobuoy via a mount? Otherwise, maybe the code can at least be shortened. With Ansible, we only need these lines (with curl):

    - name: Install Sonobuoy
      ansible.builtin.shell:
        curl -L {{ sonobuoy_tar_gz_url | trim | quote }} | tar xz sonobuoy
      args:
        chdir: "{{ ansible_user_dir}}/.local/bin/"
        creates: sonobuoy
      when: kaas | bool

Apparently, when curl can be used, there is no need to have three separate commands for downloading, extracting and removing a temporary file, and even the chmod seems to be unnecessary? Not sure if curl is available on a python-3.10 image (or whatever is used here), but I think it's worth a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants