kmchord9 / raspi_phpmyadmin

0 stars 0 forks source link

最新のphpmyadminのdockerイメージをビルドするとエラーになる #2

Open kmchord9 opened 2 years ago

kmchord9 commented 2 years ago
Step 11/15 : RUN set -ex;         savedAptMark="$(apt-mark showmanual)";         apt-get update;     apt-get install -y --no-install-recommends         gnupg         dirmngr     ;         export GNUPGHOME="$(mktemp -d)";     export GPGKEY="3D06A59ECE730EB71B511C17CE752F178259BD92";     curl -fsSL -o phpMyAdmin.tar.xz $URL;     curl -fsSL -o phpMyAdmin.tar.xz.asc $URL.asc;     echo "$SHA256 *phpMyAdmin.tar.xz" | sha256sum -c -;     gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$GPGKEY"         || gpg --batch --keyserver pgp.mit.edu --recv-keys "$GPGKEY"         || gpg --batch --keyserver keyserver.pgp.com --recv-keys "$GPGKEY"         || gpg --batch --keyserver keys.openpgp.org --recv-keys "$GPGKEY";     gpg --batch --verify phpMyAdmin.tar.xz.asc phpMyAdmin.tar.xz;     tar -xf phpMyAdmin.tar.xz -C /var/www/html --strip-components=1;     mkdir -p /var/www/html/tmp;     chown www-data:www-data /var/www/html/tmp;     gpgconf --kill all;     rm -r "$GNUPGHOME" phpMyAdmin.tar.xz phpMyAdmin.tar.xz.asc;     rm -r -v /var/www/html/setup/ /var/www/html/examples/ /var/www/html/js/src/ /var/www/html/templates/test/ /var/www/html/babel.config.json /var/www/html/doc/html/_sources/ /var/www/html/RELEASE-DATE-$VERSION /var/www/html/CONTRIBUTING.md;     grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php;     sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php;     grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php;     php -l /var/www/html/libraries/vendor_config.php;         apt-mark auto '.*' > /dev/null;     apt-mark manual $savedAptMark;     apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false;     rm -rf /var/lib/apt/lists/*
 ---> Running in 6383843a7a09
+ apt-mark showmanual
+ savedAptMark=apache2
autoconf
ca-certificates
curl
dpkg-dev
file
g++
gcc
libargon2-1
libbrotli1
libbsd0
libbz2-1.0
libc6
libc6-dev
libcom-err2
libcurl4
libffi7
libfreetype6
libgcc-s1
libgcrypt20
libgmp10
libgnutls30
libgpg-error0
libgssapi-krb5-2
libhogweed6
libicu67
libidn2-0
libjpeg62-turbo
libk5crypto3
libkeyutils1
libkrb5-3
libkrb5support0
libldap-2.4-2
liblzma5
libmd0
libnettle8
libnghttp2-14
libonig5
libp11-kit0
libpng16-16
libpsl5
libreadline8
librtmp1
libsasl2-2
libsodium23
libsqlite3-0
libssh2-1
libssl1.1
libstdc++6
libtasn1-6
libtinfo6
libunistring2
libwebp6
libx11-6
libxau6
libxcb1
libxdmcp6
libxml2
libxpm4
libzip4
make
pkg-config
re2c
xz-utils
zlib1g
+ apt-get update
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main armhf Packages [148 kB]
Get:5 http://deb.debian.org/debian bullseye/main armhf Packages [7944 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main armhf Packages [2604 B]
Fetched 8295 kB in 4s (2097 kB/s)
Reading package lists...
+ apt-get install -y --no-install-recommends gnupg dirmngr
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf
  gpgsm libassuan0 libksba8 libnpth0 pinentry-curses
Suggested packages:
  dbus-user-session libpam-systemd pinentry-gnome3 tor parcimonie xloadimage
  scdaemon pinentry-doc
The following NEW packages will be installed:
  dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client
  gpg-wks-server gpgconf gpgsm libassuan0 libksba8 libnpth0 pinentry-curses
