From f1303e0a704be55ac6d992cf2dad5f27a9c34c3a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 1 Aug 2021 17:16:40 +0300 Subject: change default "output_dir" --- README.md | 4 ++-- cgitize/config.py | 2 +- examples/cgitize.toml | 2 +- test/integration/docker/docker-compose.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 44727f6..83b49a9 100644 --- a/README.md +++ b/README.md @@ -32,14 +32,14 @@ tokens/application passwords). The image is **egortensin/cgitize**. The container reads the config from /etc/cgitize/cgitize.toml and writes the -repositories to /var/tmp/cgitize/output. +repositories to /var/tmp/cgitize. If SSH is required, the socket should be mapped to /var/run/cgitize/ssh-agent.sock. docker run -it --rm \ -v "/path/to/config:/etc/cgitize:ro" \ -v "$SSH_AUTH_SOCK:/var/run/cgitize/ssh-agent.sock" \ - -v "/path/to/output:/var/tmp/cgitize/output" \ + -v "/path/to/output:/var/tmp/cgitize" \ egortensin/cgitize The container executes cgitize inside a cron job. diff --git a/cgitize/config.py b/cgitize/config.py index 2f074bb..9f515c9 100644 --- a/cgitize/config.py +++ b/cgitize/config.py @@ -35,7 +35,7 @@ class Section: class MainSection(Section): - DEFAULT_OUTPUT_DIR = '/var/tmp/cgitize/output' + DEFAULT_OUTPUT_DIR = '/var/tmp/cgitize' @property def output_dir(self): diff --git a/examples/cgitize.toml b/examples/cgitize.toml index e789875..bb7433e 100644 --- a/examples/cgitize.toml +++ b/examples/cgitize.toml @@ -1,6 +1,6 @@ # All settings are optional. -# /var/tmp/cgitize/output by default. +# /var/tmp/cgitize by default. output_dir = "/tmp/cgitize" # URL to clone from the output directory. {name} is replaced by the repository diff --git a/test/integration/docker/docker-compose.yml b/test/integration/docker/docker-compose.yml index c04bfb3..e803515 100644 --- a/test/integration/docker/docker-compose.yml +++ b/test/integration/docker/docker-compose.yml @@ -13,4 +13,4 @@ services: volumes: - ./client/etc/:/etc/cgitize:ro - "$SSH_AUTH_SOCK:/var/run/cgitize/ssh-agent.sock" - - ./client/output:/var/tmp/cgitize/output + - ./client/output:/var/tmp/cgitize -- cgit v1.2.3