-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a Dockerfile for maven 3.6.1, gradle 5.4 and support java11
- Loading branch information
Showing
3 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM openjdk:11-jdk-slim | ||
|
||
MAINTAINER Snyk Ltd | ||
|
||
RUN mkdir /home/node | ||
WORKDIR /home/node | ||
|
||
# Install gradle, node, cli | ||
RUN apt-get update && \ | ||
apt-get install -y curl unzip && \ | ||
curl -L https://services.gradle.org/distributions/gradle-5.4-bin.zip -o gradle-5.4-bin.zip && \ | ||
unzip gradle-5.4-bin.zip -d /home/node/ && \ | ||
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \ | ||
apt-get install -y nodejs jq && \ | ||
npm install --global snyk snyk-to-html && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
chmod -R a+wrx /home/node | ||
|
||
ENV HOME /home/node | ||
ENV M2 /home/node/.m2 | ||
ENV GRADLE_HOME=/home/node/gradle-5.4 | ||
ENV PATH=$PATH:$GRADLE_HOME/bin | ||
|
||
# The path at which the project is mounted (-v runtime arg) | ||
ENV PROJECT_PATH /project | ||
|
||
COPY docker-entrypoint.sh . | ||
COPY snyk_report.css . | ||
|
||
ENTRYPOINT ["./docker-entrypoint.sh"] | ||
|
||
# Default command is `snyk test` | ||
# Override with `docker run ... snyk/snyk-cli <command> <args>` | ||
CMD ["test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM openjdk:8-jdk-slim | ||
|
||
MAINTAINER Snyk Ltd | ||
|
||
RUN mkdir /home/node | ||
WORKDIR /home/node | ||
|
||
# Install maven, node, cli | ||
RUN apt-get update && \ | ||
apt-get install -y curl git && \ | ||
curl -L -o apache-maven-3.6.1-bin.tar.gz https://www-eu.apache.org/dist/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz && \ | ||
tar -xvzf apache-maven-3.6.1-bin.tar.gz && \ | ||
rm -f apache-maven-3.6.1-bin.tar.gz && \ | ||
curl -sL https://deb.nodesource.com/setup_10.x | bash - && \ | ||
apt-get install -y nodejs jq && \ | ||
npm install --global snyk snyk-to-html && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
chmod -R a+wrx /home/node | ||
|
||
ENV HOME /home/node | ||
ENV M2 /home/node/.m2 | ||
ENV PATH /home/node/apache-maven-3.6.1/bin:$PATH | ||
|
||
# The path at which the project is mounted (-v runtime arg) | ||
ENV PROJECT_PATH /project | ||
|
||
ADD docker-entrypoint.sh . | ||
ADD snyk_report.css . | ||
|
||
ENTRYPOINT ["./docker-entrypoint.sh"] | ||
|
||
# Default command is `snyk test` | ||
# Override with `docker run ... snyk/snyk-cli <command> <args>` | ||
CMD ["test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM openjdk:11-jdk-slim | ||
|
||
MAINTAINER Snyk Ltd | ||
|
||
RUN mkdir /home/node | ||
WORKDIR /home/node | ||
|
||
# Install maven, node, cli | ||
RUN apt-get update && \ | ||
apt-get install -y curl git && \ | ||
curl -L -o apache-maven-3.6.1-bin.tar.gz https://www-eu.apache.org/dist/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz && \ | ||
tar -xvzf apache-maven-3.6.1-bin.tar.gz && \ | ||
rm -f apache-maven-3.6.1-bin.tar.gz && \ | ||
curl -sL https://deb.nodesource.com/setup_10.x | bash - && \ | ||
apt-get install -y nodejs jq && \ | ||
npm install --global snyk snyk-to-html && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
chmod -R a+wrx /home/node | ||
|
||
ENV HOME /home/node | ||
ENV M2 /home/node/.m2 | ||
ENV PATH /home/node/apache-maven-3.6.1/bin:$PATH | ||
|
||
# The path at which the project is mounted (-v runtime arg) | ||
ENV PROJECT_PATH /project | ||
|
||
ADD docker-entrypoint.sh . | ||
ADD snyk_report.css . | ||
|
||
ENTRYPOINT ["./docker-entrypoint.sh"] | ||
|
||
# Default command is `snyk test` | ||
# Override with `docker run ... snyk/snyk-cli <command> <args>` | ||
CMD ["test"] |