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

Replace Go image in the Dockerfile #41

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

chetan-rns
Copy link
Member

What does this PR do / why we need it:

The base image used in the Dockerfile openshift/origin-release:golang-1.21 doesn't exist. Replace this image with the standard Golang image from DockerHub.

Ref: https://github.com/redhat-developer/gitops-operator/blob/master/Dockerfile

Have you updated the necessary documentation?

  • Documentation update is required by this PR.
  • Documentation has been updated.

Which issue(s) this PR fixes:

Fixes #?

How to test changes / Special notes to the reviewer:

Copy link

openshift-ci bot commented Sep 26, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from chetan-rns. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@chetan-rns
Copy link
Member Author

#40 should pass once we merge this PR

Dockerfile Outdated
WORKDIR /root/
# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For Go binaries built with CGO_ENABLED=0 option , we could use FROM scratch. I assume there is no other other dependency required for this binary (like bash etc).

Signed-off-by: Chetan Banavikalmutt <[email protected]>
Copy link
Member

@anandf anandf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chetan-rns chetan-rns merged commit 64870a7 into redhat-developer:master Sep 27, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants