Skip to content

Commit

Permalink
Merge pull request #16 from rails/activestorage-feature
Browse files Browse the repository at this point in the history
Create feature for activestorage dependencies
  • Loading branch information
andrewn617 authored Apr 2, 2024
2 parents bd5e41b + bf5462b commit 1d3e513
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
23 changes: 23 additions & 0 deletions features/activestorage/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Active Storage

Installs libvips, ffmpeg and poppler-utils which are required to use Active Storage for Rails apps.

## Example Usage

```json
"features": {
"ghcr.io/rails/devcontainer/features/activestorage": {}
}
```

## Options

## Customizations

### VS Code Extensions

## OS Support

This Feature should work on recent versions of Debian/Ubuntu-based distributions with the `apt` package manager installed.

`bash` is required to execute the `install.sh` script.
6 changes: 6 additions & 0 deletions features/activestorage/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"id": "activestorage",
"version": "0.1.0",
"name": "Active Storage",
"description": "Installs utilities needed for Rails Active Storage"
}
11 changes: 11 additions & 0 deletions features/activestorage/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apt-get update -qq && \
apt-get install --no-install-recommends -y \
libvips \
# For video thumbnails
ffmpeg \
# For pdf thumbnails. If you want to use mupdf instead of poppler,
# you can install the following packages instead:
# mupdf mupdf-tools
poppler-utils

rm -rf /var/lib/apt/lists/*

0 comments on commit 1d3e513

Please sign in to comment.