Skip to content

Commit

Permalink
[Fixed] Remove uneeded bundle install in dlf [#160758436]
Browse files Browse the repository at this point in the history
Signed-off-by: Serafima Ostrovskaya <seostrovskaya@pivotal.io>
  • Loading branch information
xtreme-shane-lattanzio authored and Serafima Ostrovskaya committed Sep 26, 2018
1 parent 6b17ddc commit f44c73f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,5 @@ COPY . /LicenseFinder
RUN bash -lc "cd /LicenseFinder && bundle install -j4 && rake install"

WORKDIR /

CMD bash -lc "cd /scan && /bin/bash -l"
4 changes: 2 additions & 2 deletions dlf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/bash
if `which docker > /dev/null`; then
if [ $# -eq 0 ]; then
docker run -v $PWD:/scan -it licensefinder/license_finder /bin/bash -lc "cd /scan && /bin/bash -l"
docker run -v $PWD:/scan -it licensefinder/license_finder
else
docker run -v $PWD:/scan -it licensefinder/license_finder /bin/bash -lc "cd /scan && bundle install && `echo $@`"
docker run -v $PWD:/scan -it test:omg /bin/bash -lc "cd /scan && `echo $@`"
fi
else
echo "You do not have docker installed. Please install it:"
Expand Down

0 comments on commit f44c73f

Please sign in to comment.