-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #254 from infosiftr/trusted.gpg.d
Use "/etc/apt/trusted.gpg.d" instead of "apt-key adv"
- Loading branch information
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,14 @@ RUN mkdir /docker-entrypoint-initdb.d | |
# Data::Dumper | ||
RUN apt-get update && apt-get install -y perl pwgen --no-install-recommends && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN set -ex; \ | ||
# gpg: key 5072E1F5: public key "MySQL Release Engineering <[email protected]>" imported | ||
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5 | ||
key='A4A9406876FCBD3C456770C88C718D3B5072E1F5'; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ | ||
gpg --export "$key" > /etc/apt/trusted.gpg.d/mysql.gpg; \ | ||
rm -r "$GNUPGHOME"; \ | ||
apt-key list > /dev/null | ||
|
||
ENV MYSQL_MAJOR 5.6 | ||
ENV MYSQL_VERSION 5.6.35-1debian8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,14 @@ RUN mkdir /docker-entrypoint-initdb.d | |
# Data::Dumper | ||
RUN apt-get update && apt-get install -y perl pwgen --no-install-recommends && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN set -ex; \ | ||
# gpg: key 5072E1F5: public key "MySQL Release Engineering <[email protected]>" imported | ||
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5 | ||
key='A4A9406876FCBD3C456770C88C718D3B5072E1F5'; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ | ||
gpg --export "$key" > /etc/apt/trusted.gpg.d/mysql.gpg; \ | ||
rm -r "$GNUPGHOME"; \ | ||
apt-key list > /dev/null | ||
|
||
ENV MYSQL_MAJOR 5.7 | ||
ENV MYSQL_VERSION 5.7.17-1debian8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,14 @@ RUN mkdir /docker-entrypoint-initdb.d | |
# Data::Dumper | ||
RUN apt-get update && apt-get install -y perl pwgen --no-install-recommends && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN set -ex; \ | ||
# gpg: key 5072E1F5: public key "MySQL Release Engineering <[email protected]>" imported | ||
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5 | ||
key='A4A9406876FCBD3C456770C88C718D3B5072E1F5'; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key"; \ | ||
gpg --export "$key" > /etc/apt/trusted.gpg.d/mysql.gpg; \ | ||
rm -r "$GNUPGHOME"; \ | ||
apt-key list > /dev/null | ||
|
||
ENV MYSQL_MAJOR 8.0 | ||
ENV MYSQL_VERSION 8.0.0-dmr-1debian8 | ||
|