Blog Posts

  • Basic setup for s6 and s6-overlay in Docker

    Nearly all of our containers are running supervisor as the main process. While it’s been solid and reliable, I’d like to move past it to something with less dependencies. In this case, we’re not using Python at all, so having to have both Python 2 and 3 installed seems superfluous. Enter s6, skarnet’s supervisor suite, […]

    Read the full post
  • Referencing a different app’s routes in Hanami

    Ah yeah, it’s been awhile since I updated this blog. Life and work have just been super busy recently. Anyway, I wanted to knock out a quick post about a Ruby framework I’ve been using called Hanami. It’s a really nice little framework that, to me anyway, is the most viable alternative to using Rails. […]

    Read the full post
  • IPC: Unix sockets and PHP

    Recently I’ve come across a use case for having PHP and Ruby talk to each other on the same server. While I knew that this should be possible through the use of UNIX sockets, I’ve never actually delved into rolling my own sockets. The PHP documentation around sockets is obtuse at best. Ruby’s UNIXSocket and […]

    Read the full post
  • A quick primer on dkron

    So I’ve been experimenting with dkron as a way to run distributed crons. Now that I’ve got it all working, I think I can make sense of it – but getting to this part was admittedly a pain, in part because the documentation is a bit obtuse. Hopefully the following helps you if you’re stuck.

    Read the full post
  • Permissions with OSX in Docker

    I’ve been flailing around with being able to do something that should be relatively trivial: mount a folder in a MySQL container in Docker. If nothing else, this is necessary for persisting a local database so that it doesn’t get deleted when you remove the container. As it turns out, this is harder than it […]

    Read the full post