From 7598e554089b8e263a4c28ef01ed42d2d9701205 Mon Sep 17 00:00:00 2001 From: Andrew Novoselac Date: Mon, 6 May 2024 17:15:03 -0400 Subject: [PATCH] Create SQLite3 feature --- features/sqlite3/README.md | 21 +++++++++++++++++++++ features/sqlite3/devcontainer-feature.json | 6 ++++++ features/sqlite3/install.sh | 3 +++ 3 files changed, 30 insertions(+) create mode 100644 features/sqlite3/README.md create mode 100644 features/sqlite3/devcontainer-feature.json create mode 100755 features/sqlite3/install.sh diff --git a/features/sqlite3/README.md b/features/sqlite3/README.md new file mode 100644 index 0000000..3ab4520 --- /dev/null +++ b/features/sqlite3/README.md @@ -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. diff --git a/features/sqlite3/devcontainer-feature.json b/features/sqlite3/devcontainer-feature.json new file mode 100644 index 0000000..c9bfddc --- /dev/null +++ b/features/sqlite3/devcontainer-feature.json @@ -0,0 +1,6 @@ +{ + "id": "sqlite3", + "version": "0.1.0", + "name": "SQLite3", + "description": "Installs needed dependencies for Rails apps using SQLite3" +} diff --git a/features/sqlite3/install.sh b/features/sqlite3/install.sh new file mode 100755 index 0000000..9c79959 --- /dev/null +++ b/features/sqlite3/install.sh @@ -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/*