Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add Dockerfile for oVirt populator #1043

Merged
merged 1 commit into from
Sep 19, 2024
Merged
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
27 changes: 27 additions & 0 deletions build/ovirt-populator/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM registry.access.redhat.com/ubi8/go-toolset:1.21.11-8.1724662611 AS builder
ENV GOPATH=$APP_ROOT
WORKDIR /app
COPY --chown=1001:0 ./ ./
ENV GOFLAGS "-mod=vendor -tags=strictfipsruntime"
ENV GOEXPERIMENT strictfipsruntime

RUN GOOS=linux GOARCH=amd64 go build -o ovirt-populator github.com/konveyor/forklift-controller/cmd/ovirt-populator

FROM registry.access.redhat.com/ubi8-minimal:8.10-1052.1724178568
COPY --from=builder /app/ovirt-populator /usr/local/bin/ovirt-populator
# RUN microdnf install -y python3-ovirt-engine-sdk4 ovirt-imageio-client && microdnf clean all
RUN microdnf install -y python3 python3-devel libcurl-devel gcc openssl-devel libxml2-devel

RUN pip3 install ovirt-engine-sdk-python ovirt-imageio

ENTRYPOINT ["/usr/local/bin/ovirt-populator"]
LABEL \
com.redhat.component="forklift-ovirt-populator-container" \
name="forklift/forklift-ovirt-populator-rhel8" \
license="Apache License 2.0" \
io.k8s.display-name="Forklift" \
io.k8s.description="oVirt populator pod facilitates data import from oVirt environments to PVCs" \
io.openshift.tags="migration,mtv,forklift" \
summary="Forklift - oVirt Populator" \
description="Forklift - oVirt Populator" \
maintainer="Forklift by Konveyor Community <[email protected]>"
Loading