Skip to content

Conversation

@SalimKayal
Copy link
Collaborator

This PR introduces significant enhancements to our Dockerfile and build process, allowing for the seamless integration of CUDA-enabled images and improving multi-architecture support.

The core changes involve updating the Dockerfile to support using a single image as both a build image for our builder and as a runtime image. This refactoring streamlines our image management and ensures consistency across different stages of the build and deployment pipeline.

To facilitate these changes, several new dependencies have been added. These additions are crucial for Paketo's Python buildpack, as they provide the necessary tools and libraries for successfully building Python applications within the updated environment. This ensures that our Python projects continue to build correctly while leveraging the new image capabilities.

With these updates, we can now utilize CUDA-enabled images, opening up possibilities for accelerated computing tasks within our environments.

@SalimKayal SalimKayal requested review from leafty and sgaist November 6, 2025 13:41
Comment on lines 4 to 7
ARG cnb_uid=1001
ARG cnb_gid=1001
ENV CNB_USER_ID=${cnb_uid}
ENV CNB_GROUP_ID=${cnb_gid}
Copy link
Member

Choose a reason for hiding this comment

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

While I understand that the user id during the build phase is 1001, we should keep user 1000:1000 for when we run the image.

Copy link
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

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

some minor questions:

ENV CNB_USER_ID=${cnb_run_uid}
ENV CNB_GROUP_ID=${cnb_run_gid}

RUN
Copy link
Member

Choose a reason for hiding this comment

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

Empty run?


USER $user_id
WORKDIR /home/renku
RUN (userdel $(getent passwd ${cnb_uid}|cut -d: -f1) || true) && \
Copy link
Member

Choose a reason for hiding this comment

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

Should we also delete the groups 1000 and 1001 if they exist?

Copy link
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

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

Nice!

@SalimKayal SalimKayal merged commit b015408 into feat/multi-arch Nov 11, 2025
2 of 3 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.

3 participants