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

fix: containerfiles now are building local code #1063

Closed
Closed
Show file tree
Hide file tree
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
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
Loading