Posts by: LongNguyen
![Adding extensions to PHP buildpack](../../../../../wp-content/uploads/adding-extensions-to-php-buildpack-300x123.jpg)
A lot of PHP apps require extensions such as gd or exif. The php buildpack uses composer to manage extensions/packages. In order to add extension such as gd. Add the following composer.json file { "require": { "ext-gd": "*" } } For extensions like exif and gd just need to prefix it with ext. That’s it!
![Converting Openstack QCOW2 stemcell to RAW stemcell](../../../../../wp-content/uploads/converting-openstack-qcow2-stemcell-to-raw-stemcell-300x123.jpg)
BOSH openstack stemcells are QCOW2 format by default. If you need RAW stemcell version. Use the following script. #!/bin/bash if [[ $# -eq 0 ]] ; then echo ‘Usage: raw_convert.sh <tgz stemcell>’ exit 0 fi original_dir=$(pwd) tmpdir=$(mktemp -d -t stemcell) cp $1 $tmpdir/ pushd $tmpdir tar zxvf $1 rm $1 tar zxvf image qemu-img convert