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

Update ray operator Dockerfile #1213

Merged
merged 2 commits into from
Aug 6, 2023

Conversation

anishasthana
Copy link
Contributor

Why are these changes needed?

We are currently using generic golang and distroless images to build the ray-operator (and other images).
Using “ubi(universal base image)” and “scratch” will improve the security of our images. UBI images are actively maintained, scanned, and updated by Red Hat productization and security teams. Using these images will improve user confidence in what is being provided by the KubeRay community.

scratch is similar to the distroless, but this will make the dockerfile more portable for build systems that are unable to access gcr.io/distroless/static

Related issue number

Not directly related, but we should really update the Go version we are using: #518

image

Go 1.17 seems to have a lot of vulnerabilities. I'll see if I have some time in the next couple weeks to update it.

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

I'm happy to create an issue if required. cc @kevin85421

@anishasthana anishasthana changed the title WIP: Update ray operator Dockerfile Update ray operator Dockerfile Jul 11, 2023
@anishasthana
Copy link
Contributor Author

@kevin85421 can you retrigger CI here?

Copy link
Member

@kevin85421 kevin85421 left a comment

Choose a reason for hiding this comment

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

make the dockerfile more portable for build systems that are unable to access gcr.io/distroless/static

Would you mind providing more details about why some systems are unable to access gcr.io/distroless/static? Thx

ray-operator/Dockerfile Show resolved Hide resolved
@anishasthana
Copy link
Contributor Author

anishasthana commented Aug 3, 2023

Would you mind providing more details about why some systems are unable to access gcr.io/distroless/static?

Some build systems are unable to pull images from public "non-trusted" registries, so gcr.io (or even quay/dockerhub) would be out of the question unless you go through approval processes. As SCRATCH is effectively equivalent to distroless and it doesn't require going to external registries, it would be a good substitute for users who need to build the kuberay operator image in their own internal environments.

@anishasthana
Copy link
Contributor Author

@kevin85421 bump on this

Copy link
Member

@kevin85421 kevin85421 left a comment

Choose a reason for hiding this comment

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

LGTM

@kevin85421 kevin85421 merged commit 7a185af into ray-project:master Aug 6, 2023
12 checks passed
@anishasthana anishasthana deleted the update_ray_operator branch August 7, 2023 13:07
lowang-bh pushed a commit to lowang-bh/kuberay that referenced this pull request Sep 24, 2023
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