Tag Archives: author-lnguyen

Increasing BOSH-lite vm memory size

BOSH lite vm is default 6gb. Sometimes you just need more memory to do nefarious things with bosh. VM_MEMORY=10240 vagrant up Done! You have bosh-lite with 10gb

Introducing cf info plugin

Cloud Foundry cli has recently added support for plugin. A piece of info I often forget is what org/space or even user for that fact that I’m logged in as. I created this simple plugin that output user info so it is easily visible. How to Install go get github.com/cloudfoundry-community/info cf install-plugin $GOPATH/bin/info Usage cf

Simple Golang OAuth client for Cloud Foundry

Cloud Foundry UAA allows OAuth clients to be used to leverage the users of Cloud Foundry. This allows you to create apps without maintaining another user database. A free single-signon (SSO) for all your applications! Golang makes it easy to write applications that use SSO – by being OAuth clients for UAA (and your pretty/themed

Running Galaxy on Cloud Foundry

Galaxy is a an open, web-based platform for data intensive biomedical research. Setting up app First we need to clone repo hg clone https://bitbucket.org/galaxy/galaxy-dist/ cd galaxy-dist hg update stable Now that we have repo cloned we need to do a few things. First create Procfile web: sh run.sh Next we need requirements.txt for some reason

Fixing Loggregator problems one problem at a time.

Cloud Foundry Loggregator likes to break on me. This is going to my collection of how I (try to) fix loggregator. Problem 1 Background I’ve just updated CF from v190 -> v191 CF Version: 191 Date of Problem: 10/30/2014 ➜ ~ cf logs galaxy FAILED Error dialing loggregator server: websocket: bad handshake. Please ask your

Terraforming workloads with Docker and Digital Ocean

Terraform is a great tool for automating creation of infrastructure and support IaaS, PaaS, and SaaS products. Docker is a great tool for creating containers which allow apps to be portable. Digital Ocean is a great IaaS with a great api and fast download speed. Problem I’m lazy and my internet is slow. Cloud Foundry

Adding extensions to PHP buildpack

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

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