Skip to content

Commit

Permalink
Update _kbarticles/2024-12-09-apt-buildpack-cache-issue.md
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Boyd <[email protected]>
Signed-off-by: ArsHaider <[email protected]>
  • Loading branch information
ArsHaider and markdboyd authored Dec 9, 2024
1 parent 583bfd3 commit 574f935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _kbarticles/2024-12-09-apt-buildpack-cache-issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Different buildpacks use this cache for different things. [System buildpacks]({%

### Potential cache issue with apt-buildpack

The potential issue involves the `/` directory disk allocation. The apt buildpack uses `/tmp` like other buildpacks. The `/` directory is allocated approximately 9% of the disk allocation. For most buildpacks, this is sufficient as all the possible packages that they could be installing is known with the only variable being the application code. The apt buildpack however, can install a vast number of large packages, suchas the AWS CLI. Depending on how many packages are installed and their individual size, the allotted 9% of disk space may not be sufficient.
The potential issue with the `apt-buildpack` cache involves the `/` directory disk allocation. The `apt-buildpack` uses `/tmp` for its cache like other buildpacks. In all buildpacks, the `/` directory is allocated approximately 9% of the disk allocation, meaning that the size of the `/tmp` subdirectory cannot exceed that disk allocation. For most buildpacks, this disk allocation is sufficient as all the possible packages that they could be installing is known with the only variable being the application code. However, the `apt-buildpack` can install an unknown number of packages of variable size, such as the AWS CLI. Depending on how many packages are installed and their individual size, the allotted 9% of disk space may not be sufficient, causing application staging to fail.

### How to address the issue

Expand Down

0 comments on commit 574f935

Please sign in to comment.