From b865e9f31691bae46bf47fc82331ffe9f405690c Mon Sep 17 00:00:00 2001 From: Torsten Raudssus Date: Tue, 3 Dec 2024 00:19:26 +0100 Subject: [PATCH] Updated script, more README, more ignore --- .dockerignore | 2 ++ .gitignore | 1 + README.md | 32 ++++++++++++++++++++++++++++++++ plandex | 5 +++++ 4 files changed, 40 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.dockerignore b/.dockerignore index 2e124b1..7b156a6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,3 @@ plandex +.plandex-* + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cd0b38f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.plandex-* diff --git a/README.md b/README.md new file mode 100644 index 0000000..1f66a2b --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# Plandex CLI Image + +## How To Use + +### Args + +#### SRV_UID + +User ID for the image and so of the data (Default: 1000) + +#### SRV_GID + +Group ID for the image and so of the data (Default: 1000) + +#### SRV_APT_GET_INSTALL + +Additional Debian modules installed + +### Image Name + +``` +src.ci/srv/plandex:latest +``` + +### Install plandex script + +Copy plandex script from this git to an appropiate bin directory. Can only be used in directory with .git + +```shell +cp plandex /usr/local/bin +plandex help +``` diff --git a/plandex b/plandex index 57ac7a2..b748a1f 100755 --- a/plandex +++ b/plandex @@ -1,4 +1,9 @@ #!/bin/sh +if [ ! -d "$PWD/.git" ]; then + echo "ERROR: The current directory does not contain a .git directory." + exit 1 +fi + docker run -it --rm -v$PWD:/app \ src.ci/srv/plandex:latest /usr/local/bin/plandex $@