devcontainers.github.io icon indicating copy to clipboard operation
devcontainers.github.io copied to clipboard

Add DevContainer feature to install apt dependencies defined in an `Aptfile.dev` file

Open viktorianer opened this issue 9 months ago • 1 comments

Install apt dependencies defined in an Aptfile.dev file. This feature is inspired by the approach found in heroku-buildpack-apt and Aptfile Buildpack on App Platform. It simplifies the process of managing and installing apt packages required for a development environment by specifying them in one file.

Additional Information:

Based on the approach found in https://github.com/heroku/heroku-buildpack-apt and https://docs.digitalocean.com/products/app-platform/reference/buildpacks/aptfile/.

What type of PR is this?

  • [ ] Add a new dev container collection
  • [x] Update to an existing dev container collection
  • [ ] Documentation/spec update
  • [ ] Other containers.dev site update (UX, layout, etc)

Related Issues

  • Related Issue https://github.com/devcontainers/features/pull/1136

Description

Usage:

To use the feature, include the following in your devcontainer.json:

{
  "features": {
    "ghcr.io/devcontainers/features/apt:1": {
      "devFile": "../Aptfile.dev"
    }
  }
}

Example Aptfile.dev

# Video thumbnails
ffmpeg
libvips

# PDF thumbnails
poppler-utils

# PostgreSQL
libpq-dev
postgresql-client

Collection checklist

If your PR contributes a new collection, please utilize this checklist:

  • [x] Collection name
  • [x] Maintainer name
  • [x] Maintainer contact link (i.e. link to a GitHub repo, email)
  • [x] Repository URL
  • [x] OCI Reference
  • [x] I acknowledge that this collection provides new functionality, distinct from the existing collections part of this index.

viktorianer avatar Jan 16 '25 13:01 viktorianer