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

Switch to mysql-client #118

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
12 changes: 8 additions & 4 deletions php/scripts/packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup
echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache
echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf
export DEBIAN_FRONTEND=noninteractive

dpkg-reconfigure -f noninteractive tzdata \
# Debian doesn't include MySQL, so install its repo manually, see guide:
# https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#repo-qg-apt-repo-manual-setup
# Install MySQL's PGP key, allow for retry as MIT keyserver is often very slow
apt-key adv --keyserver pgp.mit.edu --recv-keys 5072E1F5 || apt-key adv --keyserver pgp.mit.edu --recv-keys 5072E1F5
echo deb http://repo.mysql.com/apt/debian/ `lsb_release -sc` mysql-8.0 > /etc/apt/sources.list.d/mysql.list
dpkg-reconfigure -f noninteractive tzdata \
&& apt-get update \
&& apt-get install -yq \
apt-transport-https \
Expand All @@ -28,7 +32,7 @@ export DEBIAN_FRONTEND=noninteractive
gnupg2 \
jq \
libc-client-dev \
mariadb-client \
mysql-client \
mongo-tools \
openssh-client \
python \
Expand All @@ -38,4 +42,4 @@ export DEBIAN_FRONTEND=noninteractive
unzip \
zip \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*