Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Tools): Adds the MySQL/MariaDB client #36

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {},
"./local-features/mysql-client": "latest",
"./local-features/subversion": "latest",
"./local-features/wp-cli": "latest",
"./local-features/php-cli-xdebug": "latest"
Expand All @@ -29,6 +30,7 @@
"ghcr.io/devcontainers/features/docker-in-docker",
"ghcr.io/devcontainers/features/git",
"ghcr.io/devcontainers/features/github-cli",
"./local-features/mysql-client",
"./local-features/subversion",
"./local-features/wp-cli",
"./local-features/php-cli-xdebug"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Id": "mysql-client",
"name": "Install the MySQL/MariaDB client",
"install": {
"app": "",
"file": "install.sh"
}
}
14 changes: 14 additions & 0 deletions .devcontainer/local-features/mysql-client/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -eux

export DEBIAN_FRONTEND=noninteractive

# Install the MySQL/MariaDB client.
if [ ! -f /usr/bin/mysql ]; then
echo "Installing MySQL/MariaDB client..."
sudo apt-get update -y --no-install-recommends
sudo apt-get install -y --no-install-recommends default-mysql-client
fi

echo "Done!"