-
Notifications
You must be signed in to change notification settings - Fork 44.7k
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
devops cleanups #49
devops cleanups #49
Conversation
astelmach01
commented
Apr 2, 2023
•
edited
Loading
edited
- Added pip-tools functionality. Instead of adding to requirements.txt, simply add the library to requirements.in and run pip-compile after installing pip-tools
- Cleaned up dockerfile to install requirements first for a quick optimization
- Changed docker image from 3.8 -> 3.10
- Added a proper gitignore
Also related #137 |
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.
Split into independent atomic PRs. While I'm not a maintainer, the current maintainers have a similar requirement in other PRs.
@@ -1,8 +1,12 @@ | |||
FROM python:3.11 | |||
FROM python:3.10-slim |
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.
Python bump is and using a slim image are separate design decisions. Use 2 separate PRs for this single line as it's easier to approve and merge them.
|
||
RUN pip install -r requirements.txt | ||
COPY requirements.txt /app/requirements.txt |
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.
This change is done elsewhere (in different PRs) already. Search for the PR number(s) and add a comment. Remove from this PR.
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.
It's a good idea to generate requirements.txt for a more precice dependency pindown. Explain the advantages and submit only this improvement as a separate PR.
@@ -18,7 +18,7 @@ def execute_python_file(file): | |||
try: | |||
client = docker.from_env() | |||
|
|||
# You can replace 'python:3.8' with the desired Python image/version |
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.
This typo should be a separate PR independent of all the above.
🔨 Improve local development setup to be SQLite compatible