Skip to content

smitssjors/ddenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Dev Environment

Ddenv is a CLI tool to help with using docker as development environment. It currently supports the following project management tools:

  • yarn

Installation

Ddenv requires Python 3.10+

pip install ddenv

Usage

$ ddenv --help
Usage: ddenv [OPTIONS] [COMMAND]...

  Run the command in a Docker container with all the dependencies and
  source code

Arguments:
  [COMMAND]...  The command to run

Options:
  -m, --manager TEXT              The project manager your project uses
                                  [required]
  -v, --version TEXT              The version of the project
                                  manager/runtime
  -p, --port TEXT                 Ports to forward. Example: -p 5000:5000
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified
                                  shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell,
                                  to copy it or customize the installation.
  --help                          Show this message and exit.

Example:

ddenv -m yarn yarn dev