Skip to content

Use persistent storage for containerbase binaries #3883

@Gabriel-Ladzaretti

Description

@Gabriel-Ladzaretti

Currently the containerbase tmp dir is /tmp/containerbase.

export CONTAINERBASE_TMP_DIR=/tmp/containerbase

This affects execution duration for micro vms that use a rootfs based on containerbase and run Renovate, as this directory is deleted at boot time.
As per the Linux Foundation: Filesystem Hierarchy Standard:

Although data stored in /tmp may be deleted in a site-specific manner, it is recommended that files and directories located in /tmp be deleted whenever the system is booted.1

A suggested alternative location could be /var/tmp as it is preserved between boots.

The /var/tmp directory is made available for programs that require temporary files or directories that are preserved between system reboots. Therefore, data stored in /var/tmp is more persistent than data in /tmp.2

This change alone will improve boot timesruntime duration by half a second per Renovate job. given the daily throughput, this improvement adds up significantly.

Footnotes

  1. https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s18.html

  2. https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s15.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingBreaking change, requires major version bumppriority-3-normalDefault priority, "should be done" but isn't prioritised ahead of othersstatus:requirementsFull requirements are not yet known, so implementation should not be startedtype:featureFeature (new functionality)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions