Martin Ahrer

Thinking outside the box

docker-compose scripting

2017-02-07 3 min read martin
This time we look at managing large numbers of compose projects. When building complex infrastructure using docker-compose we soon end in a mess of scripts for starting, updating, etc. containers. I will try to describe an approach that has helped to get this done in a very structured way. Continue reading

docker-compose modularization

2017-02-06 3 min read martin
In this blog post we are looking into how we can create modular compose projects. With docker-compose we can describe a bunch of containers and container related resources such as networks and volumes that make up an application. All this is usually going into a docker-compose. Continue reading

Bean Mapping of Transfer Objects

2016-03-08 6 min read martin
In the past years I have been working on multiple projects where the so-called Data Transfer Object (short DTO) pattern has been heavily used. This is a pattern that has even been a core pattern in the JEE world. This pattern certainly has its justification for the right cases. Continue reading

0001-01-01 1 min read
Build tool chain container images export DOCKER_BUILDKIT=1 docker image build -t martinahrer/ansible:alpine -f Dockerfile_ansible . docker image build -t martinahrer/footloose:alpine -f Dockerfile_footloose . docker image build -t martinahrer/inspec:alpine -f Dockerfile_inspec . Run all pipeline steps. cd src/main/ drone exec --trusted drone. Continue reading

0001-01-01 1 min read
Start consul agent (in dev mode) consul agent -dev -config-file server.hcl open http://localhost:8500

0001-01-01 1 min read
Start nomad server and client agents nomad agent -config server.hcl nomad agent -config client1.hcl nomad agent -config client2.hcl nomad agent -config client3.hcl open http://localhost:4646 The agents have no explicit consul configuration. So in case consul is running with default settings, nomad will connect using the defaults (https://www. Continue reading
Newer posts