Run in the localhost first
$ git clone <a href="https://github.com/OWASP/benchmark">https://github.com/OWASP/benchmark</a>
$ cd benchmark
$ mvn compile (This compiles it)
$ runBenchmark.sh/.bat - This compiles and runs it.
Deploy in App Engine
- Download and install the original App Engine SDK for Java from https://cloud.google.com/appengine/docs/standard/java/download. Remember this is not the latest Cloud SDK. This is old App Engine SDK for JAVA which includes. You will see in the hidden link at the bottom where it says, "The Cloud SDK does not include the
appcfg
tool. If you need to use theappcfg
tool, you can download the App Engine SDK by following the instructions below. - Create a appenginengine-web.xml in the "OWASP-Benchmark\target\benchmark\WEB-INF" Folder. Follow the format mentioned here: https://cloud.google.com/appengine/docs/standard/java/config/appref
- Change the web.xml version to 2.5 instead of 3.1 or 3+ [Ref.]
- Run,
./appengine-java-sdk/bin/appcfg.sh [options] update [WAR_LOCATION]
Which will be in our case,
./appengine-java-sdk/bin/appcfg.sh update OWASP-Benchmark/target/benchmark/WEB-INF
You will get an errors that are mentioned here.
10,000 total
1,000 per directory
Both limits will violated in this deployment, as there more than 10,000 files and OWASP-Benchmark/target/benchmark/WEB-INF/classes/org/owasp/benchmark/testcode has more than 1,000 files in the folder. The option is to optimize the code and remove some files or ask for more quota limit to Google Cloud Support.
Eventually, the process will deploy the application in App Engine Standard.
0 Comments