CLI that shortens commonly used docker and docker-compose commands.
-
Build package with
source scripts/build.sh
-
Install package:
- Using
pipx
(recommended):source scripts/install.sh
.- Why
pipx
? - It creates separate environment for installed packages, so they don't
interfere with system
python
.
- Why
- Using pip: `pip install dist/app-0.1.03-none-any.whl.
- Using
- Run
dx
ordx --help
to see available commands - Run
dx $command --help
to see available arguments. Ex.dx u --help
- Spin up project
docker-compose up -d
or (if installed0)
dx u
-
Customize names or commands content. You can read short introduction to
typer
here. -
Customize main command alias at
pyproject.toml/[tool.poetry.scripts]
. You can declare more than one script/path inpyproject.toml
. -
Apply changes with
source scripts/update.sh