From 58f801f0b0fae0f690808fcc75c814d54ddacefd Mon Sep 17 00:00:00 2001 From: Garth Johnson Date: Sun, 11 Feb 2024 15:04:02 -0800 Subject: [PATCH 1/3] commit test of changes in branch for classes (#12) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) 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 From 23db7e9849a2e8ef2f2aa60e6d7b06d51d004f47 Mon Sep 17 00:00:00 2001 From: fisayoadabs Date: Tue, 13 Feb 2024 11:32:14 -0700 Subject: [PATCH 2/3] Utilized min function for verbosity line 25 --- src/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.") From 475329f0928af6b9e2f3d0dcc79ef5fe6894f65c Mon Sep 17 00:00:00 2001 From: fisayoadabs Date: Tue, 13 Feb 2024 12:30:53 -0700 Subject: [PATCH 3/3] Done --- docker-compose.yml | 3 --- 1 file changed, 3 deletions(-) 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"