Skip to content

Commit

Permalink
Merge pull request #18 from rails/postgres-client-feature
Browse files Browse the repository at this point in the history
Create a feature for installing postgres client dependencies
  • Loading branch information
andrewn617 authored Apr 2, 2024
2 parents 12658ea + 9f7796b commit 911e367
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
24 changes: 24 additions & 0 deletions features/postgres-client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Postgres Client

Installs needed client-side dependencies for Rails apps using Postgres.

NOTE: This feature does not install the dependencies needed for the Postgres server. For that we recommend running a
service using the official [Postgres docker image](https://hub.docker.com/_/postgres).

## Example Usage

```json
"features": {
"ghcr.io/rails/devcontainer/features/postgres-client": {}
}
```

## 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/postgres-client/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"id": "postgres-client",
"version": "0.1.0",
"name": "Postgres Client",
"description": "Installs needed client-side dependencies for Rails apps using Postgres"
}
3 changes: 3 additions & 0 deletions features/postgres-client/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 libpq-dev

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

0 comments on commit 911e367

Please sign in to comment.