-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fixed docker support for the Python target #2377
Conversation
I think it would be a good idea to have the Python docker images use the same parent image as our C image, so that they have the same shell and package manager. |
I was surprised by this too. So basically the C and the Python dockerfile have similar content. In parrticular, the cmake arguments that define path C macros look like this in both docker files: I don't know what is causing the difference between C and Python.
I agree, but I think we should treat using an alpine base image as a separate issue. |
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.
No idea why the federated tests are failing but please create an issue for them if you haven't already.
This PR implements several fixes:
failing
directoryDetails
I noticed that the docker generation for Python is broken, producing errors like the following:
This is related to the way we quote arguments that we pass to cmake. For some reason, the quoting behaves different when building for Python than when building for C. I assume this is because a different shell is used in the different base images. The implemented fix makes the generated quoting more robust.
While debugging this, I also noticed that the Python docker tests were disabled. So we did not notice the problems before... It looks like this was done because of another issue: #1564. However, the issue is not very descriptive, and I don't understand what it is about. @lhstrh Perhaps you can comment on whether we can consider the issue fixed?
After enabling the tests again, I noticed a fundamental flaw in the Python docker generation. It was completely relying on the C generator, which gets invoked by the Python generator before the Python code is generated. Thus, the docker image was incomplete, as it was created before any Python files were generated.
Finally, I had to mark two of the federated tests as failing. I don't know why they are failing and will open another issue.