Skip to content

Docker: add missing reporting libs - #5213

Merged
SchrodingersGat merged 5 commits into
inventree:masterfrom
SchrodingersGat:docker-image-fix
Jul 10, 2023
Merged

SchrodingersGat merged 5 commits into
inventree:masterfrom
SchrodingersGat:docker-image-fix

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Ref: #5007

@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed docker Docker / docker-compose setup Relates to the InvenTree setup / installation process labels Jul 10, 2023
@SchrodingersGat SchrodingersGat added this to the 0.13.0 milestone Jul 10, 2023
@wolflu05

wolflu05 commented Jul 10, 2023 •

Copy link
Copy Markdown
Member

Was this intentional, or an oversight? We'll need to add these back in.

Missed the poppler-utils one, but the rest was intentional as they do not exist on alpine, see, hopefully it works even without them. Unfortunately, I already testet label generation and it worked.

But your changes do not work, I suggest adding only poppler-utils to this line

py3-pip py3-pillow py3-cffi py3-brotli pango \

@SchrodingersGat

Copy link
Copy Markdown
Member Author

But your changes do not work

Do not work how? The docker image builds OK for me?

@wolflu05

Copy link
Copy Markdown
Member

Do not work how? The docker image builds OK for me?

Yes, it's basically the same as without your changes. Look closely at the last line where you added the \ the fc-cache command just ignores the extra args you provided. You need to add them to a apk add command. I suggest adding it to L60, because there is the other report stuff.

@SchrodingersGat

Copy link
Copy Markdown
Member Author

Yes, it's basically the same as without your changes. Look closely at the last line where you added the \ the fc-cache command just ignores the extra args you provided. You need to add them to a apk add command. I suggest adding it to L60, because there is the other report stuff.

Ah, yes ok that is obvious now :)

@wolflu05

wolflu05 commented Jul 10, 2023 •

Copy link
Copy Markdown
Member

Keep an eye on the size, not sure if we really need the added packages, I looked at the official docs and that's why I didn't add them.

Image is now at 588MB on my machine.

@SchrodingersGat

Copy link
Copy Markdown
Member Author

Keep an eye on the size, not sure if we really need the added packages, I looked at the official docs and that's why I didn't add them.

Yep, looks like unit tests pass correctly without them, so have removed again :)

@SchrodingersGat
SchrodingersGat merged commit 92b0a19 into inventree:master Jul 10, 2023
@SchrodingersGat
SchrodingersGat deleted the docker-image-fix branch July 10, 2023 11:12
@SchrodingersGat

Copy link
Copy Markdown
Member Author

@wolflu05 very nice work :) The size difference is impressive

Screenshot 2023-07-10 at 10 44 03 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Identifies a bug which needs to be addressed docker Docker / docker-compose setup Relates to the InvenTree setup / installation process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants