summaryrefslogtreecommitdiff
path: root/bin/docker-shell
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-11-10 01:30:35 +0000
committermo khan <mo.khan@gmail.com>2020-11-10 01:30:35 +0000
commit82338d974f42149e70f9163567940453f8f18b79 (patch)
tree8f61c9dccbd468de456e516113e9d6f289a7a157 /bin/docker-shell
parentf8200b265f63173c9b8d0b26470b449f512dbd17 (diff)
fix: detect maven wrapper in sub directory
* chore: fix bin scripts
Diffstat (limited to 'bin/docker-shell')
-rwxr-xr-xbin/docker-shell9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/docker-shell b/bin/docker-shell
index d75bd7c..07b2a70 100755
--- a/bin/docker-shell
+++ b/bin/docker-shell
@@ -5,9 +5,12 @@ set -e
cd "$(dirname "$0")/.."
IMAGE_NAME=${IMAGE_NAME:-$(basename "$PWD"):latest}
+root_dir=/builds/gitlab-org/security-products/analyzers/license-finder
docker run --rm -it \
- --entrypoint='' \
+ --entrypoint='bash' \
--network=host \
- --volume "$PWD":/builds/gitlab-org/security-products/analyzers/license-finder \
- "$IMAGE_NAME" sh -c 'cd /builds/gitlab-org/security-products/analyzers/license-finder && exec bash -l'
+ --env=RUBYLIB="${root_dir}/lib" \
+ --workdir="${root_dir}" \
+ --volume "$PWD":"${root_dir}" \
+ "$IMAGE_NAME" -l