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

The script doesn't work with Alpine 3.14-based images #362

Closed
ad-on-is opened this issue Jun 29, 2021 · 6 comments
Closed

The script doesn't work with Alpine 3.14-based images #362

ad-on-is opened this issue Jun 29, 2021 · 6 comments

Comments

@ad-on-is
Copy link

I have setup an automated PHP image build for web development with extensions. Today I pulled one of my automated built images (PHP 7.4.20) on my dev setup and encountered that mysqli was not working. After further inspection, I found out that none of the extensions were installed.

This is phpinfo() on my dev-setup
Notice how "Additional .ini files parsed" only contains sodium.

None of these work: php:7.3-fpm-alpine, php:7.4-fpm-alpine, php:8.0-fpm-alpine

image

This is phpinfo() on my production environment, which works just fine.

image

This is the code of my outomated build

sync && install-php-extensions --cleanup \
    apcu \
    bcmath \
    bz2 \
    calendar \
    exif \
    gd \
    imagick \
    intl \
    mcrypt \
    memcached \
    mysqli \
    opcache \
    pdo_mysql \
    pdo_pgsql \
    pgsql \
    redis \
    soap \
    uuid \
    zip \
    xdebug
@mlocati
Copy link
Owner

mlocati commented Jun 29, 2021

It seems they switched to Alpine 3.14:

docker run --rm -it php:7.4-fpm-alpine cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.14.0
PRETTY_NAME="Alpine Linux v3.14"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"

See also #353

For the time being, you can use php:7.3-fpm-alpine3.13, php:7.4-fpm-alpine3.13, php:8.0-fpm-alpine3.13

@duyleekun
Copy link

Change to php:7.4-fpm-alpine3.13
Everything docker images just bumped to 3.14

@ad-on-is
Copy link
Author

Ah, thank you guys! It's working now.

@mlocati
Copy link
Owner

mlocati commented Jun 29, 2021

Let's keep this open until the script will support alpine 3.14

@mlocati mlocati reopened this Jun 29, 2021
@mlocati mlocati changed the title Script doesn't work anymore, at least not for alpine-based images The cript doesn't work with Alpine 3.14-based images Jun 29, 2021
@mlocati mlocati changed the title The cript doesn't work with Alpine 3.14-based images The script doesn't work with Alpine 3.14-based images Jun 29, 2021
@ad-on-is
Copy link
Author

Oh ok, I thought because of #353 this issue might be redundant.

@mlocati
Copy link
Owner

mlocati commented Jun 30, 2021

Fixed by #364

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

3 participants