Posts by: LongNguyen

Introducing Mesosphere DC/OS on BOSH

DC/OS is an excellent platform to deploy distributed services like Apache Cassandra, Kafka, Hdfs, or even SQL Server. It includes many additional features like the container orchestration and resource management, but this blog post will focus on the deployment and maintenance of DC/OS for distributed services. We have the following goals: An enterprise-grade deployment of

LongNguyen Profile Image

Posted by:
LongNguyen

Read More ➝
Running your own PyPI Server on Cloud Foundry

I was recently asked if I could run a PIP server on Cloud Foundry. After a quick Google search I found PyPICloud and discovered that this is possible! Deploying PyPI to Cloud Foundry Start by cloning this repo: There is a pending pull request here for one of the missing components (waitress). For now there

LongNguyen Profile Image

Posted by:
LongNguyen

Read More ➝
Multiple BOSHs and users on the same machine.

Sometimes you have multiple BOSHs and multiple users on the same jumpbox. This is a huge problem because you can only target one BOSH at a time. This makes me sad 🙁 We now have a great solution for this! Thank you to zimbatm we can install direnv. Follow instructions here Now we can add

LongNguyen Profile Image

Posted by:
LongNguyen

Read More ➝
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

LongNguyen Profile Image

Posted by:
LongNguyen

Read More ➝
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

LongNguyen Profile Image

Posted by:
LongNguyen

Read More ➝
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

LongNguyen Profile Image

Posted by:
LongNguyen

Read More ➝
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

LongNguyen Profile Image

Posted by:
LongNguyen

Read More ➝
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

LongNguyen Profile Image

Posted by:
LongNguyen

Read More ➝
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

LongNguyen Profile Image

Posted by:
LongNguyen

Read More ➝