-
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 Containerfile for populator-controller
Signed-off-by: Ernesto González <[email protected]>
- Loading branch information
1 parent
db6782b
commit 5e4275f
Showing
1 changed file
with
25 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,25 @@ | ||
FROM registry.access.redhat.com/ubi9/go-toolset:1.21.11-9 AS builder | ||
WORKDIR /app | ||
COPY --chown=1001:0 ./ ./ | ||
ENV GOFLAGS "-mod=vendor -tags=strictfipsruntime" | ||
ENV GOEXPERIMENT strictfipsruntime | ||
|
||
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o controller github.com/konveyor/forklift-controller/cmd/populator-controller | ||
|
||
FROM registry.access.redhat.com/ubi9-minimal:9.4-1227.1725849298 | ||
# Required to be able to get files from within the pod | ||
RUN microdnf -y install tar && microdnf clean all | ||
|
||
COPY --from=builder /app/controller /usr/local/bin/populator-controller | ||
ENTRYPOINT ["/usr/local/bin/populator-controller"] | ||
|
||
LABEL \ | ||
com.redhat.component="forklift-populator-controller-container" \ | ||
name="forklift/forklift-populator-controller-rhel9" \ | ||
license="Apache License 2.0" \ | ||
io.k8s.display-name="Forklift" \ | ||
io.k8s.description="Forklift - Populator Controller" \ | ||
io.openshift.tags="migration,mtv,forklift" \ | ||
summary="Forklift - Populator Controller" \ | ||
description="Forklift - Populator Controller" \ | ||
maintainer="Forklift by Konveyor Community <[email protected]>" |