-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create new image with java17 for zowe v3
Signed-off-by: MarkAckert <[email protected]>
- Loading branch information
1 parent
0eefaf7
commit 1edecd4
Showing
5 changed files
with
100 additions
and
12 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
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,71 @@ | ||
# Set base image as Debian Buster w/ Packaged Ruby | ||
FROM debian:bullseye | ||
|
||
##################################################### | ||
# version the Dockerfile, so we can do release bump | ||
LABEL version="1.0.0" | ||
|
||
USER root | ||
|
||
RUN apt-get update -y && apt-get upgrade -y && \ | ||
apt-get install -y curl bash python3 zip unzip wget software-properties-common python3-pip git && \ | ||
curl -sL https://deb.nodesource.com/setup_20.x | bash - && \ | ||
apt-get update -y && apt-get install -y nodejs openjdk-11-jdk pkg-config | ||
|
||
RUN mkdir /report | ||
RUN mkdir -p /home/build | ||
|
||
ENV HOME=/root | ||
|
||
WORKDIR /home/build | ||
|
||
RUN mkdir -p "$HOME/.npm_global" | ||
ENV NPM_CONFIG_PREFIX="$HOME/.npm-global" | ||
ENV PATH=$PATH:"$HOME/.npm-global/bin" | ||
ENV PATH="$HOME/.cargo/bin:$PATH" | ||
|
||
RUN npm install -g yarn | ||
RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash - | ||
|
||
ENV owasp_version=5.3.2 | ||
ENV owasp_dc_download="https://github.com/jeremylong/DependencyCheck/releases/download/v${owasp_version}/" | ||
|
||
RUN file="dependency-check-${owasp_version}-release.zip" && \ | ||
wget "$owasp_dc_download/$file" && \ | ||
unzip ${file} && \ | ||
rm ${file} | ||
|
||
WORKDIR /home/build | ||
|
||
RUN curl -fL https://getcli.jfrog.io/v2 | sh && chmod 775 jfrog && mv jfrog /usr/local/bin | ||
|
||
|
||
RUN apt-get install libssl-dev build-essential jq -y | ||
|
||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
RUN . "$HOME/.cargo/env" | ||
RUN env | ||
|
||
RUN rustup install stable && rustup default stable | ||
RUN cargo install cargo-license | ||
RUN cargo install get-license-helper | ||
|
||
ARG ORT_VERSION=33.1.0 | ||
|
||
RUN git clone https://github.com/oss-review-toolkit/ort | ||
WORKDIR /home/build/ort | ||
RUN git checkout "$ORT_VERSION" | ||
RUN git submodule update --init --recursive | ||
RUN ./gradlew installDist | ||
|
||
## ORT Binary install - requires Java 17+, which causes issues with some of our v2 projects (Java 11) | ||
# RUN wget -O ort.zip "https://github.com/oss-review-toolkit/ort/releases/download/$ORT_VERSION/ort-$ORT_VERSION.zip" | ||
# RUN unzip ort.zip | ||
ENV PATH=/home/build/ort/cli/build/install/ort/bin:$PATH | ||
|
||
RUN pip install git+https://github.com/aboutcode-org/python-inspector setuptools | ||
|
||
WORKDIR /home/build | ||
|
||
ENTRYPOINT [ "tail", "-f", "/dev/null" ] | ||
|
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
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
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