Skip to content

Commit

Permalink
Fix MySQL package installation for the multi-process image
Browse files Browse the repository at this point in the history
- Drop the use of apt-key which is deprecated and removed in the next Ubuntu release
- Import the old and new keys for MySQL packages
  https://dev.mysql.com/doc/refman/8.0/en/checking-gpg-signature.html
  https://dev.mysql.com/doc/refman/5.7/en/checking-gpg-signature.html
  • Loading branch information
knu committed May 25, 2023
1 parent 2a04d2b commit bf0c72d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/multi-process/scripts/standalone-packages
Expand Up @@ -5,8 +5,9 @@ export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y gnupg

echo "deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-5.7" > /etc/apt/sources.list.d/mysql.list
apt-key adv --keyserver pgp.mit.edu --recv-keys 3A79BD29
mkdir -m700 $HOME/.gnupg
gpg --no-default-keyring --keyring /usr/share/keyrings/mysql-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 5072E1F5 3A79BD29
echo "deb [signed-by=/usr/share/keyrings/mysql-keyring.gpg] http://repo.mysql.com/apt/ubuntu/ bionic mysql-5.7" > /etc/apt/sources.list.d/mysql.list
apt-get update

apt-get install -y --allow-downgrades python3-pip mysql-server supervisor \
Expand Down

0 comments on commit bf0c72d

Please sign in to comment.