Skip to content

Commit

Permalink
Create a feature for mysql client dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewn617 committed Apr 2, 2024
1 parent 1fd391b commit 13c8ce7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
24 changes: 24 additions & 0 deletions features/mysql-client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# MySQL Client

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

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

## Example Usage

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

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

0 comments on commit 13c8ce7

Please sign in to comment.