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

Docker image fails to build #47

Open
jinnatar opened this issue Sep 10, 2022 · 1 comment
Open

Docker image fails to build #47

jinnatar opened this issue Sep 10, 2022 · 1 comment

Comments

@jinnatar
Copy link

[*snip*]
Step 7/9 : RUN poetry install
 ---> Running in 152d259ac155
Skipping virtualenv creation, as specified in config file.
Installing dependencies from lock file

Because borg-exporter depends on pytest-celery (^0.0.0-alpha.1) which doesn't match any versions, version solving failed.
The command '/bin/sh -c poetry install' returned a non-zero code: 1
@jinnatar
Copy link
Author

With the following modifications I was able to get it to build and run:

  • Amend Dockerfile to run instead poetry install --only main to skip dev dependencies that are causing the issue
  • poetry add pyinstaller^4.0 # it's only added as a dev dependency, which isn't strictly true
  • poetry add py # generated dist depends on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant