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

Test.dockerfile throwing an error while building. #987

Open
chrishalbert opened this issue Dec 27, 2023 · 1 comment
Open

Test.dockerfile throwing an error while building. #987

chrishalbert opened this issue Dec 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@chrishalbert
Copy link

Describe the bug
I was trying to run tests locally following the instructions in the CONTRIBUTING.md. The first step of building the docker image fails due to PEP668, but this can be overridden.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo.
  2. In the root of the repo, run docker build -f ${PWD}/test/docker/Test.dockerfile ${PWD}/test/docker/ -t vault-helm-test
  3. You will see the output in the Actual Behavior below.

Expected behavior
You should see that the [+] Building 87.2s (13/13) FINISHED or something along those lines after step 2 of reproducing.

Actual Behavior

 > [4/9] RUN pip install yq:
1.437 error: externally-managed-environment
1.437
1.437 × This environment is externally managed
1.437 ╰─>
1.437     The system-wide python installation should be maintained using the system
1.437     package manager (apk) only.
1.437
1.437     If the package in question is not packaged already (and hence installable via
1.437     "apk add py3-somepackage"), please consider installing it inside a virtual
1.437     environment, e.g.:
1.437
1.437     python3 -m venv /path/to/venv
1.437     . /path/to/venv/bin/activate
1.437     pip install mypackage
1.437
1.437     To exit the virtual environment, run:
1.437
1.437     deactivate
1.437
1.437     The virtual environment is not deleted, and can be re-entered by re-sourcing
1.437     the activate file.
1.437
1.437     To automatically manage virtual environments, consider using pipx (from the
1.437     pipx package).
1.437
1.437 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
1.437 hint: See PEP 668 for the detailed specification.

Environment

  • Host: WSL2
  • Docker: 24.0.7
@chrishalbert chrishalbert added the bug Something isn't working label Dec 27, 2023
@chrishalbert
Copy link
Author

Here's the quick easy fix: #988

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

1 participant