diff options
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | cgitize/config.py | 2 | ||||
-rw-r--r-- | examples/cgitize.toml | 2 | ||||
-rw-r--r-- | test/integration/docker/docker-compose.yml | 2 |
4 files changed, 5 insertions, 5 deletions
@@ -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 |