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

[ci] add setuptools installation and pinning to the Dockerfile #779

Merged

Conversation

Shastick
Copy link
Contributor

@Shastick Shastick commented Sep 11, 2024

This is an alternative to #771 to solve #768: it involves installing setuptools and pinning its version directly in the Dockerfile, before the actual requirements get installed.

Background

Since python:3.12.5-slim, setuptools is not pre-installed anymore, causing our builds to fail when using this (or later) images.

See this comment for some background and details about the considered options, and why we did not choose to add setuptools to requirements.in.

This PR also sets the base image to python:3.12.6-slim to show that the Dockerfile can be built.

@BenjaminPelletier
Copy link
Member

nit: Could you change the title and description of the PR to clarify that we're just moving setuptools out of requirements.txt and installing it separately? Importantly, it seems like setuptools is still pinned (to 74.1.2 per line 23), so it's not accurate to say it is "unpinned". I think that's important because I think the root cause of one of our recent issues is that not enough things were pinned, and I don't think we've had any problems due to something being pinned (so, I would expect us to almost always only move toward more pinning and not less pinning).

@Shastick Shastick changed the title [ci] separare setuptools installation to allow it to be unpinned [ci] move setuptools installation and pinning from the requirements into Dockerfile Sep 12, 2024
@Shastick Shastick changed the title [ci] move setuptools installation and pinning from the requirements into Dockerfile [ci] add setuptools installation and pinning to the Dockerfile Sep 12, 2024
@BenjaminPelletier BenjaminPelletier merged commit 0321f55 into interuss:main Sep 12, 2024
20 checks passed
@Shastick Shastick deleted the separate-setuptools-install branch September 12, 2024 15:01
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