Sign inSign up

bubbaops/devcontainer-php

By bubbaops

•Updated almost 6 years ago

A PHP Devcontainer for developing in a VS Code devcontainer environment.

Image
0

1.9K

bubbaops/devcontainer-php repository overview

⁠Develop Inside a Docker Container

VS Code⁠ has an extension, Visual Studio Code Remote - Containers, that allows us to use a docker container as a full-featured development environment. It allows us to open any folder inside (or mounted into) a container and take advantage of Visual Studio Code's full feature set.

For PHP Development, this is the container we build in order to take advantage of this awesome feature!

⁠What's Inside?

We build the image off of the BaseImage-PHP⁠, which itself is built on phusion/baseimage-docker⁠ in order to give us a fully working OS for our development environment.

We provide builds for last few PHP releases, so it is trivial to change from one project to another when the projects use different versions of PHP. BaseImage-PHP⁠ gives us the following extensions out of the gate.

⁠Static Extension List
Corectypedatedom
fileinfofilterftphash
iconvjsonlibxmlpcre
PDOPharposixstandard
ReflectionsessionSimpleXMLSPL
tokenizerxmlxmlreaderxmlwriter
⁠Shared Extension List
bcmathbz2calendarcurl
exifgdgettextintl
mbstring*mysqlimysqlndopcache
openssl*pcntlpdo_mysqlpdo_psql
pdo_sqlitepdo_sqlsrvpgsqlreadline*
redissoapsocketssodium
sqlite3sqlsrvunixODBCxdebug
xslyamlzip*zlib*

* These extensions are enabled by default.

⁠Pre-Installed Tools

There are some common tools that PHP Developers keep around, we have made it a point to pre-install them and ensure they are on the path.

* Deprecated in PHP 7.4 try to use pickle instead.

⁠Versions

All images are currently based on Ubuntu 18.04 on which we provide standard php builds for PHP 7.2, 7.3, 7.4, and 8.0.

Tag summary

Content type

Image

Digest

Size

592.6 MB

Last updated

almost 6 years ago

docker pull bubbaops/devcontainer-php