Andrew Tarry

Boring thoughts on software development

  • Using hostnames in docker compose

    I’ve talked about docker before and I think it makes an extremely powerful part of the development toolchain. It gives you the ability to run a docker container locally and then deploy that same container to production. That’s all well and good but production has things other than just your app, it’s got a database, maybe a redis cache, perhaps some other internal services to talk to. So how do you replicate all of this...
    Read more...

  • Thoughts on Terraform

    I recently go involved in a number of projects using Terraform to create AWS environments. Having spent a lot of the last few weeks looking at nothing but Terraform here are some of my thoughts about it. Terraform does support a lot more providers that AWS but I’ve not tried them so I’m not going to talk about them here. It’s great First things first, Terraform is extremely powerful and much easier to work with...
    Read more...

  • Symfony in a Docker Container

    Docker provides an extremely flexible way to package and deploy a Symfony 2 application. This guide will help you get an application running in a container so it can be deployed to any environment that supports Docker. Installing Docker Getting Docker installed depends your environment, Linux users can run Docker natively but Mac or Windows users will need to install docker-machine. All of the installation instructions for your environment can be found on the Docker...
    Read more...

  • You don't need a bigger instance

    I am a big fan of Amazon Web Services and host a lot of projects there. One thing I keep on hearing from people when they first start using AWS is that they need a bigger instance. I have heard over and over again that ‘we need 4xlarge instance to run our application’, that normally means it has not been designed properly for the cloud. If the only answer is a bigger instance then you’re...
    Read more...

  • Merging with git branches with Jenkins

    Jenkins offers a lot of great features beyond just testing your code. Today we will look at merging branches with Jenkins. This is a really useful feature because you can ensure your tests are updated before anything is committed to specific branches. In most projects you will have some branches that should always be stable, often called master or deploy. The problem with committing code to these branches is that if there is a bug...
    Read more...