-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from theresa-m/dockerfile
Add Dockerfile for running tool in a containerized environment
- Loading branch information
Showing
2 changed files
with
23 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,15 @@ | ||
FROM eclipse-temurin:17 | ||
|
||
RUN apt update | ||
RUN apt install -y git maven | ||
|
||
WORKDIR /cdx2spdx | ||
RUN git clone https://github.com/spdx/cdx2spdx.git | ||
WORKDIR /cdx2spdx/cdx2spdx | ||
RUN git submodule update --init --recursive | ||
ENV JAVA_HOME=/opt/java/openjdk | ||
RUN mvn clean package | ||
|
||
RUN mv /cdx2spdx/cdx2spdx/target/*-jar-with-dependencies.jar /cdx2spdx/cdx2spdx/target/cdx2spdx-tool.jar | ||
|
||
CMD ["java", "-jar", "/cdx2spdx/cdx2spdx/target/cdx2spdx-tool.jar", "/cdx2spdx/sboms/cyclonedx.json", "/cdx2spdx/sboms/spdx.json"] |
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