Skip to content

vtatarin/docker-command-tool

 
 

Repository files navigation

Build Status

docker-command-tool

It is simple wrapper around docker. It makes possible to create some cli in your project (building static, generating protobuf, etc.).

Example of using:

$ pip install bagga
$ bagga some_command

Example of dct.yaml:

containers:
  static-container: |
    FROM alpine:3.7
    RUN apk add --update nodejs nodejs-npm

  app-container: |
    FROM jfloff/alpine-python
    WORKDIR workdir
    COPY server .
    RUN pip install -r requirements

commands:
  build-js:
    container: static-container
    volumes:
      ~/project:/opt/project
    cmd: |
      echo 'building js'
      echo 'ok'

  build-css:
      container: static-container
      cmd: |
        echo 'building css'
        echo 'ok'

  run:
    container: app-container
    ports:
      5000:5000
    cmd: |
      FLASK_APP=run.py python -m flask run

Run:

$ bagga build-css

bagga params

Command Description
-d [--docker-commands] '{commands}' Add custom docker commands for docker run
-c [--config] '{config_path}' Use custom config file instead of dct.yaml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%