Giter Site home page Giter Site logo

jorge07 / alpine-php Goto Github PK

View Code? Open in Web Editor NEW
129.0 10.0 54.0 36.64 MB

Multi Arch Alpine PHP Docker images. 5.6, 7{0,1,2,3,4}, 8.{1,2,3}

Home Page: https://hub.docker.com/r/jorge07/alpine-php/

License: Apache License 2.0

Shell 21.00% PHP 0.21% Dockerfile 69.57% Makefile 9.22%
production-ready docker docker-php composer symfony environment wordpress alpine-php alpine php

alpine-php's Introduction

I do things, I break things.

stats

I live inside Grafana. I've built, managed and contribute to Docker and Kubernetes ecosystem since 2015.

Observability centric.

Links

Contact

alpine-php's People

Contributors

allcontributors[bot] avatar cv65kr avatar igayoso avatar ismael-benitez avatar jorge07 avatar kowalk avatar lutacon avatar steamvis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alpine-php's Issues

dl.bintray.com is not available for php 7.3, 7.4, 8.0

E.g this url is not responding
https://dl.bintray.com/php-alpine/v3.10/php-7.4

fetch https://dl.bintray.com/php-alpine/v3.10/php-7.4/x86_64/APKINDEX.tar.gz
WARNING: Ignoring https://dl.bintray.com/php-alpine/v3.10/php-7.4/x86_64/APKINDEX.tar.gz: Permission denied
WARNING: The repository tag for world dependency 'php7@cast' does not exist
WARNING: The repository tag for world dependency 'php7-apcu@cast' does not exist
WARNING: The repository tag for world dependency 'php7-bcmath@cast' does not exist
WARNING: The repository tag for world dependency 'php7-common@cast' does not exist
WARNING: The repository tag for world dependency 'php7-ctype@cast' does not exist
....

I was trying to install some additional modules for PHP

FROM jorge07/alpine-php:7.4.0-dev

RUN apk add -U --no-cache \
    php7-gmp@cast \
    php7-ftp@cast

Xdebug 3.3.0 Segmentation fault

fbe6b10385be:/app# gdb /usr/sbin/php-fpm83 qemu_php-fpm83_20240115-100416_21.core
GNU gdb (GDB) 14.1
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-alpine-linux-musl".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/php-fpm83...
(No debugging symbols found in /usr/sbin/php-fpm83)
[New LWP 11]

warning: the debug information found in "/usr/lib/debug//lib/ld-musl-x86_64.so.1.debug" does not match "/lib/ld-musl-x86_64.so.1" (CRC mismatch).
Core was generated by `php-fpm: pool www                   '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000004002d4102e in ?? () from /usr/lib/php83/modules/xdebug.so

Release tags

To prevent some issues like the one with 7.1.11 I'm thinking about add minor and patch to the image tags to ensure you can use an specific version.

PHP extensions missing: ext-gd and ext-xmlreader

Hi!

First of all thank you. I am glad I found this package because it is packed with exactly what I need for my build.

However, some PHP extensions are missing, which I think are really basic.

I am using jorge07/alpine-php:7.1-dev. Surely it works with the --ignore-platform-reqs flag.

Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for contao/core-bundle 4.6.3 -> satisfiable by contao/core-bundle[4.6.3].
    - contao/core-bundle 4.6.3 requires ext-gd * -> the requested PHP extension gd is missing from your system.
  Problem 2
    - Installation request for simplepie/simplepie 1.5.2 -> satisfiable by simplepie/simplepie[1.5.2].
    - simplepie/simplepie 1.5.2 requires ext-xmlreader * -> the requested PHP extension xmlreader is missing from your system.
  Problem 3
    - contao/core-bundle 4.6.3 requires ext-gd * -> the requested PHP extension gd is missing from your system.

  To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php7/php.ini
    - /etc/php7/conf.d/00_apcu.ini
    - /etc/php7/conf.d/00_bcmath.ini
    - /etc/php7/conf.d/00_ctype.ini
    - /etc/php7/conf.d/00_curl.ini
    - /etc/php7/conf.d/00_exif.ini
    - /etc/php7/conf.d/00_iconv.ini
    - /etc/php7/conf.d/00_intl.ini
    - /etc/php7/conf.d/00_json.ini
    - /etc/php7/conf.d/00_mbstring.ini
    - /etc/php7/conf.d/00_mysqli.ini
    - /etc/php7/conf.d/00_opcache.ini
    - /etc/php7/conf.d/00_openssl.ini
    - /etc/php7/conf.d/00_pcntl.ini
    - /etc/php7/conf.d/00_pdo.ini
    - /etc/php7/conf.d/00_pdo_pgsql.ini
    - /etc/php7/conf.d/00_posix.ini
    - /etc/php7/conf.d/00_session.ini
    - /etc/php7/conf.d/00_sodium.ini
    - /etc/php7/conf.d/00_xdebug.ini
    - /etc/php7/conf.d/00_xml.ini
    - /etc/php7/conf.d/00_zip.ini
    - /etc/php7/conf.d/00_zlib.ini
    - /etc/php7/conf.d/01_dom.ini
    - /etc/php7/conf.d/01_mysqlnd.ini
    - /etc/php7/conf.d/01_phar.ini
    - /etc/php7/conf.d/01_xsl.ini
    - /etc/php7/conf.d/20_pdo_mysql.ini
    - /etc/php7/conf.d/20_redis.ini
    - /etc/php7/conf.d/50-setting.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Support ARM platform

Multi-arch images with support for ARM platform would be great. Seems base alpine is already capable of doing this?

Bump images

Hello,

Is it possible to upgrade images with new PHP version? PHP Alpine was updated yesterday. 7.2 and 7.3 branches

Thanks @jorge07 👊

Xdebug remote_host is ignored by remote_connect_back

In your dockerfile you setup the host ip as xdebug remote_host:

&& sed -i "$ a\xdebug.remote_host=${HOST_IP}" /etc/php7/conf.d/00_xdebug.ini

But you leave the remote_connect_back set to 1

xdebug.remote_connect_back=1

While as the documentation explains:

xdebug.remote_connect_back
If enabled, the xdebug.remote_host setting is ignored and Xdebug will try to connect to the client that made the HTTP request.

Therefore, souldn't you want the remote_connect_back set to 0?

Howto add cgi?

Please let me start by saying a hearty thank you! The immages with their detailed instructions are a life saver!

My application requires php-cgi, however installing it via apk is not sufficient since running yields an error:

Error loading shared library libpcre.so.1: No such file or directory (needed by /usr/bin/php-cgi)

Any idea how to fix that in an elegant way that will not rebuild the runtime container all the time?

Refactor Travis

Time to implement travis matrix to improve pipeline build times...

Add support to change user group, id

Hi thanks for this package,

I have reviewed some already and I like very much. But I have a problem that, after some debugging I think is related to permissions.

The original problem is this:

2017/10/22 07:30:01 [error] 7#7: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.29.0.1, server: pinky.local, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://172.29.0.2:9000", host: "dev.local"

and in front end, nginx give me an error of File not found. when file is actually there.

Please notice that my setup is working for a dev environment, I want only to change images (production ready small images) to test docker-compose deployment in production. Because of this, i noticed the permission issue in my files inside containers, all of them have userid == 1000, same as for dev containers.

That's the reason why I am requesting the possibility to change userid in your container. Similar issue is this: chrootlogin/docker-nextcloud#3

thanks in advance
David

Missing mysqli extension

Hi,

i discovered this trying to run a Wordpress instance. After adding this:

RUN apk add -U php7-mysqli@edge-community

to dockerfile everything ran again. So could you please add this extension too?

thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.