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 Containerfile for populator-controller #1051

Merged
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
25 changes: 25 additions & 0 deletions build/populator-controller/Containerfile
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]>"
Loading