Introducing Django Defender

Normally websites do very few logins, someone logs in once and their session is good for a bunch of hours. Since it's a one time thing, it doesn't matter if it isn't very fast. At Docker our authentication system handles requests for both the Docker Hub, as well as all Docker Engine commands that interact with the Docker Hub (docker push, pull, etc). This Authentication system handles thousands of login attempts every minute, so any slow down in the login process has a large impact on our system.

We are always looking at ways to improve the ...

more…

Uploading a Video to Facebook from AWS S3 using python

If you have some video files stored in Amazon S3 and you want to upload those videos to a Facebook page, using their video API here is some python code that I used recently.

I spent a good chunk of a day trying to get this too work, so I'm posting this here to help anyone else who is trying to do the same.

This code isn't using any special facebook libraries it is just using normal python along with the requests library. It should be a good enough example to figure out how to do most things ...

more…

The Docker Guidebook

1   Introduction

The goal of this tutorial is to introduce you to Docker, show you what it can do, and how to get it up and running on your system, and how to use it to make your life better.

This guide is open source and available on github.com. If you would like to add to it or fix something, please fork it and submit a pull request.

more…

Running Docker on Digital Ocean with Ubuntu

I recently wrote a post on how to get Docker up and running on Rackspace and since then I have received some requests on how to get it up and running on other hosts. One of those hosts is Digital Ocean a hot new Cloud hosting provider that offers a 512MB 20GB SSD VPS for only $5.00 / month. A really great deal, and also a great price if you want to play around with some new tool and not have to worry about possibly breaking a production server. This post should guide you though the process of getting an ...

more…

Getting Docker up and running on a RaspberryPi

This year I attended PyCon US and I was lucky enough to get a FREE RaspberryPi. At the same conference dotCloud (The company I work for), was giving a lightning talk for a project that we have been working on, called Docker. Docker is a tool that allows you to better manage your Linux Containers (LXC). Shortly after I got the RaspberryPi, I started wondering if it would be possible to run Docker on it.

I did some digging and technically speaking the Pi should be able to run Docker, it satisfies all of the requirements.

  • Linux
  • LXC
  • AUFS
  • Go ...
more…

Upgrading the Ubuntu linux kernel on Rackspace cloud

Yesterday I wrote a blog post on how to install Docker on to RackSpace Cloud, and one of the steps was to upgrade the kernel to the lastest one so that Docker would be nice and stable. The problem that I found out was that there wasn't much information how to upgrade the kernel on the Rackspace Cloud servers, so I thought I would put the steps here.

The goal here is to upgrade Ubuntu 12.04 and 12.10 so that it has the same kernel as 13.04. Here are the steps.

Ubuntu 12.04

  1. Build an ...

more…

Running Docker on Rackspace with Ubuntu

I have been playing with Docker a lot lately, and it got me wondering how hard it would be to run Docker on the different Cloud providers. I noticed there were already directions on how to install on Amazon EC2 but nothing for the Rackspace Cloud.

If you would like to run Docker on the RackSpace Cloud using Ubuntu you're in luck. I just spent the afternoon figuring out how to get it installed on Ubuntu 12.04, 12.10, and 13.04, and I have included my notes below. 13.04 is the easiest to get up and ...

more…

Intro to Python and Django Presentation

I recently gave a talk at a DjangoMaine meetup introducing folks to Python and Django. There wasn't enough time to go over everything, so I tried to pick and choose the parts that I felt where important to go over, in order to have a good overview of what Python and Django is all about.

I hope this was useful to the folks that attended. If so, it would be really helpful to know what parts you would like to know more about. Then we can have some follow up talks doing a deeper dive into those select topics ...

more…

New Pelican Based Blog

I have recently changed my Django based blog to a statically generated blog based on Pelican, and hosted by GitHub Pages. This is for a couple of reasons.

The first reason was because my blog is really simple, it was just a bunch of reStructuredText documents that were converted to HTML. I didn't need the Django-admin features and I always felt it was a little overkill for my blog.

The second reason was because I wanted to host my blog contents on GitHub so that others could change/update/edit my blog posts and send me pull requests if ...

more…

Deploying my Django application to dotCloud: Part 2

As I mentioned in a recent blog post, in the 11 months since I wrote my first post on dotCloud, I now work there. Besides me working there, there has been a lot of other changes at dotCloud, and I wanted to take the time to update my original post so that it was up to date and had all the recent information. I'm going to completely rewrite the old blog post here, with updated information, and leave the old one around for posterity.

dotCloud's goal is to provide a bunch of different independent services that you can ...

more…