vincentcox / StaCoAn

StaCoAn is a crossplatform tool which aids developers, bugbounty hunters and ethical hackers performing static code analysis on mobile applications.
MIT License
827 stars 129 forks source link

Docker #66

Closed thistehneisen closed 6 years ago

thistehneisen commented 6 years ago
┌─[nils@parrot]─[~/Code/Python/StaCoAn/docker]
└──╼ $sudo docker run -e JAVA_OPTS="-Xms2048m -Xmx2048m" -p 8888:8888 -p 7777:7777 -i -t stacoan
usage: stacoan.py [-h] [-p PATH [PATH ...]] [--disable-browser]
                  [--disable-server]
                  [--log-all | --log-errors | --log-warnings]
stacoan.py: error: unrecognized arguments: --enable-server
vincentcox commented 6 years ago

Thanks for reporting this and creating an issue. I will try to make a fix for this when I am back from vacation.

vincentcox commented 6 years ago

I can confirm the issue:

image

The commit "fix docker" is not working, need to investigate it further

Kevin-De-Koninck commented 6 years ago

I assume this is a carriage return issue. Did you edit the file using windows? if so, do dos2unix stacoan.sh. If that is the case, you could add it in the docker file or so.

vincentcox commented 6 years ago

Fixed in https://github.com/vincentcox/StaCoAn/commit/fe154705a5dc2ca1a8ba3fdd3d13772e8f228bfe (I've put dos2unix inside the docker container)

Follow these instructions to get it up and running again:

rm -rf StaCoAn
git clone https://github.com/vincentcox/StaCoAn
cd StaCoAn/docker
docker build --no-cache . -t stacoan # (--no-cache is needed!)
docker run -e JAVA_OPTS="-Xms2048m -Xmx2048m" -p 8888:8888 -p 7777:7777 -i -t stacoan