Hello,
I’m using CircleCI to build and push a LAMP stack Docker image. The image builds normally on my local environment, but when using CircleCI I get a connection timed out on several packages.
See the job, the Dockerfile and the difference between my local build and the distant build.
It seems to be a network issue, maybe CircleCI servers have been blacklisted by Fail2Ban ?
Pipeline:
orbs:
docker: circleci/docker@0.5.10
commands:
publish-image:
parameters:
gke_repo:
type: string
dockerfile:
type: string
additional-args:
type: string
default: ""
steps:
- checkout_with_cache
- attach_workspace:
at: .
- setup_remote_docker
- docker/check:
registry: gcr.io/<< parameters.gke_repo >>
- run: "docker pull gcr.io/<< parameters.gke_repo >>:caching-build || :"
- run:
command: |
docker build \
-t gcr.io/<< parameters.gke_repo >>:$CIRCLE_SHA1 \
-t gcr.io/<< parameters.gke_repo >>:caching-build \
--cache-from gcr.io/<< parameters.gke_repo >>:caching-build \
<< parameters.additional-args >> \
-f << parameters.dockerfile >> \
.
- run: docker push gcr.io/<< parameters.gke_repo >>:$CIRCLE_SHA1
- run: docker push gcr.io/<< parameters.gke_repo >>:caching-build
jobs:
publish-testing-image:
executor: docker/docker
steps:
- publish-image:
dockerfile: ./.testing-image/Dockerfile
gke_repo: myrepo/my/app
Dockerfile:
FROM ubuntu:xenial
# Install packages
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL C.UTF-8
RUN apt-get update && apt-get install -y software-properties-common supervisor wget ca-certificates curl mysql-server-5.7 memcached
RUN add-apt-repository ppa:ondrej/php && add-apt-repository ppa:ondrej/apache2 && apt-get update
RUN apt-get -y install apache2 libapache2-mod-php5.6 php5.6-mysql php5.6-memcache pwgen php5.6-mcrypt
[...]
ADD . /app
CMD ["/run.sh"]
Local build result
Summary
Step 5/32 : RUN add-apt-repository ppa:ondrej/php && add-apt-repository ppa:ondrej/apache2 && apt-get update
---> Running in 20ff1fe7f305
Co-installable PHP versions: PHP 5.6, PHP 7.x and most requested extensions are included. Only Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided. Don't ask for end-of-life PHP versions or Ubuntu release, they won't be provided.
Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa
You can get more information about the packages at https://deb.sury.org
BUGS&FEATURES: This PPA now has a issue tracker:
https://deb.sury.org/#bug-reporting
CAVEATS:
1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advise to add ppa:ondrej/nginx-mainline
or ppa:ondrej/nginx
PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/
WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:
# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
gpg: keyring `/tmp/tmpj633rvet/secring.gpg' created
gpg: keyring `/tmp/tmpj633rvet/pubring.gpg' created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpj633rvet/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
This branch follows latest Apache2 packages as maintained by the Debian Apache2 team with couple of compatibility patches on top.
It also includes some widely used Apache 2 modules (if you need some other feel free to send me a request).
BUGS&FEATURES: This PPA now has a issue tracker: https://deb.sury.org/#bug-reporting
PLEASE READ: If you like my work and want to give me a little motivation, please consider donating: https://deb.sury.org/#donate
More info: https://launchpad.net/~ondrej/+archive/ubuntu/apache2
gpg: keyring `/tmp/tmp8yklkh32/secring.gpg' created
gpg: keyring `/tmp/tmp8yklkh32/pubring.gpg' created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp8yklkh32/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:4 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial InRelease [23.8 kB]
Hit:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease [23.9 kB]
Get:7 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 Packages [15.4 kB]
Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages [63.2 kB]
Fetched 126 kB in 0s (161 kB/s)
Reading package lists...
Removing intermediate container 20ff1fe7f305
---> 5726f47d9505
Step 6/32 : RUN apt-get -y install apache2 libapache2-mod-php5.6 php5.6-mysql php5.6-memcache pwgen php5.6-mcrypt && echo "ServerName localhost" >> /etc/apache2/apache2.conf && curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v1.6.0/dbmate-linux-amd64 && chmod +x /usr/local/bin/dbmate
---> Running in eccc7f8c30a3
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1 libcurl3 libjansson4
liblua5.2-0 libmcrypt4 libnghttp2-14 libpcre3 libssl1.1 php-common
php5.6-cli php5.6-common php5.6-json php5.6-opcache php5.6-readline ssl-cert
tzdata
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser
php-pear libmcrypt-dev mcrypt openssl-blacklist
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils libapache2-mod-php5.6 libapr1
libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libbrotli1 libcurl3
libjansson4 liblua5.2-0 libmcrypt4 libnghttp2-14 libssl1.1 php-common
php-memcache php5.6-cli php5.6-common php5.6-json php5.6-mcrypt php5.6-mysql
php5.6-opcache php5.6-readline pwgen ssl-cert tzdata
The following packages will be upgraded:
libpcre3
1 upgraded, 28 newly installed, 0 to remove and 8 not upgraded.
Need to get 10.3 MB of archives.
After this operation, 33.1 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libpcre3 amd64 2:8.43-1+ubuntu16.04.1+deb.sury.org+1 [235 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 tzdata all 2019b-0ubuntu0.16.04 [168 kB]
Get:3 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libapr1 amd64 1.6.2-1+ubuntu16.04.1+deb.sury.org+2 [96.3 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libcurl3 amd64 7.47.0-1ubuntu2.13 [186 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libjansson4 amd64 2.7-3ubuntu0.1 [27.1 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/main amd64 liblua5.2-0 amd64 5.2.4-1ubuntu1 [106 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/universe amd64 libmcrypt4 amd64 2.5.8-3.3 [63.0 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/universe amd64 pwgen amd64 2.07-1.1ubuntu1 [15.6 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/main amd64 ssl-cert all 1.0.37 [16.9 kB]
Get:10 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libssl1.1 amd64 1.1.1c-1+ubuntu16.04.1+deb.sury.org+1 [1518 kB]
Get:11 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libaprutil1 amd64 1.6.0-2+ubuntu16.04.1+deb.sury.org+2 [89.6 kB]
Get:12 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.0-2+ubuntu16.04.1+deb.sury.org+2 [16.9 kB]
Get:13 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libaprutil1-ldap amd64 1.6.0-2+ubuntu16.04.1+deb.sury.org+2 [15.0 kB]
Get:14 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libbrotli1 amd64 1.0.5-1+ubuntu16.04.1+deb.sury.org+2 [271 kB]
Get:15 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libnghttp2-14 amd64 1.29.0-1+ubuntu16.04.1+deb.sury.org+1 [79.8 kB]
Get:16 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 apache2-bin amd64 2.4.39-1+ubuntu16.04.1+deb.sury.org+1 [1206 kB]
Get:17 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 apache2-data all 2.4.39-1+ubuntu16.04.1+deb.sury.org+1 [167 kB]
Get:18 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 apache2-utils amd64 2.4.39-1+ubuntu16.04.1+deb.sury.org+1 [147 kB]
Get:19 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 apache2 amd64 2.4.39-1+ubuntu16.04.1+deb.sury.org+1 [162 kB]
Get:20 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-common all 2:69+ubuntu16.04.1+deb.sury.org+2+php7.3 [15.0 kB]
Get:21 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php5.6-common amd64 5.6.40-8+ubuntu16.04.1+deb.sury.org+1 [2762 kB]
Get:22 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php5.6-json amd64 5.6.40-8+ubuntu16.04.1+deb.sury.org+1 [17.2 kB]
Get:23 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php5.6-opcache amd64 5.6.40-8+ubuntu16.04.1+deb.sury.org+1 [62.2 kB]
Get:24 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php5.6-readline amd64 5.6.40-8+ubuntu16.04.1+deb.sury.org+1 [13.2 kB]
Get:25 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php5.6-cli amd64 5.6.40-8+ubuntu16.04.1+deb.sury.org+1 [1285 kB]
Get:26 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libapache2-mod-php5.6 amd64 5.6.40-8+ubuntu16.04.1+deb.sury.org+1 [1242 kB]
Get:27 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php-memcache amd64 3.0.9~20170802.e702b5f-1+ubuntu16.04.1+deb.sury.org+10 [112 kB]
Get:28 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php5.6-mcrypt amd64 5.6.40-8+ubuntu16.04.1+deb.sury.org+1 [15.5 kB]
Get:29 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php5.6-mysql amd64 5.6.40-8+ubuntu16.04.1+deb.sury.org+1 [140 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 10.3 MB in 3s (3244 kB/s)
(Reading database ... 11360 files and directories currently installed.)
Preparing to unpack .../libpcre3_2%3a8.43-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libpcre3:amd64 (2:8.43-1+ubuntu16.04.1+deb.sury.org+1) over (2:8.38-3.1) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Setting up libpcre3:amd64 (2:8.43-1+ubuntu16.04.1+deb.sury.org+1) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Selecting previously unselected package tzdata.
(Reading database ... 11360 files and directories currently installed.)
Preparing to unpack .../tzdata_2019b-0ubuntu0.16.04_all.deb ...
Unpacking tzdata (2019b-0ubuntu0.16.04) ...
Selecting previously unselected package libapr1:amd64.
Preparing to unpack .../libapr1_1.6.2-1+ubuntu16.04.1+deb.sury.org+2_amd64.deb ...
Unpacking libapr1:amd64 (1.6.2-1+ubuntu16.04.1+deb.sury.org+2) ...
Selecting previously unselected package libssl1.1:amd64.
Preparing to unpack .../libssl1.1_1.1.1c-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1c-1+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../libaprutil1_1.6.0-2+ubuntu16.04.1+deb.sury.org+2_amd64.deb ...
Unpacking libaprutil1:amd64 (1.6.0-2+ubuntu16.04.1+deb.sury.org+2) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../libaprutil1-dbd-sqlite3_1.6.0-2+ubuntu16.04.1+deb.sury.org+2_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.0-2+ubuntu16.04.1+deb.sury.org+2) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../libaprutil1-ldap_1.6.0-2+ubuntu16.04.1+deb.sury.org+2_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.6.0-2+ubuntu16.04.1+deb.sury.org+2) ...
Selecting previously unselected package libbrotli1:amd64.
Preparing to unpack .../libbrotli1_1.0.5-1+ubuntu16.04.1+deb.sury.org+2_amd64.deb ...
Unpacking libbrotli1:amd64 (1.0.5-1+ubuntu16.04.1+deb.sury.org+2) ...
Selecting previously unselected package libcurl3:amd64.
Preparing to unpack .../libcurl3_7.47.0-1ubuntu2.13_amd64.deb ...
Unpacking libcurl3:amd64 (7.47.0-1ubuntu2.13) ...
Selecting previously unselected package libjansson4:amd64.
Preparing to unpack .../libjansson4_2.7-3ubuntu0.1_amd64.deb ...
Unpacking libjansson4:amd64 (2.7-3ubuntu0.1) ...
Selecting previously unselected package liblua5.2-0:amd64.
Preparing to unpack .../liblua5.2-0_5.2.4-1ubuntu1_amd64.deb ...
Unpacking liblua5.2-0:amd64 (5.2.4-1ubuntu1) ...
Selecting previously unselected package libnghttp2-14:amd64.
Preparing to unpack .../libnghttp2-14_1.29.0-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libnghttp2-14:amd64 (1.29.0-1+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../apache2-bin_2.4.39-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking apache2-bin (2.4.39-1+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.39-1+ubuntu16.04.1+deb.sury.org+1_all.deb ...
Unpacking apache2-data (2.4.39-1+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../apache2-utils_2.4.39-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking apache2-utils (2.4.39-1+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.39-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking apache2 (2.4.39-1+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package php-common.
Preparing to unpack .../php-common_2%3a69+ubuntu16.04.1+deb.sury.org+2+php7.3_all.deb ...
Unpacking php-common (2:69+ubuntu16.04.1+deb.sury.org+2+php7.3) ...
Selecting previously unselected package php5.6-common.
Preparing to unpack .../php5.6-common_5.6.40-8+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php5.6-common (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package php5.6-json.
Preparing to unpack .../php5.6-json_5.6.40-8+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php5.6-json (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package php5.6-opcache.
Preparing to unpack .../php5.6-opcache_5.6.40-8+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php5.6-opcache (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package php5.6-readline.
Preparing to unpack .../php5.6-readline_5.6.40-8+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php5.6-readline (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package php5.6-cli.
Preparing to unpack .../php5.6-cli_5.6.40-8+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php5.6-cli (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package libapache2-mod-php5.6.
Preparing to unpack .../libapache2-mod-php5.6_5.6.40-8+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking libapache2-mod-php5.6 (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package libmcrypt4.
Preparing to unpack .../libmcrypt4_2.5.8-3.3_amd64.deb ...
Unpacking libmcrypt4 (2.5.8-3.3) ...
Selecting previously unselected package php-memcache.
Preparing to unpack .../php-memcache_3.0.9~20170802.e702b5f-1+ubuntu16.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php-memcache (3.0.9~20170802.e702b5f-1+ubuntu16.04.1+deb.sury.org+10) ...
Selecting previously unselected package php5.6-mcrypt.
Preparing to unpack .../php5.6-mcrypt_5.6.40-8+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php5.6-mcrypt (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package php5.6-mysql.
Preparing to unpack .../php5.6-mysql_5.6.40-8+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php5.6-mysql (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Selecting previously unselected package pwgen.
Preparing to unpack .../pwgen_2.07-1.1ubuntu1_amd64.deb ...
Unpacking pwgen (2.07-1.1ubuntu1) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../ssl-cert_1.0.37_all.deb ...
Unpacking ssl-cert (1.0.37) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for systemd (229-4ubuntu21.21) ...
Setting up tzdata (2019b-0ubuntu0.16.04) ...
Current default time zone: 'Etc/UTC'
Local time is now: Mon Jul 29 13:34:34 UTC 2019.
Universal Time is now: Mon Jul 29 13:34:34 UTC 2019.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
Setting up libapr1:amd64 (1.6.2-1+ubuntu16.04.1+deb.sury.org+2) ...
Setting up libssl1.1:amd64 (1.1.1c-1+ubuntu16.04.1+deb.sury.org+1) ...
Setting up libaprutil1:amd64 (1.6.0-2+ubuntu16.04.1+deb.sury.org+2) ...
Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.0-2+ubuntu16.04.1+deb.sury.org+2) ...
Setting up libaprutil1-ldap:amd64 (1.6.0-2+ubuntu16.04.1+deb.sury.org+2) ...
Setting up libbrotli1:amd64 (1.0.5-1+ubuntu16.04.1+deb.sury.org+2) ...
Setting up libcurl3:amd64 (7.47.0-1ubuntu2.13) ...
Setting up libjansson4:amd64 (2.7-3ubuntu0.1) ...
Setting up liblua5.2-0:amd64 (5.2.4-1ubuntu1) ...
Setting up libnghttp2-14:amd64 (1.29.0-1+ubuntu16.04.1+deb.sury.org+1) ...
Setting up apache2-bin (2.4.39-1+ubuntu16.04.1+deb.sury.org+1) ...
Setting up apache2-data (2.4.39-1+ubuntu16.04.1+deb.sury.org+1) ...
Setting up apache2-utils (2.4.39-1+ubuntu16.04.1+deb.sury.org+1) ...
Setting up apache2 (2.4.39-1+ubuntu16.04.1+deb.sury.org+1) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling module reqtimeout.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
insserv: warning: current start runlevel(s) (empty) of script `apache-htcacheclean' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `apache-htcacheclean' overrides LSB defaults (0 1 6).
Setting up php-common (2:69+ubuntu16.04.1+deb.sury.org+2+php7.3) ...
Setting up php5.6-common (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Creating config file /etc/php/5.6/mods-available/calendar.ini with new version
Creating config file /etc/php/5.6/mods-available/ctype.ini with new version
Creating config file /etc/php/5.6/mods-available/exif.ini with new version
Creating config file /etc/php/5.6/mods-available/fileinfo.ini with new version
Creating config file /etc/php/5.6/mods-available/ftp.ini with new version
Creating config file /etc/php/5.6/mods-available/gettext.ini with new version
Creating config file /etc/php/5.6/mods-available/iconv.ini with new version
Creating config file /etc/php/5.6/mods-available/pdo.ini with new version
Creating config file /etc/php/5.6/mods-available/phar.ini with new version
Creating config file /etc/php/5.6/mods-available/posix.ini with new version
Creating config file /etc/php/5.6/mods-available/shmop.ini with new version
Creating config file /etc/php/5.6/mods-available/sockets.ini with new version
Creating config file /etc/php/5.6/mods-available/sysvmsg.ini with new version
Creating config file /etc/php/5.6/mods-available/sysvsem.ini with new version
Creating config file /etc/php/5.6/mods-available/sysvshm.ini with new version
Creating config file /etc/php/5.6/mods-available/tokenizer.ini with new version
Setting up php5.6-json (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Creating config file /etc/php/5.6/mods-available/json.ini with new version
Setting up php5.6-opcache (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Creating config file /etc/php/5.6/mods-available/opcache.ini with new version
Setting up php5.6-readline (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Creating config file /etc/php/5.6/mods-available/readline.ini with new version
Setting up php5.6-cli (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
update-alternatives: using /usr/bin/php5.6 to provide /usr/bin/php (php) in auto mode
update-alternatives: using /usr/bin/phar5.6 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: using /usr/bin/phar.phar5.6 to provide /usr/bin/phar.phar (phar.phar) in auto mode
Creating config file /etc/php/5.6/cli/php.ini with new version
Setting up libapache2-mod-php5.6 (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Creating config file /etc/php/5.6/apache2/php.ini with new version
Module mpm_event disabled.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
apache2_invoke: Enable module php5.6
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up libmcrypt4 (2.5.8-3.3) ...
Setting up php-memcache (3.0.9~20170802.e702b5f-1+ubuntu16.04.1+deb.sury.org+10) ...
Setting up php5.6-mcrypt (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Creating config file /etc/php/5.6/mods-available/mcrypt.ini with new version
Setting up php5.6-mysql (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Creating config file /etc/php/5.6/mods-available/mysqlnd.ini with new version
Creating config file /etc/php/5.6/mods-available/mysqli.ini with new version
Creating config file /etc/php/5.6/mods-available/pdo_mysql.ini with new version
Creating config file /etc/php/5.6/mods-available/mysql.ini with new version
Setting up pwgen (2.07-1.1ubuntu1) ...
Setting up ssl-cert (1.0.37) ...
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for systemd (229-4ubuntu21.21) ...
Processing triggers for libapache2-mod-php5.6 (5.6.40-8+ubuntu16.04.1+deb.sury.org+1) ...
Removing intermediate container eccc7f8c30a3
Distant build result
Summary
Step 5/32 : RUN add-apt-repository ppa:ondrej/php && add-apt-repository ppa:ondrej/apache2 && apt-get update
—> Running in bedcadd55c54
Co-installable PHP versions: PHP 5.6, PHP 7.x and most requested extensions are included. Only Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided. Don’t ask for end-of-life PHP versions or Ubuntu release, they won’t be provided.
Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa
You can get more information about the packages at https://deb.sury.org
BUGS&FEATURES: This PPA now has a issue tracker:
https://deb.sury.org/#bug-reporting
CAVEATS:
1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advise to add ppa:ondrej/nginx-mainline
or ppa:ondrej/nginx
PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/
WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:
# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
More info: https://launchpad.net/~ondrej/+archive/ubuntu/php
gpg: keyring `/tmp/tmpvf9b4y37/secring.gpg' created
gpg: keyring `/tmp/tmpvf9b4y37/pubring.gpg' created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpvf9b4y37/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
This branch follows latest Apache2 packages as maintained by the Debian Apache2 team with couple of compatibility patches on top.
It also includes some widely used Apache 2 modules (if you need some other feel free to send me a request).
BUGS&FEATURES: This PPA now has a issue tracker: https://deb.sury.org/#bug-reporting
PLEASE READ: If you like my work and want to give me a little motivation, please consider donating: https://deb.sury.org/#donate
More info: https://launchpad.net/~ondrej/+archive/ubuntu/apache2
gpg: keyring `/tmp/tmpjacn6edh/secring.gpg' created
gpg: keyring `/tmp/tmpjacn6edh/pubring.gpg' created
gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpjacn6edh/trustdb.gpg: trustdb created
gpg: key E5267A6C: public key "Launchpad PPA for Ondřej Surý" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial InRelease [23.8 kB]
Hit:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease [23.9 kB]
Get:7 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 Packages [15.4 kB]
Ign:8 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages
Ign:8 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages
Ign:8 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages
Err:8 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages
Could not connect to ppa.launchpad.net:80 (91.189.95.83), connection timed out
Fetched 63.1 kB in 2min 0s (522 B/s)
Reading package lists...
W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/xenial/main/binary-amd64/Packages Could not connect to ppa.launchpad.net:80 (91.189.95.83), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
---> 8241266fd2ed
Removing intermediate container bedcadd55c54
Step 6/32 : RUN apt-get -y install apache2 libapache2-mod-php5.6 php5.6-mysql php5.6-memcache pwgen php5.6-mcrypt && echo "ServerName localhost" >> /etc/apache2/apache2.conf && curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v1.6.0/dbmate-linux-amd64 && chmod +x /usr/local/bin/dbmate
---> Running in 5136b61c23b9
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libapache2-mod-php5.6
E: Couldn't find any package by glob 'libapache2-mod-php5.6'
E: Couldn't find any package by regex 'libapache2-mod-php5.6'
E: Unable to locate package php5.6-mysql
E: Couldn't find any package by glob 'php5.6-mysql'
E: Couldn't find any package by regex 'php5.6-mysql'
E: Unable to locate package php5.6-memcache
E: Couldn't find any package by glob 'php5.6-memcache'
E: Couldn't find any package by regex 'php5.6-memcache'
E: Unable to locate package php5.6-mcrypt
E: Couldn't find any package by glob 'php5.6-mcrypt'
E: Couldn't find any package by regex 'php5.6-mcrypt'
The command '/bin/sh -c apt-get -y install apache2 libapache2-mod-php5.6 php5.6-mysql php5.6-memcache pwgen php5.6-mcrypt && echo "ServerName localhost" >> /etc/apache2/apache2.conf && curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v1.6.0/dbmate-linux-amd64 && chmod +x /usr/local/bin/dbmate' returned a non-zero code: 100
Exited with code 100