Caching PNPM Modules in Docker Builds in GitHub Actions

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • You can use reproducible-containers/buildkit-cache-dance to reuse cached files in your Docker build and an action like tespkg/actions-cache or actions/cache to persist the cache externally. See GitHub repo for an example setup.

  • buildkit

    concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit

  • The currently proposed solution is to allow Docker to bind the cache directory in the build to a directory on the host. This way the cache could be persisted externally. However, this issue has been opened for almost 4 years (May 27, 2020) with no clear answer as to whether it'll be implemented any time soon.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • buildkit-cache-dance

    Save `RUN --mount=type=cache` caches on GitHub Actions ( Forked from https://github.com/overmindtech/buildkit-cache-dance )

  • This is where the reproducible-containers/buildkit-cache-dance GitHub Action comes to the rescue! This Action is able to extract the files from the Docker build so they can be persisted on an external storage like S3 and is the approach recommended on the official Docker documentation.

  • actions-cache

    Cache to S3 storage with official actions/cache@v2 fallback

  • tespkg/actions-cache: Cache to S3 storage with official actions/cache@v2 fallback

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • ARM vs x86 em Docker

    1 project | dev.to | 5 Apr 2024
  • Show HN: Dockerfile Explorer

    1 project | news.ycombinator.com | 28 Nov 2023
  • Frequent Docker BuildKit cache misses with w/ multi-stage and docker-container

    1 project | /r/docker | 11 Jul 2023
  • A Panic in BuildKit: an Open Source Journey

    1 project | /r/golang | 4 Jul 2023
  • Is it possible to copy files from a manifest in Dockerfile?

    1 project | /r/docker | 11 May 2023