Skip to content

Commit

Permalink
chore: add Containerfile for populator-controller
Browse files Browse the repository at this point in the history
Signed-off-by: Ernesto González <[email protected]>
  • Loading branch information
ernesgonzalez33 authored and mnecas committed Sep 20, 2024
1 parent db6782b commit 2ef5969
Showing 1 changed file with 25 additions and 0 deletions.
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]>"

0 comments on commit 2ef5969

Please sign in to comment.