Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile issue, docker doesn't start at all #164

Open
cuongtran-6618 opened this issue Aug 1, 2021 · 0 comments
Open

Dockerfile issue, docker doesn't start at all #164

cuongtran-6618 opened this issue Aug 1, 2021 · 0 comments
Assignees

Comments

@cuongtran-6618
Copy link

System:

macOS Big Sur 11.4
Docker desktop 3.5.1
Step to reproduce:
I following the instruction on this page: https://docs.phalcon.io/4.0/en/tutorial-vokuro#docker
I cloned vokuro repo to my local, go to the root folder, then run the combine command

$ docker build -t phalcon-tutorial-vokuro -f docker/Dockerfile .

it failed on the last step, below is the full description of my terminal.

Building 26.1s (8/8) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 35B 0.0s
=> [internal] load metadata for docker.io/library/php:7.4-cli 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 11.74kB 0.0s
=> [1/4] FROM docker.io/library/php:7.4-cli 0.0s
=> CACHED [2/4] ADD . /code 0.0s
=> CACHED [3/4] WORKDIR /code 0.0s

=> ERROR [4/4] RUN apt update && curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | bash && apt update -y && apt install php7.4-phalcon && docker-php-ext-install opcache pdo_mysql mysqli 1> /dev/null && print 25.9s

