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

Issue with install Docker on Mac #163

Open
cuong-tran-solteq opened this issue Jul 7, 2021 · 0 comments
Open

Issue with install Docker on Mac #163

cuong-tran-solteq opened this issue Jul 7, 2021 · 0 comments

Comments

@cuong-tran-solteq
Copy link

cuong-tran-solteq commented Jul 7, 2021

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 resources/Dockerfile .

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

Building 2.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.8s
=> [internal] load build context 0.0s
=> => transferring context: 11.74kB 0.0s
=> [1/4] FROM docker.io/library/php:7.4-cli@sha256:841287b0b1df21e7193c797e7359371084ddb15b857a9b0b5f94b42fa3eed5ce 0.0s
=> CACHED [2/4] ADD . /code 0.0s
=> CACHED [3/4] WORKDIR /code 0.0s
=> ERROR [4/4] RUN export PHALCON_REPO="https://packagecloud.io/phalcon/nightly" PHALCON_PKG="php7.4-phalcon_4.0.6-1070+php7.4_amd64.deb" && curl -sSL "$PHALCON_REP 1.1s

[4/4] RUN export PHALCON_REPO="https://packagecloud.io/phalcon/nightly" PHALCON_PKG="php7.4-phalcon_4.0.6-1070+php7.4_amd64.deb" && curl -sSL "$PHALCON_REPO/packages/debian/buster/$PHALCON_PKG/download.deb" -o /tmp/phalcon.deb && mkdir /tmp/pkg && dpkg-deb -R /tmp/phalcon.deb /tmp/pkg && cp /tmp/pkg/usr/lib/php//phalcon.so "$(php-config --extension-dir)/phalcon.so" && docker-php-ext-install opcache pdo_mysql mysqli 1> /dev/null && printf "\n" | pecl install --force psr 1> /dev/null && echo "extension=psr.so" > "/usr/local/etc/php/conf.d/docker-php-ext-psr.ini" && echo "extension=phalcon.so" > "/usr/local/etc/php/conf.d/docker-php-ext-phalcon.ini" && 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 1.119 dpkg-deb: error: '/tmp/phalcon.deb' is not a Debian format archive


executor failed running [/bin/sh -c export PHALCON_REPO="https://packagecloud.io/phalcon/$PHALCON_BRANCH" PHALCON_PKG="php7.4-phalcon_$PHALCON_VERSION-$PHALCON_BUILD+php7.4_amd64.deb" && curl -sSL "$PHALCON_REPO/packages/$PHALCON_OS/$PHALCON_PKG/download.deb" -o /tmp/phalcon.deb && mkdir /tmp/pkg && dpkg-deb -R /tmp/phalcon.deb /tmp/pkg && cp /tmp/pkg/usr/lib/php//phalcon.so "$(php-config --extension-dir)/phalcon.so" && docker-php-ext-install opcache pdo_mysql mysqli 1> /dev/null && printf "\n" | pecl install --force psr 1> /dev/null && echo "extension=psr.so" > "$PHP_INI_DIR/conf.d/docker-php-ext-psr.ini" && echo "extension=phalcon.so" > "$PHP_INI_DIR/conf.d/docker-php-ext-phalcon.ini" && 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

Expected result

  • It should go through without error
  • or different instruction if there is something different between MacOs and Linux based
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

1 participant