It helps to manage developer test environments based on docker-compose files.
The released binaries are statically compiled, so they can run in almost all linux distributions. App running is tested in Ubuntu 4 (2006). Supported platforms is:
- Linux x86, x86_64
To install dcw
system wide with bash completion run this command in your terminal:
sudo sh -c 'curl -sSL https://github.com/navrocky/dcw/raw/master/install.sh | bash'
Usage: dcw [OPTIONS] SUBCOMMAND
Options:
-h,--help Print this help message and exit
Subcommands:
add, a Add named docker compose file as workspace
rm, r Remove workspace
list, l List registered workspaces
up, u Switch to the workspace
down, d Down current workspace
dcw
can use the .dcw
project file in the source root to get information about a new project.
Just run dcw up
in the root of the project with the .dcw
file and let dcw
take care of the rest.
Sample .dcw
project file:
name: myproj
composeFile: env/docker-compose.yml
A project file can be automatically created with the add
command with the -p, --create-project
flag.
dcw add myproj /home/user/myproj/docker-compose.yml
dcw add -p myproj docker-compose.yml
dcw list
Output is:
🟢 myproj: /home/user/myproj/docker-compose.yml
⚫ otherproj: /home/user/otherproj/docker-compose.yml
dcw up otherproj
dcw down -p