-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add Dockerfile for oVirt populator
Signed-off-by: Ernesto González <[email protected]>
- Loading branch information
1 parent
b7501bc
commit de14d73
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]>" |