-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerized QARK #82
Dockerized QARK #82
Conversation
👍 This is a good area to explore @ilyaglow thanks for the PR |
I think a docker version is very useful! |
@ilyaglow just found that the when i scan a apk with the docker, it will pop the error below. seems python failed to unzip the jar file. but if I install qark manually in my machine (python version: 2.7.13) and scan the same apk file, there is no error. so it is possible the python version issue in the docker file? com.company.mobile.network.util.NetworkStateReceiver |
@Mason-Fan is it about some specific APK file or every APK file you try to scan? If latter I would check the folder that you're mounting to docker and if it has correct (readable) permissions set. |
Added entrypoint and rebased on top of master, hope nobody is annoyed about this :) Updated usage examples:
Alpine based container:
|
@ilyaglow it is a specific apk. but the issue is that i can sscan it in my local machine but failed in docker |
We have just pushed a new version of QARK that solves a lot of problems and enhances the code. As a result we will be closing out all pull requests for the older version since we no longer support it. If you would like to add this change into the new version (if necessary) then please make another PR. |
Do you want QARK to download and set up Android SDK?[y/n] :y |
I’m sorry @flamecopper, I didn’t touch qark and the Dockerfile I made for a year or so, but I’ll hope to take a look in a couple of days. |
Hello,
Why
I believe
docker pull
could be more convenient than installing everything by yourself.Details
My Dockerfile uses
OpenJDK 7
,python 2.7
andAndroid SDK r24.3.4
- the very same version as declared in sdkManager.py.The
CMD
command is a subject to discuss, so I commented it out by now.I set debian as the default base image because it just makes tinkering with the underlying container os easier, but I also made lightweight alpine version if somebody interested.
How to test dockerized version
You can pull my automated build this way (~~~1GB~~ Update: 675MB):
or the alpine version (~~~780MB~~ Update: 436 MB):
Then run it. Change
/assessment/apks
to your local path with an apk file or app sources:The report will be on the same folder
How to build it by yourself (assuming you're on the QARK repo):
Hope somebody will find it useful.
Cheers.