Potrzebny by mi był taki pakiet apache2.4, php7.0, php7.0-intl dla debiana jessie. W Dockerfile jest coś takiego
Czyli widać, jaki image jest pobierany. Kiedy dodaję w Dockerfile RUN apt install php7.0-intl, otrzymuję komunikat, że nie można znaleźć tego rozszerzenia. Jak byście szukali rozwiązania?
FROM php:7.0-apache
https://discuss.circleci.com/t/how-to-install-php7-0-intl-extension-for-php7-0/16144/4
Kiszka
---> Running in ad02e36f020a deb <a href="http://security.debian.org/debian-security" target="_blank">http://security.debian.org/debian-security</a> jessie/updates main deb <a href="http://ftp.de.debian.org/debian" target="_blank">http://ftp.de.debian.org/debian</a> jessie main deb <a href="http://packages.dotdeb.org" target="_blank">http://packages.dotdeb.org</a> jessie all deb-src <a href="http://packages.dotdeb.org" target="_blank">http://packages.dotdeb.org</a> jessie all deb <a href="http://deb.debian.org/debian" target="_blank">http://deb.debian.org/debian</a> jessie main deb <a href="http://deb.debian.org/debian" target="_blank">http://deb.debian.org/debian</a> jessie-updates main deb <a href="http://security.debian.org" target="_blank">http://security.debian.org</a> jessie/updates main deb <a href="http://security.debian.org/debian-security" target="_blank">http://security.debian.org/debian-security</a> jessie/updates main deb <a href="http://ftp.de.debian.org/debian" target="_blank">http://ftp.de.debian.org/debian</a> jessie main deb <a href="http://packages.dotdeb.org" target="_blank">http://packages.dotdeb.org</a> jessie all deb-src <a href="http://packages.dotdeb.org" target="_blank">http://packages.dotdeb.org</a> jessie all gpg: directory `/root/.gnupg' created gpg: new configuration file `/root/.gnupg/gpg.conf' created gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run gpg: keyring `/root/.gnupg/secring.gpg' created gpg: keyring `/root/.gnupg/pubring.gpg' created gpg: requesting key 89DF5277 from hkp server keys.gnupg.net gpg: /root/.gnupg/trustdb.gpg: trustdb created gpg: key 89DF5277: public key "Guillaume Plessis <gui@dotdeb.org>" imported gpg: no ultimately trusted keys found gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) OK OK Get:1 <a href="http://packages.dotdeb.org" target="_blank">http://packages.dotdeb.org</a> jessie InRelease [9871 B] Get:2 <a href="http://security.debian.org" target="_blank">http://security.debian.org</a> jessie/updates InRelease [63.1 kB] Get:3 <a href="http://security.debian.org" target="_blank">http://security.debian.org</a> jessie/updates InRelease [63.1 kB] Ign <a href="http://ftp.de.debian.org" target="_blank">http://ftp.de.debian.org</a> jessie InRelease Get:4 <a href="http://ftp.de.debian.org" target="_blank">http://ftp.de.debian.org</a> jessie Release.gpg [2434 B] Get:5 <a href="http://packages.dotdeb.org" target="_blank">http://packages.dotdeb.org</a> jessie/all Sources [48.3 kB] Get:6 <a href="http://ftp.de.debian.org" target="_blank">http://ftp.de.debian.org</a> jessie Release [148 kB] Ign <a href="http://deb.debian.org" target="_blank">http://deb.debian.org</a> jessie InRelease Get:7 <a href="http://deb.debian.org" target="_blank">http://deb.debian.org</a> jessie-updates InRelease [145 kB] Get:8 <a href="http://packages.dotdeb.org" target="_blank">http://packages.dotdeb.org</a> jessie/all amd64 Packages [261 kB] Get:9 <a href="http://security.debian.org" target="_blank">http://security.debian.org</a> jessie/updates/main amd64 Packages [608 kB] Get:10 <a href="http://ftp.de.debian.org" target="_blank">http://ftp.de.debian.org</a> jessie/main amd64 Packages [9064 kB] Get:11 <a href="http://deb.debian.org" target="_blank">http://deb.debian.org</a> jessie Release.gpg [2434 B] Get:12 <a href="http://deb.debian.org" target="_blank">http://deb.debian.org</a> jessie-updates/main amd64 Packages [23.1 kB] Get:13 <a href="http://deb.debian.org" target="_blank">http://deb.debian.org</a> jessie Release [148 kB] Get:14 <a href="http://security.debian.org" target="_blank">http://security.debian.org</a> jessie/updates/main amd64 Packages [608 kB] Get:15 <a href="http://deb.debian.org" target="_blank">http://deb.debian.org</a> jessie/main amd64 Packages [9064 kB] Fetched 20.3 MB in 1min 9s (290 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... Package php7.0-intl is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'php7.0-intl' has no installation candidate ERROR:
Super dzięki! docker-php-ext-install okazało się kluczem do rozwiązania. Jeśli idzie o apt update, to było na początku w Dockerfile, więc coś tam, coś tam kumam
Z ciekawości poeliminowałem nadmiar linii w Dockerfile metodą prób i błędów, i okazało się, że to kwestia 1 biblioteki, w przypadku tego imidżu:
FROM php:7.0-apache RUN apt-get update \ && apt-get install -y \ libicu-dev \ && docker-php-ext-install \ intl WORKDIR /var/www
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)