Skip to content

Commit

Permalink
Bundle locally built cli in the container images
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed Jan 6, 2025
1 parent 246556a commit 3b5dea0
Show file tree
Hide file tree
Showing 36 changed files with 0 additions and 36 deletions.
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.dotnet6
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ 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 \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& chmod a-w -R /opt
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.dotnet7
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ 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 \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& chmod a-w -R /opt
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.dotnet8
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ 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 \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& chmod a-w -R /opt
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.dotnet9
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ 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 \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& chmod a-w -R /opt
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

RUN cd /opt/cdxgen && corepack enable && corepack pnpm install --prod --package-import-method copy && corepack pnpm cache delete \
&& mkdir -p /opt/cdxgen-node-cache \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& chmod a-w -R /opt
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.java-slim
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ 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 \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& chmod a-w -R /opt

Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.java17
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ 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 \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& chmod a-w -R /opt
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.java17-slim
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ 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 \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& chmod a-w -R /opt

Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.node20
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ 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 \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& chmod a-w -R /opt

Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.python
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ RUN source /root/.nvm/nvm.sh \
&& python3 -m pip install --no-cache-dir --upgrade --user pipenv poetry blint uv \
&& cd /opt/cdxgen && corepack enable && corepack pnpm install --prod --package-import-method copy && corepack pnpm cache delete \
&& mkdir -p /opt/cdxgen-node-cache \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& chmod a-w -R /opt \
&& zypper clean -a
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.python310
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ RUN zypper --non-interactive install --allow-downgrade -l --no-recommends readli
postgresql16-devel postgresql16-server-devel libopenssl-devel libopenblas_pthreads-devel lapacke-devel graphviz-devel \
&& cd /opt/cdxgen && corepack enable && corepack pnpm install --prod --package-import-method copy && corepack pnpm cache delete \
&& mkdir -p /opt/cdxgen-node-cache \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& chmod a-w -R /opt \
&& zypper clean -a
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.python311
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ RUN source /root/.nvm/nvm.sh \
postgresql-devel postgresql16-server-devel libopenssl-devel libopenblas_pthreads-devel lapacke-devel graphviz-devel \
&& cd /opt/cdxgen && corepack enable && corepack pnpm install --prod --package-import-method copy && corepack pnpm cache delete \
&& mkdir -p /opt/cdxgen-node-cache \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& chmod a-w -R /opt \
&& zypper clean -a
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.python36
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ RUN source /root/.nvm/nvm.sh \
postgresql-devel postgresql16-server-devel libopenssl-devel libopenblas_pthreads-devel lapacke-devel \
&& cd /opt/cdxgen && corepack enable && corepack pnpm install --prod --package-import-method copy && corepack pnpm cache delete \
&& mkdir -p /opt/cdxgen-node-cache \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& chmod a-w -R /opt \
&& zypper clean -a
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.python39
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ RUN zypper --non-interactive install --allow-downgrade -l --no-recommends readli
postgresql16-devel postgresql16-server-devel libopenssl-devel libopenblas_pthreads-devel lapacke-devel graphviz-devel \
&& cd /opt/cdxgen && corepack enable && corepack pnpm install --prod --package-import-method copy && corepack pnpm cache delete \
&& mkdir -p /opt/cdxgen-node-cache \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& chmod a-w -R /opt \
&& zypper clean -a
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.rolling
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ 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 \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& chmod a-w -R /opt
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/debian/Dockerfile.dotnet6
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ 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 \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& chmod a-w -R /opt
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/debian/Dockerfile.dotnet8
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ 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 \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& chmod a-w -R /opt
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/cdxgen/debian/Dockerfile.dotnet9
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ 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 \
&& chown -R cyclonedx:cyclonedx /opt/cdxgen /opt/cdxgen-node-cache \
&& node /opt/cdxgen/bin/cdxgen.js --help \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& chmod a-w -R /opt
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/debian/Dockerfile.dotnet6
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ COPY ci/base-images/debian/install.sh /tmp/

RUN apt-get update && apt-get install -y --no-install-recommends curl bash bzip2 git-core zip unzip make gawk \
&& apt-get install -y build-essential mono-devel mono-xbuild nuget python3 python3-pip python3-dev \
&& useradd -ms /bin/bash cyclonedx \
&& chmod +x /tmp/install.sh \
&& ./tmp/install.sh && rm /tmp/install.sh \
&& node -v \
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/debian/Dockerfile.dotnet8
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ COPY ci/base-images/debian/install.sh /tmp/

