-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
If docker image is overridden in the project, it's not saved into .json #5108
Comments
As explained here, we do that from the config module That solves the problem? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@stsewd did you tested that the json gets the proper value on it? It should match the image used to execute the commands to the one saved in the json file. |
Yes, I just checked it $ cat envs/latest/readthedocs-environment.json
{"python": {"version": 3.6}, "build": {"image": "readthedocs/build-dev:3.0", "hash": "sha256:64998dc2...."}} Before it was building with the latest image. |
@stsewd so, your project was building with |
Yes |
Our
PythonEnvironment.save_environment_json
method has a bug.When the
Project.container_image
is manually set by an admin, it's not used when saving the.json
file into disk and it's used the default image instead.The problem is at this line,
https://github.com/rtfd/readthedocs.org/blob/33ed2735dc6e5e6e3b9e552bbbb72df600648a4a/readthedocs/doc_builder/python_environments.py#L187
although,
self.project.container_image
isNone
at that point because I suppose thecontainer_image
field does not come with in the API call. We may want to add it when using an Admin user to hit this endpoint.The text was updated successfully, but these errors were encountered: