Skip to content

PHP 8.0 - unable to install php-amqp extension #159

@ivannemets-sravniru

Description

@ivannemets-sravniru

Hi! I have difficulties installing needed php version and extensions using the example from Readme.md
Maybe I'm missing something but so far it looks like an issue...

Steps to reproduce:

  1. create a Dockerfile with the following content:
FROM alpine:3.12

ADD https://php.hernandev.com/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub

RUN apk --update-cache add ca-certificates && \
    echo "https://php.hernandev.com/v3.12/php-8.0" >> /etc/apk/repositories

RUN apk add --update-cache php
RUN apk add --update-cache php-json
RUN apk add --update-cache php-amqp
  1. build image docker build .

Expected Result:

  1. The image successfully created
  2. PHP 8.0 is installed along with php-json and php-amqp extensions

Actual Result:

  1. Image build fails due to error while installing php-amqp (not expected)
  2. php7 and php7-json are installed (expected version 8)

See docker build . output:

Sending build context to Docker daemon  103.4kB
Step 1/6 : FROM alpine:3.12
 ---> b0925e081921
Step 2/6 : ADD https://php.hernandev.com/key/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
Downloading [==================================================>]     451B/451B

 ---> a10e1d673df0
Step 3/6 : RUN apk --update-cache add ca-certificates &&     echo "https://php.hernandev.com/v3.12/php-8.0" >> /etc/apk/repositories
 ---> Running in 25f3c9af2615
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/1) Installing ca-certificates (20211220-r0)
Executing busybox-1.31.1-r21.trigger
Executing ca-certificates-20211220-r0.trigger
OK: 6 MiB in 15 packages
Removing intermediate container 25f3c9af2615
 ---> d8539a26d104
Step 4/6 : RUN apk add --update-cache php
 ---> Running in caaf708e69e7
fetch https://php.hernandev.com/v3.12/php-8.0/x86_64/APKINDEX.tar.gz
(1/9) Installing php7-common (7.3.33-r0)
(2/9) Installing argon2-libs (20190702-r1)
(3/9) Installing ncurses-terminfo-base (6.2_p20200523-r1)
(4/9) Installing ncurses-libs (6.2_p20200523-r1)
(5/9) Installing libedit (20191231.3.1-r0)
(6/9) Installing pcre2 (10.35-r0)
(7/9) Installing xz-libs (5.2.5-r0)
(8/9) Installing libxml2 (2.9.12-r0)
(9/9) Installing php7 (7.3.33-r0)
Executing busybox-1.31.1-r21.trigger
OK: 14 MiB in 24 packages
Removing intermediate container caaf708e69e7
 ---> dfb2678d5533
Step 5/6 : RUN apk add --update-cache php-json
 ---> Running in 81c3543ca47a
(1/1) Installing php7-json (7.3.33-r0)
OK: 14 MiB in 25 packages
Removing intermediate container 81c3543ca47a
 ---> 49b495de2957
Step 6/6 : RUN apk add --update-cache php-amqp
 ---> Running in 1fbf7e53fe23
ERROR: unable to select packages:
  php-amqp (no such package):
    required by: world[php-amqp]
The command '/bin/sh -c apk add --update-cache php-amqp' returned a non-zero code: 1

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions