Skip to content

Commit

Permalink
Upgraded docker image using codeql cli 2.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
arburk committed Jul 9, 2021
1 parent aead612 commit f3c63ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ ENV PATH $MAVEN_HOME/bin:$PATH
RUN wget https://downloads.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz --no-check-certificate && \
tar -zxvf apache-maven-$MAVEN_VERSION-bin.tar.gz && \
rm apache-maven-$MAVEN_VERSION-bin.tar.gz && \
mv apache-maven-$MAVEN_VERSION /usr/lib/mvn
mv apache-maven-$MAVEN_VERSION $MAVEN_HOME

#SETUP codeql cli v.2.5.5
RUN wget https://github.com/github/codeql-cli-binaries/releases/download/v2.5.5/codeql-linux64.zip --no-check-certificate && \
#SETUP codeql cli v.2.5.7
RUN wget https://github.com/github/codeql-cli-binaries/releases/download/v2.5.7/codeql-linux64.zip --no-check-certificate && \
unzip codeql-linux64.zip && \
rm codeql-linux64.zip

Expand All @@ -42,4 +42,3 @@ RUN codeql/codeql query compile codeql-repo/java/ql/src/codeql-suites/java-secur

ADD execute.sh /workdir/execute.sh
CMD ["./execute.sh"]
#ENTRYPOINT ["./execute.sh"]
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ JAVA runtime provided by CodeQL CLI is used
Pull from DockerHub: ```docker pull arburk/codeql-analyzer-java```
or build image like following:
```docker build . -t codeql-analyzer-java:2.5.5```
```docker build . -t codeql-analyzer-java:2.5.7```

The project to scan needs to be mounted into ___/workdir/project2scan/___ like following:
```docker run -v c:/dev/repos/myJavaProject:/workdir/project2scan arburk/codeql-analyzer-java:2.5.5```
2 changes: 1 addition & 1 deletion docker/execute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
cd /workdir/project2scan
echo "cleanup before start"
rm -rf database
mvn clean
mvn -B clean
cd ..

codeql/codeql database create project2scan/database --language=java
Expand Down

0 comments on commit f3c63ad

Please sign in to comment.