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

building Docker images which require pip to install psutils fails unless gcc is installed #3802

Closed
TonyWildish opened this issue Dec 1, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@TonyWildish
Copy link
Contributor

Remember to label the issue with the appropriate area, and also assign it to yourself if you plan to work on the issue in the near future.

Describe the bug
Building the Docker images for api_app/Dockerfile or resource_processor/vmss_porter/Dockerfile fails at the 'pip install' step due to gcc and python3-dev not being installed in the image.

In both cases, adding RUN apt-get update -y && apt-get install -y gcc python3-dev before the pip install command is enough to fix the problem.

N.B. This is on a Mac with a manual installation from the terminal, but I don't believe that is responsible for the problem since it occurs inside the container being built.

Steps to reproduce

  1. clone AzureTRE repository
  2. follow manual build procedure
  3. when it reaches the stage to build either of these Docker images, it fails with a pip message that psutils cannot be built because of gcc and python3-dev being absent

Azure TRE release version (e.g. v0.14.0 or main):
main

Deployed Azure TRE components - click the (i) in the UI:
none, didn't get that far

@TonyWildish TonyWildish added the bug Something isn't working label Dec 1, 2023
@marrobi
Copy link
Member

marrobi commented Dec 1, 2023

@TonyWildish Can you confirm that you running inside the dev container? Thanks.

@TonyWildish
Copy link
Contributor Author

no, running from the Terminal command line on a Mac.

@marrobi
Copy link
Member

marrobi commented Dec 1, 2023

Can you test within the dev container? As per the other thread, it's extremely hard to support multiple platforms, hence the dev container resolves most of these challenges.

@TonyWildish
Copy link
Contributor Author

can do, I'll get back to you.

@marrobi
Copy link
Member

marrobi commented Dec 12, 2023

Hi @TonyWildish did this work in the dev container? Thanks.

@TonyWildish-BH
Copy link
Contributor

Hi Marcus, yes, it does work in the devcontainer.

@marrobi
Copy link
Member

marrobi commented Jan 2, 2024

Ok, closing as the supported route is via dev container. Thanks.

@marrobi marrobi closed this as completed Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants