Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions images/baremetal/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# It builds an image containing only the openshift-install.

FROM registry.svc.ci.openshift.org/openshift/release:golang-1.10 AS builder
RUN yum install -y libvirt-devel

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Current pattern is to chain this up to a trialing yum clean all, like this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also, won't you want all of these? If not, why not?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think anything other than libvirt-devel is needed to compile, we're not actually running the installer or really interacting with libvirt, so the rest isn't needed (I think).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That makes sense, but makes me wonder why the baremetal installer needs to set the libvirt build tag at all?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We use a libvirt provisioning host to bootstrap the cluster

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

To be clear, those full set of packages are needed wherever you would run the installer from, but they’re not needed to build it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we include them here then? That way folks who wanted to could run the baremetal installer via a container runtime, vs. extracting just the binary and having it dynamically link to local libraries.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That'd be a little awkward since it'd be so different from how the installer runs elsewhere. It's not a big deal to depend on libvirt. We're only supporting RHEL 8 hosts.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also I should mention this is just the build container, we only need devel here. The actual container we're distributing (below this section) has libvirt-libs, so the installer could run inside the container runtime, and talk to an external libvirt.

Having libvirt itself run inside the container would be complicated, we'd need to do many of the things kubervirt does to make that happen.

WORKDIR /go/src/github.com/openshift/installer
COPY . .
RUN TAGS="libvirt baremetal" hack/build.sh
Expand Down