Skip to content

Commit

Permalink
Merge pull request #17 from rails/mysql-client-feature
Browse files Browse the repository at this point in the history
Create a feature for mysql client dependencies
  • Loading branch information
andrewn617 authored Apr 2, 2024
2 parents 1d3e513 + 13c8ce7 commit 12658ea
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 12658ea

Please sign in to comment.