Skip to content

Commit

Permalink
chore: add Dockerfile for oVirt populator
Browse files Browse the repository at this point in the history
Signed-off-by: Ernesto González <[email protected]>
  • Loading branch information
ernesgonzalez33 committed Sep 18, 2024
1 parent b7501bc commit de14d73
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions build/ovirt-populator/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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" \
version="$CI_VERSION" \
name="forklift/forklift-ovirt-populator-rhel8" \
license="Apache License 2.0" \
io.k8s.display-name="Forklift" \
io.k8s.description="Forklift - oVirt Populator" \
io.openshift.tags="migration,mtv,forklift" \
summary="Forklift - oVirt Populator" \
description="Forklift - oVirt Populator" \
maintainer="Forklift Team <[email protected]>"

0 comments on commit de14d73

Please sign in to comment.