dockerize
is a tiny wrapper for docker build
.
It is designed to be as smallest as possible. Thus, the ONLY use case it is intended to be used for is :
- name of the Dockerfile is the default one :
PATH/Dockerfile
- context is current working directory :
.
- no build-arg
- no cpu limit nor memory limit
Currently, any other case must be dealt with docker build
directly.
In your shell rc file, add the following line :
source /path/to/dockerize
If no argument is passed, dockerize
will build an image with the current directory name as name :
cd /path/to/awesome/directory/containing/dockerfile/
dockerize # will build with `-t $USER-local/awesome/directory/containing/dockerfile`
To build an image with the default tag :
cd /path/to/your/Dockerfile/
dockerize <name>
A custom tag can be specified as followed :
cd /path/to/your/Dockerfile/
dockerize <name>:<tag>
All contents licensed under the WTFPL