Skip to content

badouralix/dockerize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

dockerize

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.

Installation

In your shell rc file, add the following line :

source /path/to/dockerize

Usage

Use default name:tag

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`

Set your own name:tag

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>

License

All contents licensed under the WTFPL

About

A tiny wrapper for docker build

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages