diff --git a/README.md b/README.md index ab19b62..6a9ac2b 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,11 @@ Some possible tasks to add-to/replace the default options: - setup a reverse proxy for remote shell (outbond from container host to remote support system) - create a container project from defined template + +## Use with Portainer + +Use the `portainer-compose.yml` file and modify to your hearts content. + ## Notes - https://ohmyz.sh/#install diff --git a/docker-compose.yml b/docker-compose.yml index 306c73e..b478322 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,9 +13,6 @@ services: tty: true command: ["/bin/zsh"] volumes: - - ${HOME}/.gitconfig:/home/ubuntu/.gitconfig - - ${HOME}/.ssh:/home/ubuntu/.ssh - - ${PWD}:/app - /var/run/docker.sock:/var/run/docker.sock network_mode: "host" diff --git a/src/tasks.py b/src/tasks.py index b993590..e19df8a 100644 --- a/src/tasks.py +++ b/src/tasks.py @@ -22,7 +22,7 @@ def _set_log_level(verbose=0) -> None: log_levels = ["CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG"] # Ensure verbosity stays within the tollerances - verbose = 4 if verbose > 4 else verbose + verbose = min(4, verbose) # Actually set the logging level logging.basicConfig(level=log_levels[verbose]) @@ -68,7 +68,7 @@ def hello(c, name="world", verbose=0): _set_log_level(verbose) logger.debug("Set loglevel.") - print("Hello {}!".format(name)) + print(f"Hello {name}!") logger.debug("Said hello.")