[docker] Install python deps in same way as CI and users

Currently, the dockerfiles install Python dependencies system-wide and
doesn't explicitly update pip and setuptools. CI and instructions for
users will install Python packages with --user and force an update of
setuptools and pip. While installing with --user may seem unnecessary in
the context of a Docker container, it avoids interactions with the
system package manager (`python3 -m pip install -U pip setuptools` will
fail due to the system install PyYAML).

As background, CI is currently failing for Docker builds:
* <https://github.com/lowRISC/opentitan/issues/7952>

While a follow-up fix to pin more dependencies is likely desirable,
minimising the differences between the dependency installation in our
Dockerfiles vs dependency installation elsewhere should reduce our
exposure to future such issues.

Signed-off-by: Alex Bradbury <asb@lowrisc.org>
2 files changed
tree: 1570b99f617b56f803c99432c12ebacf70a3d5ad
  1. .github/
  2. ci/
  3. doc/
  4. hw/
  5. site/
  6. sw/
  7. test/
  8. util/
  9. .bazelversion
  10. .clang-format
  11. .dockerignore
  12. .flake8
  13. .gitignore
  14. .style.yapf
  15. .svlint.toml
  16. .svls.toml
  17. _index.md
  18. apt-requirements.txt
  19. azure-pipelines.yml
  20. BUILD
  21. check_tool_requirements.core
  22. CLA
  23. COMMITTERS
  24. CONTRIBUTING.md
  25. LICENSE
  26. meson.build
  27. meson_init.sh
  28. meson_options.txt
  29. python-requirements.txt
  30. README.md
  31. tool_requirements.py
  32. toolchain.txt
  33. topgen-generator.core
  34. topgen-reg-only.core
  35. topgen.core
  36. WORKSPACE
  37. yum-requirements.txt
README.md

OpenTitan

OpenTitan logo

About the project

OpenTitan is an open source silicon Root of Trust (RoT) project. OpenTitan will make the silicon RoT design and implementation more transparent, trustworthy, and secure for enterprises, platform providers, and chip manufacturers. OpenTitan is administered by lowRISC CIC as a collaborative project to produce high quality, open IP for instantiation as a full-featured product. See the OpenTitan site and OpenTitan docs for more information about the project.

About this repository

This repository contains hardware, software and utilities written as part of the OpenTitan project. It is structured as monolithic repository, or “monorepo”, where all components live in one repository. It exists to enable collaboration across partners participating in the OpenTitan project.

Documentation

The project contains comprehensive documentation of all IPs and tools. You can access it online at docs.opentitan.org.

How to contribute

Have a look at CONTRIBUTING and our documentation on project organization and processes for guidelines on how to contribute code to this repository.

Licensing

Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).