RUN apt-get update && apt-get install -y --no-install-recommends curl bash bzip2 git-core zip unzip make gawk \
&& apt-get install -y build-essential python3 python3-pip python3-dev \
&& useradd -ms /bin/bash cyclonedx \
&& chmod +x /tmp/install.sh \
&& ./tmp/install.sh && rm /tmp/install.sh \
&& node -v \
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/debian/Dockerfile.dotnet9
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ COPY ci/base-images/debian/install.sh /tmp/

RUN apt-get update && apt-get install -y --no-install-recommends curl bash bzip2 git-core zip unzip make gawk \
&& apt-get install -y build-essential python3 python3-pip python3-dev \
&& useradd -ms /bin/bash cyclonedx \
&& chmod +x /tmp/install.sh \
&& ./tmp/install.sh && rm /tmp/install.sh \
&& node -v \
Expand Down
1 change: 0 additions & 1 deletion ci/base-images/opensuse/Dockerfile.lang
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ RUN set -e; \
&& curl -L --output /usr/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-${GOBIN_VERSION} \
&& chmod +x /usr/bin/bazel \
&& bazel --version \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/opensuse/Dockerfile.python310
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ RUN set -e; \
&& curl -L --output /usr/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-${GOBIN_VERSION} \
&& chmod +x /usr/bin/bazel \
&& bazel --version \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/opensuse/Dockerfile.python39
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ RUN set -e; \
&& curl -L --output /usr/bin/bazel https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-${GOBIN_VERSION} \
&& chmod +x /usr/bin/bazel \
&& bazel --version \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/sle/Dockerfile.dotnet6
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ RUN zypper --non-interactive install -l --no-recommends git-core nodejs20 npm20
&& rm -rf /usr/lib/mono/nuget \
&& dotnet --list-sdks \
&& npm install -g corepack \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a
COPY ci/base-images/nuget /usr/lib/mono/nuget
CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/sle/Dockerfile.dotnet7
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ RUN zypper refresh && zypper --non-interactive update && zypper --non-interactiv
&& mv /root/.sdkman/candidates/* /opt/ \
&& rm -rf /root/.sdkman \
&& npm install -g corepack \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/sle/Dockerfile.dotnet8
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ ENV DOTNET_GENERATE_ASPNET_CERTIFICATE=false \
RUN zypper refresh && zypper --non-interactive update && zypper --non-interactive install -l --no-recommends git-core nodejs20 npm20 python311 python311-pip wget zip unzip make gawk java-21-openjdk-devel \
&& dotnet --list-sdks \
&& npm install -g corepack \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/sle/Dockerfile.dotnet9
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ ENV DOTNET_GENERATE_ASPNET_CERTIFICATE=false \
RUN zypper refresh && zypper --non-interactive update && zypper --non-interactive install -l --no-recommends git-core nodejs20 npm20 python311 python311-pip wget zip unzip make gawk java-21-openjdk-devel \
&& dotnet --list-sdks \
&& npm install -g corepack \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/sle/Dockerfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
&& chmod +x /usr/bin/bazel \
&& bazel --version \
&& npm install -g corepack \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/sle/Dockerfile.java-slim
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ RUN set -e; \
&& chmod +x /usr/bin/bazel \
&& bazel --version \
&& npm install -g corepack \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/sle/Dockerfile.java17
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ RUN set -e; \
&& chmod +x /usr/bin/bazel \
&& bazel --version \
&& npm install -g corepack \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/sle/Dockerfile.java17-slim
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ RUN set -e; \
&& chmod +x /usr/bin/bazel \
&& bazel --version \
&& npm install -g corepack \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/sle/Dockerfile.lang
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ RUN set -e; \
&& chmod +x /usr/bin/bazel \
&& bazel --version \
&& npm install -g corepack \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/sle/Dockerfile.node20
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ RUN set -e; \
&& chmod +x /usr/bin/bazel \
&& bazel --version \
&& npm install -g corepack \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/sle/Dockerfile.python311
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ RUN set -e; \
&& chmod +x /usr/bin/bazel \
&& bazel --version \
&& npm install -g corepack \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash
1 change: 0 additions & 1 deletion ci/base-images/sle/Dockerfile.python36
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ RUN set -e; \
&& chmod +x /usr/bin/bazel \
&& bazel --version \
&& npm install -g corepack \
&& useradd -ms /bin/bash cyclonedx \
&& zypper clean -a

CMD /bin/bash

0 comments on commit 3b5dea0

Please sign in to comment.