[4/4] RUN apt update && curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | bash && apt update -y && apt install php7.4-phalcon && docker-php-ext-install opcache pdo_mysql mysqli 1> /dev/null && printf "\n" | pecl install --force psr 1> /dev/null && docker-php-ext-enable psr && docker-php-ext-enable phalcon && php -m | grep -i "opcache|mysql|phalcon|psr|pdo|mbstring" && mv /code/.env.example /code/.env && apt-get autoremove -y && apt-get autoclean -y && apt-get clean -y && rm -rf /tmp/* /var/tmp/* && find /var/cache/apt/archives /var/lib/apt/lists /var/cache -not -name lock -type f -delete && find /var/log -type f | while read f; do echo -n '' > ${f}; done:
#8 0.284
#8 0.284 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#8 0.284
#8 0.419 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]
#8 0.424 Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
#8 0.482 Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
#8 0.599 Get:4 http://security.debian.org/debian-security buster/updates/main amd64 Packages [298 kB]
#8 0.724 Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB]
#8 1.431 Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [15.2 kB]
#8 2.465 Fetched 8458 kB in 2s (3960 kB/s)
#8 2.465 Reading package lists...
#8 3.155 Building dependency tree...
#8 3.272 Reading state information...
#8 3.287 4 packages can be upgraded. Run 'apt list --upgradable' to see them.
#8 4.565 Detected operating system as debian/10.
#8 4.565 Checking for curl...
#8 4.565 Detected curl...
#8 4.566 Checking for gpg...
#8 4.566 Installing gnupg for GPG verification...
#8 4.588 Reading package lists...
#8 5.224 Building dependency tree...
#8 5.355 Reading state information...
#8 5.516 The following additional packages will be installed:
#8 5.517 dirmngr gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server
#8 5.519 gpgconf gpgsm libassuan0 libksba8 libnpth0 libreadline7 pinentry-curses
#8 5.519 readline-common
#8 5.521 Suggested packages:
#8 5.521 dbus-user-session libpam-systemd pinentry-gnome3 tor parcimonie xloadimage
#8 5.521 scdaemon pinentry-doc readline-doc
#8 5.653 The following NEW packages will be installed:
#8 5.653 dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client
#8 5.654 gpg-wks-server gpgconf gpgsm libassuan0 libksba8 libnpth0 libreadline7
#8 5.655 pinentry-curses readline-common
#8 5.742 0 upgraded, 16 newly installed, 0 to remove and 4 not upgraded.
#8 5.742 Need to get 7310 kB of archives.
#8 5.742 After this operation, 15.4 MB of additional disk space will be used.
#8 5.742 Get:1 http://deb.debian.org/debian buster/main amd64 readline-common all 7.0-5 [70.6 kB]
#8 5.801 Get:2 http://deb.debian.org/debian buster/main amd64 libassuan0 amd64 2.5.2-1 [49.4 kB]
#8 5.807 Get:3 http://deb.debian.org/debian buster/main amd64 libreadline7 amd64 7.0-5 [151 kB]
#8 5.842 Get:4 http://deb.debian.org/debian buster/main amd64 gpgconf amd64 2.2.12-1+deb10u1 [510 kB]
#8 5.913 Get:5 http://deb.debian.org/debian buster/main amd64 libksba8 amd64 1.3.5-2 [99.7 kB]
#8 5.917 Get:6 http://deb.debian.org/debian buster/main amd64 libnpth0 amd64 1.6-1 [18.4 kB]
#8 5.919 Get:7 http://deb.debian.org/debian buster/main amd64 dirmngr amd64 2.2.12-1+deb10u1 [712 kB]
#8 5.975 Get:8 http://deb.debian.org/debian buster/main amd64 gnupg-l10n all 2.2.12-1+deb10u1 [1010 kB]
#8 6.062 Get:9 http://deb.debian.org/debian buster/main amd64 gnupg-utils amd64 2.2.12-1+deb10u1 [861 kB]
#8 6.132 Get:10 http://deb.debian.org/debian buster/main amd64 gpg amd64 2.2.12-1+deb10u1 [865 kB]
#8 6.202 Get:11 http://deb.debian.org/debian buster/main amd64 pinentry-curses amd64 1.1.0-2 [64.5 kB]
#8 6.206 Get:12 http://deb.debian.org/debian buster/main amd64 gpg-agent amd64 2.2.12-1+deb10u1 [617 kB]
#8 6.258 Get:13 http://deb.debian.org/debian buster/main amd64 gpg-wks-client amd64 2.2.12-1+deb10u1 [485 kB]
#8 6.302 Get:14 http://deb.debian.org/debian buster/main amd64 gpg-wks-server amd64 2.2.12-1+deb10u1 [478 kB]
#8 6.339 Get:15 http://deb.debian.org/debian buster/main amd64 gpgsm amd64 2.2.12-1+deb10u1 [604 kB]
#8 6.389 Get:16 http://deb.debian.org/debian buster/main amd64 gnupg all 2.2.12-1+deb10u1 [715 kB]
#8 6.605 debconf: delaying package configuration, since apt-utils is not installed
#8 6.628 Fetched 7310 kB in 1s (9434 kB/s)
#8 6.646 Selecting previously unselected package readline-common.
(Reading database ... 12690 files and directories currently installed.)
#8 6.666 Preparing to unpack .../00-readline-common_7.0-5_all.deb ...
#8 6.669 Unpacking readline-common (7.0-5) ...
#8 6.702 Selecting previously unselected package libassuan0:amd64.
#8 6.703 Preparing to unpack .../01-libassuan0_2.5.2-1_amd64.deb ...
#8 6.707 Unpacking libassuan0:amd64 (2.5.2-1) ...
#8 6.736 Selecting previously unselected package libreadline7:amd64.
#8 6.737 Preparing to unpack .../02-libreadline7_7.0-5_amd64.deb ...
#8 6.740 Unpacking libreadline7:amd64 (7.0-5) ...
#8 6.775 Selecting previously unselected package gpgconf.
#8 6.777 Preparing to unpack .../03-gpgconf_2.2.12-1+deb10u1_amd64.deb ...
#8 6.779 Unpacking gpgconf (2.2.12-1+deb10u1) ...
#8 7.113 Selecting previously unselected package libksba8:amd64.
#8 7.117 Preparing to unpack .../04-libksba8_1.3.5-2_amd64.deb ...
#8 7.123 Unpacking libksba8:amd64 (1.3.5-2) ...
#8 7.222 Selecting previously unselected package libnpth0:amd64.
#8 7.224 Preparing to unpack .../05-libnpth0_1.6-1_amd64.deb ...
#8 7.227 Unpacking libnpth0:amd64 (1.6-1) ...
#8 7.263 Selecting previously unselected package dirmngr.
#8 7.266 Preparing to unpack .../06-dirmngr_2.2.12-1+deb10u1_amd64.deb ...
#8 7.286 Unpacking dirmngr (2.2.12-1+deb10u1) ...
#8 7.446 Selecting previously unselected package gnupg-l10n.
#8 7.450 Preparing to unpack .../07-gnupg-l10n_2.2.12-1+deb10u1_all.deb ...
#8 7.456 Unpacking gnupg-l10n (2.2.12-1+deb10u1) ...
#8 7.607 Selecting previously unselected package gnupg-utils.
#8 7.609 Preparing to unpack .../08-gnupg-utils_2.2.12-1+deb10u1_amd64.deb ...
#8 7.614 Unpacking gnupg-utils (2.2.12-1+deb10u1) ...
#8 7.775 Selecting previously unselected package gpg.
#8 7.779 Preparing to unpack .../09-gpg_2.2.12-1+deb10u1_amd64.deb ...
#8 7.783 Unpacking gpg (2.2.12-1+deb10u1) ...
#8 7.900 Selecting previously unselected package pinentry-curses.
#8 7.904 Preparing to unpack .../10-pinentry-curses_1.1.0-2_amd64.deb ...
#8 7.907 Unpacking pinentry-curses (1.1.0-2) ...
#8 7.953 Selecting previously unselected package gpg-agent.
#8 7.955 Preparing to unpack .../11-gpg-agent_2.2.12-1+deb10u1_amd64.deb ...
#8 7.958 Unpacking gpg-agent (2.2.12-1+deb10u1) ...
#8 8.054 Selecting previously unselected package gpg-wks-client.
#8 8.059 Preparing to unpack .../12-gpg-wks-client_2.2.12-1+deb10u1_amd64.deb ...
#8 8.062 Unpacking gpg-wks-client (2.2.12-1+deb10u1) ...
#8 8.127 Selecting previously unselected package gpg-wks-server.
#8 8.130 Preparing to unpack .../13-gpg-wks-server_2.2.12-1+deb10u1_amd64.deb ...
#8 8.136 Unpacking gpg-wks-server (2.2.12-1+deb10u1) ...
#8 8.189 Selecting previously unselected package gpgsm.
#8 8.189 Preparing to unpack .../14-gpgsm_2.2.12-1+deb10u1_amd64.deb ...
#8 8.193 Unpacking gpgsm (2.2.12-1+deb10u1) ...
#8 8.266 Selecting previously unselected package gnupg.
#8 8.269 Preparing to unpack .../15-gnupg_2.2.12-1+deb10u1_all.deb ...
#8 8.272 Unpacking gnupg (2.2.12-1+deb10u1) ...
#8 8.379 Setting up libksba8:amd64 (1.3.5-2) ...
#8 8.387 Setting up libnpth0:amd64 (1.6-1) ...
#8 8.402 Setting up libassuan0:amd64 (2.5.2-1) ...
#8 8.411 Setting up gnupg-l10n (2.2.12-1+deb10u1) ...
#8 8.421 Setting up readline-common (7.0-5) ...
#8 8.438 Setting up libreadline7:amd64 (7.0-5) ...
#8 8.447 Setting up gnupg-utils (2.2.12-1+deb10u1) ...
#8 8.469 Setting up pinentry-curses (1.1.0-2) ...
#8 8.492 Setting up gpgconf (2.2.12-1+deb10u1) ...
#8 8.505 Setting up gpg (2.2.12-1+deb10u1) ...
#8 8.513 Setting up gpg-agent (2.2.12-1+deb10u1) ...
#8 8.538 Setting up gpgsm (2.2.12-1+deb10u1) ...
#8 8.547 Setting up dirmngr (2.2.12-1+deb10u1) ...
#8 8.588 Setting up gpg-wks-server (2.2.12-1+deb10u1) ...
#8 8.596 Setting up gpg-wks-client (2.2.12-1+deb10u1) ...
#8 8.605 Setting up gnupg (2.2.12-1+deb10u1) ...
#8 8.614 Processing triggers for libc-bin (2.28-10) ...
#8 8.670 Running apt-get update... done.
#8 9.962 Installing debian-archive-keyring which is needed for installing
#8 9.962 apt-transport-https on many Debian systems.
#8 11.07 Installing apt-transport-https... done.
#8 12.52 Installing /etc/apt/sources.list.d/phalcon_stable.list...done.
#8 13.68 Importing packagecloud gpg key... done.
#8 15.74 Running apt-get update... done.
#8 21.42
#8 21.42 The repository is setup! You can now install packages.
#8 21.43
#8 21.43 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#8 21.43
#8 21.55 Hit:1 http://deb.debian.org/debian buster InRelease
#8 21.56 Hit:2 http://security.debian.org/debian-security buster/updates InRelease
#8 21.57 Hit:3 http://deb.debian.org/debian buster-updates InRelease
#8 23.41 Hit:4 https://packagecloud.io/phalcon/stable/debian buster InRelease
#8 23.55 Reading package lists...
#8 24.48 Building dependency tree...
#8 24.62 Reading state information...
#8 24.64 4 packages can be upgraded. Run 'apt list --upgradable' to see them.
#8 24.64
#8 24.64 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#8 24.64
#8 24.65 Reading package lists...
#8 25.59 Building dependency tree...
#8 25.72 Reading state information...
#8 25.75 Package php7.4-phalcon is not available, but is referred to by another package.
#8 25.75 This may mean that the package is missing, has been obsoleted, or
#8 25.75 is only available from another source
#8 25.75
#8 25.83 E: Package 'php7.4-phalcon' has no installation candidate


executor failed running [/bin/sh -c apt update && curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | bash && apt update -y && apt install php7.4-phalcon && docker-php-ext-install opcache pdo_mysql mysqli 1> /dev/null && printf "\n" | pecl install --force psr 1> /dev/null && docker-php-ext-enable psr && docker-php-ext-enable phalcon && php -m | grep -i "opcache|mysql|phalcon|psr|pdo|mbstring" && mv /code/.env.example /code/.env && apt-get autoremove -y && apt-get autoclean -y && apt-get clean -y && rm -rf /tmp/* /var/tmp/* && find /var/cache/apt/archives /var/lib/apt/lists /var/cache -not -name lock -type f -delete && find /var/log -type f | while read f; do echo -n '' > ${f}; done]: exit code: 100

Actual result
Docker image is not created.

Expected result

It should go through without error
or different instruction if there is something different between MacOs and Linux based

@Jeckerson Jeckerson self-assigned this Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants