Public | Automated Build

Last pushed: 2 months ago
Short Description
Bitbucket Pipelines image based on Debian/Jessie with PHP/Perl/Python/Ruby/Node/MySQL (and more !)
Full Description


Bitbucket Pipelines Docker image based on Debian Jessie with PHP/MySQL (and more !)

More help in Bitbucket's Confluence

Docker image at smartapps/bitbucket-pipelines-php-mysql (no CMD as it is overriden by Pipelines)

Packages installed

  • php5-apcu, php5-cli, php5-curl, php5-gd, php5-geoip, php-gettext, php5-imagick, php5-intl, php5-json, php5-mcrypt, php5-memcached, php5-mysqlnd, php5-sqlite, php5-xdebug, php5-xhprof, php5-xmlrpc, memcached, imagemagick, openssh-client, curl, gettext, zip, bzip2, git, subversion
  • Perl 5.20
  • Python 2.7 & 3.4
  • MySQL 5.5 (user root:root)
  • PHP 5.6
  • Ruby 2.1
  • Node.js 4.x LTS
  • PHPUnit 5.7
  • Latest Composer, Gulp, Webpack, Mocha, Grunt, Codeception, Yarn

Sample bitbucket-pipelines.yml

image: smartapps/bitbucket-pipelines-php-mysql
    - step:
          - service mysql start
          - mysql -h localhost --user=root --password=root -e "CREATE DATABASE test;"
          - composer config -g XXXXXXXX
          - composer install --no-interaction --no-progress --prefer-dist
          - npm install --no-spin
          - gulp

Debian Stretch

A Docker image based on Debian Stretch, PHP 7, MySQL 5.6, Node.js 6.x and Ruby 2.3 is available under stretch branch (and with Docker tag stretch).



  • Adds Yarn, subversion, php5-xmlrpc, php5-json, php5-geoip, php5-apcu, php5-xhprof
  • Replaces wget by curl
  • CI with Travis
  • Adjusts xdebug.max_nesting_level in xdebug.ini
  • Uses slim variant for base Debian Docker image.


  • Adds Ruby, Grunt, Webpack, Mocha, Sqlite, PHPUnit, Memcached, Codeception
  • Adds php5-xdebug, php5-intl, php5-memcached
  • Set root password to root


  • Initial release
  • Perl, Python, PHP, MySQL, Node.js
  • Composer, Gulp
Docker Pull Command

Comments (5)
4 months ago

Bitbucket Pipelines now support running services ( so you won't need to bundle the mysql engine with your development environment.

5 months ago

npm run dev, will only work on stretch too.

Due to the nodejs version, wich is v4.6.2.

6 months ago

@shym use tag stretch for PHP7

6 months ago

When i output the php version i get php -v
PHP 5.6.27-0+deb8u1 (cli) (built: Oct 15 2016 15:53:28)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans

It isn't php7...

9 months ago

Hello! Could you add the pdo driver?