News > May updates: MySQL 8.0, Alpine changes

May 2nd, 2017

A few minor updates:

  • MySQL 8.0 was released recently, we now support it as default for MySQL installations
  • Switched more containers to official Alpine images where available
  • Some background on why we continue offering our own PHP base images

 

Alpine images and PHPDocker.io base images

A question that repeats regularly from users of PHPDocker.io is why aren't we using official alpine images for everything. When I started off PHPDocker over a year ago, most official images did not offer Alpine builds and were based usually on Debian Jessie. Upstream breakage was happening on a weekly basis leaving users with broken environments, and Alpine itself had serious issues with DNS resolution due to underlying issues with uclibc. I decided then to stabilise things for our own users by building our own base images, based on Debian Jessie.

A year and a half later, the panorama is very different. Most official apps now offer Alpine builds, and Alpine has fixed itself up to the point that it's a viable way to run applications on top of. Thus, I've slowly been replacing all container images with their official Alpine builds where available. I have finalised this transition with the last release of the site.

The old phpdockerio/* container images still exist on Docker Hub, and are automagically built every so often, so your existing environments will work for the foreseeable.

How about the PHP base image? Why not switch to the official PHP images?

I have decided to continue offering our own PHP images, based on Debian Jessie (for PHP5 and 7.0) and Ubuntu (PHP 7.1) for the foresseable. Why not use the official images? This is something I get asked a lot. The reason is simplicity. If you've used at some point the official PHP images, you've probably noticed all extensions need to be compiled via a tool they provide. Not only that, this tool is essentially a wrapper around phpize and doesn't deal with the build dependencies required to compile that given extension. Do you want pdo_mysql? You need libmysqlclient-dev. Do you need ImageMagick? The list of dev dependencies is even bigger. Maintaining a list of dev-dependencies, and binary libraries (which need to be installed via apt) on a per-extension basis is a great deal of work, as each extension needs to be tested manually to track down which dev packages they require. Not only that, some of these are optional, and missing them out means certain functionality is not available through the extension. Every now and again, extensions evolve and require even newer dev dependencies. Once these are worked out, per extension, they need installing via apt anyway, the PHP extension compiled, then uninstalled afterwards every time the php image needs rebuilding. In addition to this, compilation of these extensions can be rather time consuming, especially on platforms that do not run docker natively (macOS and Windows - these run under OS provided virtualisation technology).

Now multiply this by two, since that only covers extensions distributed with PHP's sources. PECL extensions are distributed separately and have their own dependencies, which are not always resolvable in Debian Jessie (PHP official's base) and for which you need to devise alternative means of installation.

This became clear rather early on PHPDocker.io's development, so I decided initially to maintain the Debian Jessie core and add PHP 7.0 via dotdeb packages. These packages were backported from Debian Unstable, packages provided by our good man Ondřej Surý to Debian in the first place. Starting with PHP 7.1, we switched to Ubuntu 16.04 and Ondřej's PPA. All that work is already done for us by the very same maintainer of PHP on Debian, simplifying and speeding up container builds and generally making my life, and yours, a lot easier.

If you'd like to know what goes into the base images your containers build on top of, head off to PHPDocker.io's base image repository and have a quick look at the Dockerfiles.

Comments

Thank you for all the work, we use this all the time at work, as a base for our development environments as well as for deploying our apps.
Quick question, are phpdocker php images are good for production?
You should be good to go on production with these base images if you wish, as a base to build your containers with.
casino online <a href="https://onlinecasinodd.com/">online casino real money</a> best online casino <a href="https://onlinecasinodd.com/">foxwoods online casino</a> | https://onlinecasinodd.com/ - free casino slot games https://onlinecasinodd.com/ - zone online casino games
doubledown casino <a href="https://onlinecasinoplay.us.org/">casino play</a> foxwoods online casino <a href="https://onlinecasinoplay.us.org/">free casino games slotomania</a> | https://onlinecasinoplay.us.org/ - free slots games https://onlinecasinoplay.us.org/ - online casino slots
treasure island casino minnesota <a href="https://onlinecasinox.icu/">casino play</a> lady luck online casino <a href="https://onlinecasinox.icu/">double down casino</a> | https://onlinecasinox.icu/ - online gambling casino https://onlinecasinox.icu/ - cherokee casino
vegas free slots online <a href="https://vegasslotsonline.icu/">penny slots</a> scatter slots <a href="https://vegasslotsonline.icu/">heart of vegas slots</a> | https://vegasslotsonline.icu/ - quick hits free slots https://vegasslotsonline.icu/ - vegas free slots
foxwoods casino online <a href="https://slotsonline.ooo/">codeshareonline doubledown casino</a> doubledown casino facebook <a href="https://slotsonline.ooo/">casino online slots</a> | https://slotsonline.ooo/ - casino slots https://slotsonline.ooo/ - turning stone casino
goldfish casino slots free <a href="https://realmoneyslots.icu/">celebrity slots</a> igt free slots <a href="https://realmoneyslots.icu/">free slots vegas world</a> | https://realmoneyslots.icu/ - liberty slots https://realmoneyslots.icu/ - online slots free
free slot games with no download <a href="https://vegasslotsonline.icu/">slots online free</a> slots free games <a href="https://vegasslotsonline.icu/">hollywood casino free slots</a> | https://vegasslotsonline.icu/ - hollywood casino online slots free https://vegasslotsonline.icu/ - gossip slots
cell phone spy software <a href="https://phonespy.us.com/">locate a cell phone position free</a> mobile phone tracking free download <a href=" https://phonespy.us.com/">tracking software</a> | https://phonespy.us.com/ - locate a cell phone position free https://phonespy.us.com/ - phone tracker free with just phone number
casino game <a href="https://onlinecasinoplay.us.org/">casino games free</a> gsn casino <a href="https://onlinecasinoplay.us.org/">casino games</a> | https://onlinecasinoplay.us.org/ - free casino games slot machines https://onlinecasinoplay.us.org/ - online casino slots
old vegas slots <a href="https://vegasslotsonline.icu/">da vinci diamonds free online slots</a> slotomania free slots <a href="https://vegasslotsonline.icu/">quick hits free slots</a> | https://vegasslotsonline.icu/ - online slots free https://vegasslotsonline.icu/ - free video slots
cleopatra slots <a href="https://realmoneyslots.icu/">slots games</a> vegas slots free <a href="https://realmoneyslots.icu/">free slot play no download</a> | https://realmoneyslots.icu/ - hollywood casino online slots free https://realmoneyslots.icu/ - wizard of oz slots
thunder valley casino <a href="https://onlinecasinox.icu/">free casino games online</a> online slot machines <a href="https://onlinecasinox.icu/">online casino</a> | https://onlinecasinox.icu/ - virgin online casino https://onlinecasinox.icu/ - borgata online casino
konami free slots <a href="https://slotsrealmoney.icu/">best online slots</a> wizard of oz slots <a href="https://slotsrealmoney.icu/">free slots games online</a> | https://slotsrealmoney.icu/ - real casino slots https://slotsrealmoney.icu/ - world class casino slots
online casino real money <a href="https://playonlinecasino.icu/">riverwind casino</a> online gambling casino <a href="https://playonlinecasino.icu/">play free vegas casino games</a> | https://playonlinecasino.icu/ - jack online casino https://playonlinecasino.icu/ - free vegas casino games
pala casino <a href="https://onlinecasinoo.icu/">casino games free</a> doubleu casino <a href="https://onlinecasinoo.icu/">foxwoods casino</a> | https://onlinecasinoo.icu/ - online gambling sites https://onlinecasinoo.icu/ - no deposit casino
free slots <a href="https://slotgames.icu/">online slot games</a> slots for free <a href="https://slotgames.icu/">play slots online</a> | https://slotgames.icu/ - slots farm https://slotgames.icu/ - house of fun slots
double u casino <a href="https://playcasinoslots.ooo/">golden nugget online casino</a> mohegan sun online casino <a href="https://playcasinoslots.ooo/">harrah cherokee casino</a> | https://playcasinoslots.ooo/ - online casino games https://playcasinoslots.ooo/ - free casino games
free online casino games <a href="https://playcasinoslots.ooo/">red rock casino</a> hyper casinos <a href="https://playcasinoslots.ooo/">hypercasinos</a> | https://playcasinoslots.ooo/ - cherokee casino https://playcasinoslots.ooo/ - soaring eagle casino
bovada blackjack <a href="https://onlinecasinoo.icu/">san manuel casino</a> grand casino hinckley <a href="https://onlinecasinoo.icu/">free casino slot games</a> | https://onlinecasinoo.icu/ - plainridge casino https://onlinecasinoo.icu/ - zone online casino games
pompeii slots <a href="https://slotgames.icu/">free slot machine games</a> free online slots no download <a href="https://slotgames.icu/">free vegas slots online casino</a> | https://slotgames.icu/ - slots online https://slotgames.icu/ - slots games
free online slots <a href="https://onlinecasino2018.us.org/">online casino bonus</a> no deposit casino <a href="https://onlinecasino2018.us.org/">hypercasinos</a> | https://onlinecasino2018.us.org/ - free casino games sun moon https://onlinecasino2018.us.org/ - online gambling casino
free casino games sun moon <a href="https://onlinecasino2018.us.org/">bovada casino</a> free vegas casino games <a href="https://onlinecasino2018.us.org/">mgm online casino</a> | https://onlinecasino2018.us.org/ - free slots games https://onlinecasino2018.us.org/ - gsn casino
free slots 777 <a href="https://slotsrealmoney.icu/">casino games slots free</a> world class casino slots <a href="https://slotsrealmoney.icu/">brian christopher slots</a> | https://slotsrealmoney.icu/ - pch slots tournament https://slotsrealmoney.icu/ - free slots machines
big fish casino <a href="https://playonlinecasino.icu/">foxwoods casino</a> play free vegas casino games <a href="https://playonlinecasino.icu/">paradise casino</a> | https://playonlinecasino.icu/ - free casino games vegas world https://playonlinecasino.icu/ - foxwoods online casino login
parx online casino <a href="https://playcasinoslots.ooo/">mohegan sun casino</a> mountaineer casino <a href="https://playcasinoslots.ooo/">foxwoods casino</a> | https://playcasinoslots.ooo/ - hard rock casino atlantic city https://playcasinoslots.ooo/ - doubledown casino
no deposit casino <a href="https://onlinecasino2018.us.org/">borgata online casino</a> big fish casino <a href="https://onlinecasino2018.us.org/">casino games free online</a> | https://onlinecasino2018.us.org/ - free vegas casino games https://onlinecasino2018.us.org/ - vegas world casino games

Leave a reply