sakilaj / docker-image

A simple utility for building-pulling-pushing docker images with multiple tags. docker-compose.yml file required

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requirements

  • python >= 3.4

Installation

python3 setup.py install

Command line options

$ docker-image -h
usage: docker-image [-h] [-f FILE] [-t TAGS] [-L]
                   {build,push,pull} [services [services ...]]

positional arguments:
  {build,push,pull}
  services

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  docker-compose file (default: docker-compose.yml)
  -t TAGS, --tags TAGS
  -L, --dont-tag-latest

Image build example

# Build service1 described in docker-compose.service1.yml
# Add tags `0.0.1`, `testing`, `latest`
# Use `-L` options to remove `latest` tag
$ docker-image -f docker-compose.service1.yml  -t 0.0.1 -t testing build service1

About

A simple utility for building-pulling-pushing docker images with multiple tags. docker-compose.yml file required


Languages

Language:Python 100.0%