Category : Uncategorized

Docker on Debian Wheezy

Maybe you have already heard of the next revolution in application deployment called Docker. I quote:

Docker is an open-source engine which automates the deployment of applications as highly portable, self-sufficient containers which are independent of hardware, language, framework, packaging system and hosting provider.

On the getting started page, you can see that you need an Ubuntu machine to get it running:

Requirements

  • Ubuntu 12.04 (LTS) (64-bit)
  • or Ubuntu 12.10 (quantal) (64-bit)
  • The 3.8 Linux Kernel

One thing that is missing from this list, is AUFS support in the kernel, which isn’t a sure thing these days in Ubuntu.

However, I was interested in running Docker on a 64-bit Debian Wheezy machine, and this post explains how to do it. It’s not really hard, but you need to install an Ubuntu kernel. At least, I haven’t been able to find a 3.8 kernel for Wheezy just yet.

Your best bet is the 3.8 kernel from Ubuntu 13.04 Raring, backported for Ubuntu 12.04 LTS Precise. If that link is broken, try this one or get the right page from here. I have tried a kernel from Ubuntu’s mainline kernel PPA, but the 3.8 and 3.9 kernels for Raring from there seem to lack AUFS support.

I downloaded the deb named linux-image-3.8.0-23-generic_3.8.0-23.34~precise1_amd64.deb, which installs on Wheezy without problems. Just do:

$ sudo dpkg -i linux-image-3.8.0-23-generic_3.8.0-23.34~precise1_amd64.deb
$ sudo reboot

Now find a Docker package on Launchpad. Get the one that is built for Precise.

First install the dependencies:

$ sudo apt-get install lxc bsdtar

and then Docker. This will not succeed:

$ sudo dpkg -i lxc-docker_0.4.0-1_amd64.deb
Selecting previously unselected package lxc-docker.
(Reading database ... 40929 files and directories currently installed.)
Unpacking lxc-docker (from lxc-docker_0.4.0-1_amd64.deb) ...
Setting up lxc-docker (0.4.0-1) ...
/var/lib/dpkg/info/lxc-docker.postinst: 4: /var/lib/dpkg/info/lxc-docker.postinst: /sbin/start: not found
dpkg: error processing lxc-docker (--install):
 subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
 lxc-docker

This is caused by Docker’s Ubuntu package trying to use upstart to start the daemon, which does not work on Debian. Disable that:

sed -i 's~/sbin/start~#/sbin/start~' /var/lib/dpkg/info/lxc-docker.postinst
sed -i 's~/sbin/stop~#/sbin/stop~' /var/lib/dpkg/info/lxc-docker.prerm

If you now have apt-get fix its state, it should work:

$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up lxc-docker (0.4.0-1) ...

That’s it!

Now continue with the examples on Docker’s website. Happy Docker’ing!

Mail aan Ticketservice

Onderstaande mail stuurde ik zojuist aan Ticketservice. Zal wel weer een kutreactie op komen.

Al eerder heb ik u gevraagd waarom uw “servicekosten” zo hoog zijn, maar u kwam in uw antwoord niet verder dan “die zijn meestal ca 10% van de aanschafprijs”, wat natuurlijk een KUT-antwoord is.

Zojuist heb ik, met veel gedoe en frustratie, kaartjes besteld voor Bruce Springsteen. U rekent hier 7,50 servicekosten voor. Ik vind dat BELACHELIJK. U dienstverlening is ronduit SLECHT, en 7,50 is heel veel geld voor het opsturen van een PDFje.

Kunt u verantwoorden waarom u meent 7,50 PER KAARTJE te moeten rekenen. Vind u zelf ook niet, dat dat een belachelijk hoog bedrag is?

Ik ben als frequent concertbezoeker gedwongen om klant bij u te zijn, maar die ervaring is nooit, maar dan ook NOOIT een prettige geweest. Ik hoop oprecht dat u:

a) uw dientverlening verbetert, zodat ik niet EEN UUR bezig ben met het bestellen van 4 kaatrtjes

