Bithavoc's Blog

  1. Apr 21, 2018

    Diagnosing Docker Disk Usage

    I’ve been using Docker in Production for over a year in conjunction with Rancher 1.6, the biggest issue so far has been disk usage.

    Dangling images is one of the issues so I had to use a docker container that cleans docker images at least once a...

    devops, docker

  2. Mar 25, 2018

    Solving ESLint Jest warnings

    I recently started adding Test coverage to a react-native project and one our determination as a team is to have zero ESLint warnings throughout the code-base.

    The issue with Jest is that it’s built-in functions such as it and expect are implicitly...

    js, react, react-native, eslint

  3. Feb 9, 2018

    Setting up Rancher Proxy to enforce HTTPS without interrupting Let's encrypt cert renewals

    One of the things I love most about Rancher 1.6 is how easy it makes the use of Let’s encrypt certificates via Let’s encrypt manager for Rancher.

    My setup

    This is an example of my balancer rules:

    Priority Protocol Request Host Port Path

    devops, docker, rancher, haproxy

  4. Dec 1, 2017

    Failing miserably to setup Minio as Backblaze B2 storage for Docker Registry

    Yes, today I failed miserably to setup a Docker Registry server backed by Backblaze B2 using Minio’s B2 Gateway.

    Here’s the result:

    The push refers to a repository [localhost:5000/myfirstimage]
    2f5b0990636a: Pushing [=============================...

    devops, docker

  5. Mar 28, 2017

    Fixing use of undeclared type '_ArrayProtocol'

    Apple just released Xcode 8.3 and Swift 3.1 and with it _ArrayProtocol is now gone so you’d need to switch:


    extension _ArrayProtocol where Iterator.Element == Int { }


    extension Array where Element == Int { }

    Go “Find all and Replace” ...

    swift, native, iOS

  6. Mar 5, 2017

    Custom container command in AWS ECS tasks

    I recently made the switch from Heroku to AWS ECS and customizing the command for the task containers was one of the things I had more trouble with.

    This is my Procfile that I’m trying to convert to ECS task definitions:

    web: bundle exec puma -C config...

    docker, aws, ecs

  7. Oct 5, 2016

    Using the latest Postgres in Circle-CI

    Postgres is included in the base image of Circle-CI, however, sometimes you need a feature such as jsonb_set that is only available from 9.5 and above.

    So you have no other choice but to upgrade to the latest version, luckily the steps are very straightforward...

    postgres, sql, ci, testing

  8. Oct 4, 2016

    Using the latest RabbitMQ in Circle-CI

    RabbitMQ is my favorite distributed messaging queue and I use it for every new project, sadly I constantly found myself struggling to set it up in Circle-CI since it’s not included in the base image.

    So this is what I use in my circle.yml to get it...

    rabbitmq, ci, testing

  9. Jul 4, 2016

    Eureka PushRow With Search Bar

    For my new project I’m using a lot of Data Input and even when Eureka is awesome by itself it’s lacking of search capability in the view controller used by PushRow, the Readme doesn’t provide too much info but after digging up a bit I came with my...

    swift, native, iOS

  10. Jun 9, 2016

    Introducing Breakdeck

    Breakdeck is an app that sends you reminders to take a break and read Tech News.

    Download from the Appstore

    app, swift, iOS, native