Skip to content

Commit

Permalink
Merge pull request #26 from rails/sqlite3
Browse files Browse the repository at this point in the history
Create SQLite3 feature
  • Loading branch information
andrewn617 authored May 6, 2024
2 parents fea3eea + 7598e55 commit aacb8ac
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
21 changes: 21 additions & 0 deletions features/sqlite3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# SQLite3

Installs needed dependencies for Rails apps using SQLite3.

## Example Usage

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

## Options

## Customizations

## 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/sqlite3/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"id": "sqlite3",
"version": "0.1.0",
"name": "SQLite3",
"description": "Installs needed dependencies for Rails apps using SQLite3"
}
3 changes: 3 additions & 0 deletions features/sqlite3/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
apt-get update -y && apt-get -y install --no-install-recommends pkg-config libsqlite3-dev sqlite3

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

0 comments on commit aacb8ac

Please sign in to comment.