Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

kairops/docker-command-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED

Please visit https://github.com/ayudadigital/docker-command-launcher

Kairops Docker Command Launcher

Simply Bash script to run dockerized commands.

Usage

  1. Copy the kd.sh script to /usr/local/bin with cp kd.sh /usr/local/bin/kd
  2. Make it executable with chmod 777 /usr/local/bin/kd
  3. Execute any Docker Command with kd command [file_or_folder] [parameter] [parameter] [...]

Command help:

Usage:  kd command [file_or_folder] [parameter] [parameter] [...]

command:            The Docker Command to execute, like 'hello-world' or 'git-changelog-generator'

Options:
  [file_or_folder]:   Optional file or folder to give to the container
       [parameter]:   Optional parameters. Depends on the 'docker-command' you are running

Examples:

  kd hello-world
  kd git-changelog-generator .

You can also concatenate two or more Docker Commands through a pipe

Examples:

  kd git-changelog-generator . | kd md2html - > changelog.html

Available commands:

* commit-validator v0.1.1
* get-next-release-number v1.0.2
* git-changelog-generator v0.7.4
* hello-world v0.2.1
* md2html v1.1.1
* mdline v0.1.0

Other options:
- KD_DEBUG=1    to enable verbose debug info (export KD_DEBUG=1)
- KD_EDGE=1     to use the latest release of the commands (export KD_EDGE=1)
- KD_SENTINEL=1 to enable a 24h image cache sentinel (export KD_SENTINEL=1)

Available commands