-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Working occurrences evidence Signed-off-by: Prabhu Subramanian <[email protected]> * Working callstack and services evidence Signed-off-by: Prabhu Subramanian <[email protected]> --------- Signed-off-by: Prabhu Subramanian <[email protected]>
- Loading branch information
Showing
11 changed files
with
219 additions
and
13 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 |
---|---|---|
|
@@ -72,6 +72,7 @@ const args = yargs(hideBin(process.argv)) | |
"php", | ||
"swift", | ||
"ios", | ||
"ruby", | ||
], | ||
}) | ||
.option("db-path", { | ||
|
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,31 @@ | ||
FROM ghcr.io/cyclonedx/debian-ruby26:master | ||
|
||
LABEL maintainer="CycloneDX" \ | ||
org.opencontainers.image.authors="Team AppThreat <[email protected]>" \ | ||
org.opencontainers.image.source="https://github.com/CycloneDX/cdxgen" \ | ||
org.opencontainers.image.url="https://github.com/CycloneDX/cdxgen" \ | ||
org.opencontainers.image.version="rolling" \ | ||
org.opencontainers.image.vendor="AppThreat" \ | ||
org.opencontainers.image.licenses="Apache-2.0" \ | ||
org.opencontainers.image.title="cdxgen" \ | ||
org.opencontainers.image.description="Rolling image with cdxgen SBOM generator for Ruby 2.6 apps" \ | ||
org.opencontainers.docker.cmd="docker run --rm -v /tmp:/tmp -p 9090:9090 -v $(pwd):/app:rw -t ghcr.io/cyclonedx/cdxgen-debian-ruby26:v11 -r /app --server" | ||
|
||
ENV CDXGEN_IN_CONTAINER=true \ | ||
NODE_COMPILE_CACHE="/opt/cdxgen-node-cache" \ | ||
CDXGEN_GEM_HOME="/tmp/gems" \ | ||
ATOM_RUBY_HOME=/root/.rbenv/versions/3.4.1 \ | ||
RUBY_CMD=/root/.rbenv/versions/3.4.1/bin/ruby \ | ||
PYTHONPATH=/opt/pypi | ||
ENV PATH=${PATH}:/usr/local/bin:/opt/pypi/bin:/opt/cdxgen/node_modules/.bin: | ||
|
||
COPY . /opt/cdxgen | ||
|
||
RUN cd /opt/cdxgen && corepack enable && corepack pnpm install --prod --package-import-method copy && corepack pnpm cache delete \ | ||
&& mkdir -p /opt/cdxgen-node-cache \ | ||
&& node /opt/cdxgen/bin/cdxgen.js --help \ | ||
&& rbastgen --help \ | ||
&& rm -rf ${CDXGEN_GEM_HOME} && mkdir -p ${CDXGEN_GEM_HOME} \ | ||
&& chmod a-w -R /opt | ||
|
||
ENTRYPOINT ["node", "/opt/cdxgen/bin/cdxgen.js"] |
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,32 @@ | ||
FROM ruby:2.6.10 | ||
|
||
ARG JAVA_VERSION=23.0.1-tem | ||
ARG NODE_VERSION=20.18.1 | ||
ARG ATOM_RUBY_VERSION=3.4.1 | ||
|
||
ENV JAVA_VERSION=$JAVA_VERSION \ | ||
JAVA_HOME="/opt/java/${JAVA_VERSION}" \ | ||
ATOM_RUBY_VERSION=$ATOM_RUBY_VERSION \ | ||
BUNDLE_SILENCE_ROOT_WARNING=true \ | ||
LC_ALL=en_US.UTF-8 \ | ||
LANG=en_US.UTF-8 \ | ||
LANGUAGE=en_US.UTF-8 \ | ||
NVM_DIR="/root/.nvm" | ||
ENV PATH=/root/.nvm/versions/node/v${NODE_VERSION}/bin:${PATH}:/usr/local/bin:/root/.local/bin:/root/.rbenv/bin: | ||
|
||
COPY ci/base-images/debian/install.sh /tmp/ | ||
|
||
RUN apt-get update && apt-get install -qq -y --no-install-recommends curl bash bzip2 git-core zip unzip make gawk \ | ||
&& apt-get install -qq -y build-essential gcc-9 g++-9 python2 libmagic-dev locales nodejs \ | ||
&& locale-gen en_US.UTF-8 \ | ||
&& gem install bundler -v 1.17.3 \ | ||
&& bundle config git.allow_insecure true \ | ||
&& chmod +x /tmp/install.sh \ | ||
&& SKIP_PYTHON=yes ./tmp/install.sh && rm /tmp/install.sh \ | ||
&& node -v \ | ||
&& npm -v \ | ||
&& npm install -g corepack \ | ||
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
CMD /bin/bash |
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
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
Oops, something went wrong.