-
Notifications
You must be signed in to change notification settings - Fork 6
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
Misc-fixes #139
Misc-fixes #139
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
ARG TARGETARCH=amd64 | ||
ARG COMMIT | ||
|
||
# Make kubectl & oc scripts available for copy | ||
FROM brew.registry.redhat.io/openshift4/ose-cli-rhel9:v4.17.0-202412032103.p0.g13001b0.assembly.stream.el9 as ose-cli | ||
|
||
# Build the manager binary | ||
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.22.5-202407301806.g4c8b32d.el9 as builder | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we also have 1.23 golang builder images |
||
|
||
|
@@ -34,8 +37,14 @@ RUN mkdir -p output | |
# Create final image from ubi + built binary and command | ||
FROM --platform=linux/$TARGETARCH registry.access.redhat.com/ubi9/ubi:9.4 | ||
WORKDIR / | ||
|
||
COPY --from=builder /opt/app-root/build . | ||
COPY --from=builder /tmp/oc /usr/bin/oc | ||
COPY --from=builder --chown=65532:65532 /opt/app-root/output /output | ||
|
||
COPY --from=ose-cli /kubectl /usr/bin/kubectl | ||
COPY --from=ose-cli /oc /usr/bin/oc | ||
|
||
USER 65532:65532 | ||
|
||
ENTRYPOINT ["/network-observability-cli"] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,14 +76,10 @@ prepare: | |
mkdir -p tmp | ||
|
||
.PHONY: prereqs | ||
prereqs: ## Test if prerequisites are met, and installing missing dependencies | ||
@echo "### Test if prerequisites are met, and installing missing dependencies" | ||
ifeq (, $(shell which golangci-lint)) | ||
prereqs: ## Install dependencies | ||
@echo "### Installing dependencies" | ||
GOFLAGS="" go install github.com/golangci/golangci-lint/cmd/golangci-lint@${GOLANGCI_LINT_VERSION} | ||
endif | ||
ifeq (, $(shell which yq)) | ||
GOFLAGS="" go install github.com/mikefarah/yq/v4@${YQ_VERSION} | ||
endif | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jpinsonneau why removed the above check just curious ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you already have yq, it will not update it. |
||
|
||
.PHONY: vendors | ||
vendors: ## Refresh vendors directory. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should have 4.18 images
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I'll take a look when I will have a working URL. For now I'm getting a not authorized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@OlivierCazade seems like Konflux is passing on the image now but have a new error:
Could you PTAL ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.