b) uw tarieven verlaagt, en loskoppelt van de aanschafprijs van het kaartje, want die koppeling is er in de praktijk natuurlijk niet. Gewoon 2 of 3 euro per kaartje rekenen, dat is redelijk en eerlijk. Wat u nu doet gaat alle perken te buiten.

Koffie-ijs zonder ijsmachine

Aangepast en vertaald in het Nederlands op 6 oktober.

Dit recept komt oorspronkelijk van http://www.eating-for-england.com/no-churn-coffee-ice-cream/, maar omdat ik die link al een paar keer kwijt was, en er bovendien Engelse maten in worden gebruikt, heb ik het recept hier overgenomen en aangepast aan het metrisch stelsel.

Homemade ice cream without a machine? I was gob smacked when I realised how easy this is. Learning to bake and cook over the last few years has included a series of fun surprises: I never would have guessed that any old person could make ice cream at home so dang easily.

I started my ice cream adventure with one of my all-time favourite flavours, coffee. Everything about this is reminiscent of Vietnamese coffee for me – the intense sweetness from both the heavy cream and sweetened condensed milk immediately transported me back to backpacking in South-East Asia, enjoying iced coffee on hot, steamy mornings. Not a bad thing to reminisce about on these humid, 100F Minnesota days with a cold cup of ice cream in hand.

Koffie-ijs zonder ijsmachine

adapted from Vanilla Bean

Ingrediënten

  • 1 blikje (*) gecondenseerde volle melk met suiker (Friesche Vlag)
  • 1/2 eetlepel vanilla-extract of aroma
  • 1/2 kopje (60 ml) sterke koffie, oftewel 1 flinke espresso, gekoeld
  • 250 ml slagroom, gekoeld

(*) Een blikje gecondenseerde melk van Friesche Vlag bevat iets meer inhoud dan nodig

Instructies

  • Doe de room en de koffie in een kom en klop het mengsel stijf met een mixer
  • In een andere kom, meet 220 ml gecondenseerde melk af en voeg het vanille-extract toe
  • Schep met een rubber spatel de geslagen room bij de gecondenseerde melk en schep voorzichtig om, totdat het een homogeen mengsel is
  • Zet het mengsel in de vriezer en laat tenminste 6 uur invriezen

RE: Cisco Software Downloads – Registration Concerns

Yesterday, I registered a user account with cisco.com. As you can deduct from yesterday’s tweets, this was not a very pleasant experience. My frustration grew so big, that I, when prompted for feedback about the registration procedure, entered the F-word a few times to be done with it.

Today, however, I got a polite mail from a Cisco employee, asking me to elaborate on the issues I had. This is what I wrote. Let it be a lesson to people who design registration forms for websites.

Hi,

> > We appreciate your feedback and regret any inconvenience.

And I apologize for my choice of words in the feedback I sent you.

> > Can you please elaborate on the issues you faced with registration? Was
> > there a specific step or question that caused issues? These details will
> > help us improve the website for all customers.

Well, it took me no less than 9 times to successfully submit the registration form, including a few times were I forgot to re-enter a password, as this isn’t kept between subsequent submits.

A couple of annoyances:

  •  The field named ‘Retype Email Address’ doesn’t make sense. Why do you want me to copy and paste my email address??
  •  Phone number check is too strict. I entered ‘+3140……..’, which was declined because of the ‘+’.
  •  Postal code check is too strict. I entered ‘5612 AX’, which is the offical notation in The Netherlands, but it was declined because of the space in the middle.
  •  I am obliged to choose and answer 2 (two!) secret security questions. I do not understand how these questions increase security in any way, and I do not want to use them. I do not forget passwords (or rather: my secure password store doesn’t). Answers to ‘security questions’, however, I cannot remember and it is none of your business how my first pet was named.
  •  If any of the entered values does not conform to what the website expects, a message is printed for the first error only. So you fix that, resubmit, find out you forgot the passwords, resubmit again, only to find out there a more errors to fix. That’s just dumb.
  •  Finally, after submitting the form a number of times, the website gave me a ‘Your session timed out’ error, and all values were erased so I had to start from scratch.

I hope this helps.

Best regards,
Martijn Grendelman

P.S. The evil registration form can be found here.