Skip to content

Commit

Permalink
fix: containerfiles now are building local code
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 20, 2024
1 parent 8f9ec29 commit 8ce5b4a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/forklift-api/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WORKDIR /app
COPY --chown=1001:0 ./ ./
ENV GOFLAGS "-mod=vendor -tags=strictfipsruntime"
ENV GOEXPERIMENT strictfipsruntime
RUN GOOS=linux GOARCH=amd64 go build -buildvcs=false -ldflags="-w -s" -o forklift-api github.com/konveyor/forklift-controller/pkg/forklift-api
RUN GOOS=linux GOARCH=amd64 go build -buildvcs=false -ldflags="-w -s" -o forklift-api ./cmd/forklift-api/forklift-api.go

FROM registry.access.redhat.com/ubi9-minimal:9.4-1227.1725849298
# Required to be able to get files from within the pod
Expand Down
2 changes: 1 addition & 1 deletion build/forklift-controller/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WORKDIR /app
COPY --chown=1001:0 ./ ./
ENV GOFLAGS "-mod=vendor -tags=strictfipsruntime"
ENV GOEXPERIMENT strictfipsruntime
RUN GOOS=linux GOARCH=amd64 go build -buildvcs=false -ldflags="-w -s" -o manager github.com/konveyor/forklift-controller/cmd/forklift-controller
RUN GOOS=linux GOARCH=amd64 go build -buildvcs=false -ldflags="-w -s" -o manager ./cmd/forklift-controller/main.go

FROM registry.access.redhat.com/ubi9-minimal:9.4-1227.1725849298
# RUN microdnf -y update && microdnf -y clean all
Expand Down
2 changes: 1 addition & 1 deletion build/openstack-populator/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WORKDIR /app
COPY --chown=1001:0 ./ ./
ENV GOFLAGS "-mod=vendor -tags=strictfipsruntime"
ENV GOEXPERIMENT strictfipsruntime
RUN GOOS=linux GOARCH=amd64 go build -buildvcs=false -ldflags="-w -s" -o openstack-populator github.com/konveyor/forklift-controller/cmd/openstack-populator
RUN GOOS=linux GOARCH=amd64 go build -buildvcs=false -ldflags="-w -s" -o openstack-populator ./cmd/openstack-populator/openstack-populator.go

FROM registry.access.redhat.com/ubi9-minimal:9.4-1227.1725849298
# Required to be able to get files from within the pod
Expand Down
2 changes: 1 addition & 1 deletion build/ova-provider-server/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY --chown=1001:0 ./ ./
ENV GOFLAGS "-mod=vendor -tags=strictfipsruntime"
ENV GOEXPERIMENT strictfipsruntime

RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o ova-provider-server github.com/konveyor/forklift-controller/cmd/ova-provider-server
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o ova-provider-server ./cmd/ova-provider-server/ova-provider-server.go

FROM registry.access.redhat.com/ubi9-minimal:9.4-1227.1725849298
# Required to be able to get files from within the pod
Expand Down
2 changes: 1 addition & 1 deletion build/ovirt-populator/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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
RUN GOOS=linux GOARCH=amd64 go build -o ovirt-populator ./cmd/ovirt-populator/ovirt-populator.go

FROM registry.access.redhat.com/ubi8-minimal:8.10-1052.1724178568
COPY --from=builder /app/ovirt-populator /usr/local/bin/ovirt-populator
Expand Down
2 changes: 1 addition & 1 deletion build/populator-controller/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o controller ./cmd/populator-controller/populator-controller.go

FROM registry.access.redhat.com/ubi9-minimal:9.4-1227.1725849298
# Required to be able to get files from within the pod
Expand Down

0 comments on commit 8ce5b4a

Please sign in to comment.