0 upgraded, 14 newly installed, 0 to remove and 4 not upgraded.
Need to get 7354 kB of archives.
After this operation, 13.6 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main armhf libassuan0 armhf 2.5.3-7.1 [44.2 kB]
Get:2 http://deb.debian.org/debian bullseye/main armhf gpgconf armhf 2.2.27-2+deb11u1 [532 kB]
Get:3 http://deb.debian.org/debian bullseye/main armhf libksba8 armhf 1.5.0-3 [105 kB]
Get:4 http://deb.debian.org/debian bullseye/main armhf libnpth0 armhf 1.6-3 [17.8 kB]
Get:5 http://deb.debian.org/debian bullseye/main armhf dirmngr armhf 2.2.27-2+deb11u1 [722 kB]
Get:6 http://deb.debian.org/debian bullseye/main armhf gnupg-l10n all 2.2.27-2+deb11u1 [1085 kB]
Get:7 http://deb.debian.org/debian bullseye/main armhf gnupg-utils armhf 2.2.27-2+deb11u1 [835 kB]
Get:8 http://deb.debian.org/debian bullseye/main armhf gpg armhf 2.2.27-2+deb11u1 [868 kB]
Get:9 http://deb.debian.org/debian bullseye/main armhf pinentry-curses armhf 1.1.0-4 [60.6 kB]
Get:10 http://deb.debian.org/debian bullseye/main armhf gpg-agent armhf 2.2.27-2+deb11u1 [630 kB]
Get:11 http://deb.debian.org/debian bullseye/main armhf gpg-wks-client armhf 2.2.27-2+deb11u1 [509 kB]
Get:12 http://deb.debian.org/debian bullseye/main armhf gpg-wks-server armhf 2.2.27-2+deb11u1 [503 kB]
Get:13 http://deb.debian.org/debian bullseye/main armhf gpgsm armhf 2.2.27-2+deb11u1 [617 kB]
Get:14 http://deb.debian.org/debian bullseye/main armhf gnupg all 2.2.27-2+deb11u1 [825 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 7354 kB in 1s (7609 kB/s)
Selecting previously unselected package libassuan0:armhf.
(Reading database ... 14157 files and directories currently installed.)
Preparing to unpack .../00-libassuan0_2.5.3-7.1_armhf.deb ...
Unpacking libassuan0:armhf (2.5.3-7.1) ...
Selecting previously unselected package gpgconf.
Preparing to unpack .../01-gpgconf_2.2.27-2+deb11u1_armhf.deb ...
Unpacking gpgconf (2.2.27-2+deb11u1) ...
Selecting previously unselected package libksba8:armhf.
Preparing to unpack .../02-libksba8_1.5.0-3_armhf.deb ...
Unpacking libksba8:armhf (1.5.0-3) ...
Selecting previously unselected package libnpth0:armhf.
Preparing to unpack .../03-libnpth0_1.6-3_armhf.deb ...
Unpacking libnpth0:armhf (1.6-3) ...
Selecting previously unselected package dirmngr.
Preparing to unpack .../04-dirmngr_2.2.27-2+deb11u1_armhf.deb ...
Unpacking dirmngr (2.2.27-2+deb11u1) ...
Selecting previously unselected package gnupg-l10n.
Preparing to unpack .../05-gnupg-l10n_2.2.27-2+deb11u1_all.deb ...
Unpacking gnupg-l10n (2.2.27-2+deb11u1) ...
Selecting previously unselected package gnupg-utils.
Preparing to unpack .../06-gnupg-utils_2.2.27-2+deb11u1_armhf.deb ...
Unpacking gnupg-utils (2.2.27-2+deb11u1) ...
Selecting previously unselected package gpg.
Preparing to unpack .../07-gpg_2.2.27-2+deb11u1_armhf.deb ...
Unpacking gpg (2.2.27-2+deb11u1) ...
Selecting previously unselected package pinentry-curses.
Preparing to unpack .../08-pinentry-curses_1.1.0-4_armhf.deb ...
Unpacking pinentry-curses (1.1.0-4) ...
Selecting previously unselected package gpg-agent.
Preparing to unpack .../09-gpg-agent_2.2.27-2+deb11u1_armhf.deb ...
Unpacking gpg-agent (2.2.27-2+deb11u1) ...
Selecting previously unselected package gpg-wks-client.
Preparing to unpack .../10-gpg-wks-client_2.2.27-2+deb11u1_armhf.deb ...
Unpacking gpg-wks-client (2.2.27-2+deb11u1) ...
Selecting previously unselected package gpg-wks-server.
Preparing to unpack .../11-gpg-wks-server_2.2.27-2+deb11u1_armhf.deb ...
Unpacking gpg-wks-server (2.2.27-2+deb11u1) ...
Selecting previously unselected package gpgsm.
Preparing to unpack .../12-gpgsm_2.2.27-2+deb11u1_armhf.deb ...
Unpacking gpgsm (2.2.27-2+deb11u1) ...
Selecting previously unselected package gnupg.
Preparing to unpack .../13-gnupg_2.2.27-2+deb11u1_all.deb ...
Unpacking gnupg (2.2.27-2+deb11u1) ...
Setting up libksba8:armhf (1.5.0-3) ...
Setting up libnpth0:armhf (1.6-3) ...
Setting up libassuan0:armhf (2.5.3-7.1) ...
Setting up gnupg-l10n (2.2.27-2+deb11u1) ...
Setting up gpgconf (2.2.27-2+deb11u1) ...
Setting up gpg (2.2.27-2+deb11u1) ...
Setting up gnupg-utils (2.2.27-2+deb11u1) ...
Setting up pinentry-curses (1.1.0-4) ...
Setting up gpg-agent (2.2.27-2+deb11u1) ...
Setting up gpgsm (2.2.27-2+deb11u1) ...
Setting up dirmngr (2.2.27-2+deb11u1) ...
Setting up gpg-wks-server (2.2.27-2+deb11u1) ...
Setting up gpg-wks-client (2.2.27-2+deb11u1) ...
Setting up gnupg (2.2.27-2+deb11u1) ...
Processing triggers for libc-bin (2.31-13+deb11u3) ...
+ mktemp -d
+ export GNUPGHOME=/tmp/tmp.lImBHL6kT3
+ export GPGKEY=3D06A59ECE730EB71B511C17CE752F178259BD92
+ curl -fsSL -o phpMyAdmin.tar.xz https://files.phpmyadmin.net/phpMyAdmin/5.2.0/phpMyAdmin-5.2.0-all-languages.tar.xz
+ curl -fsSL -o phpMyAdmin.tar.xz.asc https://files.phpmyadmin.net/phpMyAdmin/5.2.0/phpMyAdmin-5.2.0-all-languages.tar.xz.asc
+ echo 66da31ca295f06182ac3f2e6e96057dc824c459baedf4b29de6ed0d3be039230 *phpMyAdmin.tar.xz
+ sha256sum -c -
phpMyAdmin.tar.xz: OK
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3D06A59ECE730EB71B511C17CE752F178259BD92
gpg: keybox '/tmp/tmp.lImBHL6kT3/pubring.kbx' created
gpg: keyserver receive failed: Connection timed out
+ gpg --batch --keyserver pgp.mit.edu --recv-keys 3D06A59ECE730EB71B511C17CE752F178259BD92
gpg: keyserver receive failed: Connection timed out
+ gpg --batch --keyserver keyserver.pgp.com --recv-keys 3D06A59ECE730EB71B511C17CE752F178259BD92
gpg: keyserver receive failed: Connection timed out
+ gpg --batch --keyserver keys.openpgp.org --recv-keys 3D06A59ECE730EB71B511C17CE752F178259BD92
gpg: keyserver receive failed: Connection timed out
The command '/bin/sh -c set -ex;         savedAptMark="$(apt-mark showmanual)";         apt-get update;     apt-get install -y --no-install-recommends         gnupg         dirmngr     ;         export GNUPGHOME="$(mktemp -d)";     export GPGKEY="3D06A59ECE730EB71B511C17CE752F178259BD92";     curl -fsSL -o phpMyAdmin.tar.xz $URL;     curl -fsSL -o phpMyAdmin.tar.xz.asc $URL.asc;     echo "$SHA256 *phpMyAdmin.tar.xz" | sha256sum -c -;     gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$GPGKEY"         || gpg --batch --keyserver pgp.mit.edu --recv-keys "$GPGKEY"         || gpg --batch --keyserver keyserver.pgp.com --recv-keys "$GPGKEY"         || gpg --batch --keyserver keys.openpgp.org --recv-keys "$GPGKEY";     gpg --batch --verify phpMyAdmin.tar.xz.asc phpMyAdmin.tar.xz;     tar -xf phpMyAdmin.tar.xz -C /var/www/html --strip-components=1;     mkdir -p /var/www/html/tmp;     chown www-data:www-data /var/www/html/tmp;     gpgconf --kill all;     rm -r "$GNUPGHOME" phpMyAdmin.tar.xz phpMyAdmin.tar.xz.asc;     rm -r -v /var/www/html/setup/ /var/www/html/examples/ /var/www/html/js/src/ /var/www/html/templates/test/ /var/www/html/babel.config.json /var/www/html/doc/html/_sources/ /var/www/html/RELEASE-DATE-$VERSION /var/www/html/CONTRIBUTING.md;     grep -q -F "'configFile' => ROOT_PATH . 'config.inc.php'," /var/www/html/libraries/vendor_config.php;     sed -i "s@'configFile' => .*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /var/www/html/libraries/vendor_config.php;     grep -q -F "'configFile' => '/etc/phpmyadmin/config.inc.php'," /var/www/html/libraries/vendor_config.php;     php -l /var/www/html/libraries/vendor_config.php;         apt-mark auto '.*' > /dev/null;     apt-mark manual $savedAptMark;     apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false;     rm -rf /var/lib/apt/lists/*' returned a non-zero code: 2
kmchord9 commented 2 years ago

使用したDockerfile

kmchord9 commented 2 years ago

keyserverでtime out になっている。 公式のDocker Engine install 手順道理やると keyserver timed out がでて辛い

kmchord9 commented 2 years ago
Step 12/15 : COPY config.inc.php /etc/phpmyadmin/config.inc.php
COPY failed: file not found in build context or excluded by .dockerignore: stat config.inc.php: file does not exist
kmchord9 commented 2 years ago

https://github.com/phpmyadmin/docker/blob/326191915b3502f19b331f6961581bfd2f858531/config.inc.php このファイルをローカルに置く

kmchord9 commented 2 years ago
Step 13/15 : COPY docker-entrypoint.sh /docker-entrypoint.sh
COPY failed: file not found in build context or excluded by .dockerignore: stat docker-entrypoint.sh: file does not exist
kmchord9 commented 2 years ago

https://github.com/phpmyadmin/docker/blob/326191915b3502f19b331f6961581bfd2f858531/docker-entrypoint.sh このファイルをローカルに置く