super simple build services for docker container images
Over the course of the past three days I build many dozens of containers. I have not been using any container build service like [OSBS] for that. Finally, I got tired of checking for the correct docker build command in my history and implemented the super simple build service – ssbs.
It consists of two parts:
- a LABEL within the Dockerfile and
- a shell alias
I have put
LABEL Build docker build --rm --tag goern/wordpress-centos7-atomicapp . in my docker file. And this shell alias to evaluate it
alias docker-build='$(grep LABEL Dockerfile | grep Build | cut -d " " -f 3- )'.