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

Remove Poetry cache from Docker image #622

Merged
merged 1 commit into from
Sep 14, 2022

Conversation

juhoinkinen
Copy link
Member

Switching to use Poetry in Dockerfile (#605) increased the Docker image size to 3.2 GB. The image size for Annif v0.58 is 1.92 GB.

Simple fix is to just delete the cache after the installation (the --no-cache option of Poetry had no effect). The dependency resolution creates the poetry.lock file, which is used on the second round of installation (after adding Annif source code), so cache is unnecessary.

The next round of installation uses the lock file, so cache is unnecessary
@sonarcloud
Copy link

sonarcloud bot commented Sep 14, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@juhoinkinen juhoinkinen changed the title Remove Poetry cache after the first round of installation in Docker build Remove Poetry cache from Docker image Sep 14, 2022
@codecov
Copy link

codecov bot commented Sep 14, 2022

Codecov Report

Base: 99.61% // Head: 99.61% // No change to project coverage 👍

Coverage data is based on head (928a5a9) compared to base (a158ba6).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #622   +/-   ##
=======================================
  Coverage   99.61%   99.61%           
=======================================
  Files          87       87           
  Lines        6038     6038           
=======================================
  Hits         6015     6015           
  Misses         23       23           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@juhoinkinen juhoinkinen merged commit a7a283c into master Sep 14, 2022
@juhoinkinen juhoinkinen deleted the docker-remove-poetry-cache branch September 14, 2022 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant