Skip to content

Commit

Permalink
Introduce atom-tools to the container images (#1562)
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu authored Jan 15, 2025
1 parent 1d55d7a commit 91f2f00
Show file tree
Hide file tree
Showing 21 changed files with 25 additions and 19 deletions.
2 changes: 1 addition & 1 deletion ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ RUN set -e; \
&& alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 10 \
&& /usr/bin/python${PYTHON_VERSION} --version \
&& /usr/bin/python${PYTHON_VERSION} -m pip install --no-cache-dir --upgrade pip virtualenv \
&& /usr/bin/python${PYTHON_VERSION} -m pip install --no-cache-dir --upgrade pipenv poetry blint uv --target /opt/pypi \
&& /usr/bin/python${PYTHON_VERSION} -m pip install --no-cache-dir --upgrade pipenv poetry blint atom-tools uv --target /opt/pypi \
&& /opt/pypi/bin/poetry --version \
&& /opt/pypi/bin/pipenv --version \
&& /opt/pypi/bin/blint --help \
Expand Down
2 changes: 1 addition & 1 deletion ci/Dockerfile-bun
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ RUN set -e; \
&& alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 10 \
&& python${PYTHON_VERSION} --version \
&& python${PYTHON_VERSION} -m pip install --no-cache-dir --upgrade pip virtualenv \
&& python${PYTHON_VERSION} -m pip install --no-cache-dir --upgrade pipenv poetry blint uv --target /opt/pypi \
&& python${PYTHON_VERSION} -m pip install --no-cache-dir --upgrade pipenv poetry blint atom-tools uv --target /opt/pypi \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& cargo --version \
&& rustc --version \
Expand Down
2 changes: 1 addition & 1 deletion ci/Dockerfile-deno
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RUN set -e; \
&& alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 10 \
&& python${PYTHON_VERSION} --version \
&& python${PYTHON_VERSION} -m pip install --no-cache-dir --upgrade pip virtualenv \
&& python${PYTHON_VERSION} -m pip install --no-cache-dir --upgrade pipenv poetry blint uv --target /opt/pypi \
&& python${PYTHON_VERSION} -m pip install --no-cache-dir --upgrade pipenv poetry blint atom-tools uv --target /opt/pypi \
&& curl -fsSL https://deno.land/x/install/install.sh | sh \
&& deno install -g --allow-read --allow-env --allow-run --allow-sys=uid,systemMemoryInfo,gid,homedir --allow-write --allow-net -n cdxgen --node-modules-dir=auto "npm:@cyclonedx/cdxgen/cdxgen" \
&& deno install -g --allow-read --allow-env --allow-run --allow-sys=uid,systemMemoryInfo,gid,homedir --allow-write -n atom "npm:@appthreat/atom/atom" \
Expand Down
2 changes: 1 addition & 1 deletion ci/base-images/cdxgen/Dockerfile.dotnet6
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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 \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& pip install --upgrade --no-cache-dir blint atom-tools --target /opt/pypi \
&& chmod a-w -R /opt

ENTRYPOINT ["node", "/opt/cdxgen/bin/cdxgen.js"]
2 changes: 1 addition & 1 deletion ci/base-images/cdxgen/Dockerfile.dotnet7
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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 \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& pip install --upgrade --no-cache-dir blint atom-tools --target /opt/pypi \
&& chmod a-w -R /opt

ENTRYPOINT ["node", "/opt/cdxgen/bin/cdxgen.js"]
2 changes: 1 addition & 1 deletion ci/base-images/cdxgen/Dockerfile.dotnet8
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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 \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& pip install --upgrade --no-cache-dir blint atom-tools --target /opt/pypi \
&& chmod a-w -R /opt

ENTRYPOINT ["node", "/opt/cdxgen/bin/cdxgen.js"]
2 changes: 1 addition & 1 deletion ci/base-images/cdxgen/Dockerfile.dotnet9
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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 \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& pip install --upgrade --no-cache-dir blint atom-tools --target /opt/pypi \
&& chmod a-w -R /opt

ENTRYPOINT ["node", "/opt/cdxgen/bin/cdxgen.js"]
2 changes: 1 addition & 1 deletion ci/base-images/cdxgen/Dockerfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
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 \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& pip install --upgrade --no-cache-dir atom-tools --target /opt/pypi \
&& chmod a-w -R /opt

ENTRYPOINT ["node", "/opt/cdxgen/bin/cdxgen.js"]
2 changes: 1 addition & 1 deletion ci/base-images/cdxgen/Dockerfile.java17
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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 \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& pip install --upgrade --no-cache-dir atom-tools --target /opt/pypi \
&& chmod a-w -R /opt

ENTRYPOINT ["node", "/opt/cdxgen/bin/cdxgen.js"]
3 changes: 2 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.node20
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ LABEL maintainer="CycloneDX" \

ENV CDXGEN_IN_CONTAINER=true \
NODE_COMPILE_CACHE="/opt/cdxgen-node-cache"
ENV PATH=${PATH}:/usr/local/bin:/opt/cdxgen/node_modules/.bin:
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 \
&& pip install --upgrade --no-cache-dir atom-tools --target /opt/pypi \
&& chmod a-w -R /opt

ENTRYPOINT ["node", "/opt/cdxgen/bin/cdxgen.js"]
2 changes: 1 addition & 1 deletion ci/base-images/cdxgen/Dockerfile.python
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN source /root/.nvm/nvm.sh \
&& zypper --non-interactive install -l --no-recommends clang7 llvm7 llvm7-devel libcurl-devel libjpeg62-devel libmariadb-devel \
postgresql-devel postgresql16-server-devel libopenssl-devel libopenblas_pthreads-devel lapacke-devel \
&& python3 -m pip install --no-cache-dir --upgrade pip virtualenv \
&& python3 -m pip install --no-cache-dir --upgrade --user pipenv poetry blint uv \
&& python3 -m pip install --no-cache-dir --upgrade --user pipenv poetry blint atom-tools uv \
&& 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 \
Expand Down
3 changes: 2 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.python310
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ENV CDXGEN_IN_CONTAINER=true \
SAFE_PIP_INSTALL=true \
NODE_COMPILE_CACHE="/opt/cdxgen-node-cache" \
CRYPTOGRAPHY_DONT_BUILD_RUST=1 \
PATH=${PATH}:/opt/cdxgen/node_modules/.bin:
PATH=${PATH}:/opt/pypi/bin:/opt/cdxgen/node_modules/.bin:

COPY . /opt/cdxgen

Expand All @@ -24,6 +24,7 @@ RUN zypper --non-interactive install --allow-downgrade -l --no-recommends readli
&& 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 \
&& pip install --upgrade --no-cache-dir atom-tools --target /opt/pypi \
&& chmod a-w -R /opt \
&& zypper clean -a

Expand Down
3 changes: 2 additions & 1 deletion ci/base-images/cdxgen/Dockerfile.python311
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ENV NVM_DIR="/root/.nvm" \
SAFE_PIP_INSTALL=true \
CRYPTOGRAPHY_DONT_BUILD_RUST=1 \
NODE_COMPILE_CACHE="/opt/cdxgen-node-cache" \
PATH=${PATH}:/root/.nvm/versions/node/v${NODE_VERSION}/bin:${JAVA_HOME}/bin:${MAVEN_HOME}/bin:/opt/cdxgen/node_modules/.bin:
PATH=${PATH}:/root/.nvm/versions/node/v${NODE_VERSION}/bin:${JAVA_HOME}/bin:${MAVEN_HOME}/bin:/opt/pypi/bin:/opt/cdxgen/node_modules/.bin:

COPY . /opt/cdxgen

Expand All @@ -34,6 +34,7 @@ RUN source /root/.nvm/nvm.sh \
&& 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 \
&& pip install --upgrade --no-cache-dir atom-tools --target /opt/pypi \
&& chmod a-w -R /opt \
&& zypper clean -a

Expand Down
4 changes: 2 additions & 2 deletions ci/base-images/cdxgen/Dockerfile.rolling
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ ENV CDXGEN_DEBUG_MODE=debug \
CDXGEN_IN_CONTAINER=true \
NODE_COMPILE_CACHE="/opt/cdxgen-node-cache" \
PYTHONPATH=/opt/pypi
ENV PATH=${PATH}:/usr/local/bin:/opt/pypi/bin::/opt/cdxgen/node_modules/.bin:
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 \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& pip install --upgrade --no-cache-dir blint atom-tools --target /opt/pypi \
&& chmod a-w -R /opt

ENTRYPOINT ["node", "/opt/cdxgen/bin/cdxgen.js"]
1 change: 1 addition & 0 deletions ci/base-images/cdxgen/Dockerfile.ruby25
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ 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 \
&& pip install --upgrade --no-cache-dir atom-tools --target /opt/pypi \
&& rbastgen --help \
&& rm -rf ${CDXGEN_GEM_HOME} && mkdir -p ${CDXGEN_GEM_HOME} \
&& chmod a-w -R /opt
Expand Down
2 changes: 1 addition & 1 deletion ci/base-images/cdxgen/debian/Dockerfile.dotnet6
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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 \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& pip install --upgrade --no-cache-dir blint atom-tools --target /opt/pypi \
&& chmod a-w -R /opt

ENTRYPOINT ["node", "/opt/cdxgen/bin/cdxgen.js"]
2 changes: 1 addition & 1 deletion ci/base-images/cdxgen/debian/Dockerfile.dotnet8
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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 \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& pip install --upgrade --no-cache-dir blint atom-tools --target /opt/pypi \
&& chmod a-w -R /opt

ENTRYPOINT ["node", "/opt/cdxgen/bin/cdxgen.js"]
2 changes: 1 addition & 1 deletion ci/base-images/cdxgen/debian/Dockerfile.dotnet9
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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 \
&& pip install --upgrade --no-cache-dir blint --target /opt/pypi \
&& pip install --upgrade --no-cache-dir blint atom-tools --target /opt/pypi \
&& chmod a-w -R /opt

ENTRYPOINT ["node", "/opt/cdxgen/bin/cdxgen.js"]
1 change: 1 addition & 0 deletions ci/base-images/cdxgen/debian/Dockerfile.ruby33
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ 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 \
&& pip install --upgrade --no-cache-dir atom-tools --target /opt/pypi \
&& rbastgen --help \
&& rm -rf ${CDXGEN_GEM_HOME} && mkdir -p ${CDXGEN_GEM_HOME} \
&& chmod a-w -R /opt
Expand Down
1 change: 1 addition & 0 deletions ci/base-images/cdxgen/debian/Dockerfile.ruby34
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ 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 \
&& pip install --upgrade --no-cache-dir atom-tools --target /opt/pypi \
&& rbastgen --help \
&& rm -rf ${CDXGEN_GEM_HOME} && mkdir -p ${CDXGEN_GEM_HOME} \
&& chmod a-w -R /opt
Expand Down
2 changes: 1 addition & 1 deletion ci/base-images/opensuse/Dockerfile.lang
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ RUN set -e; \
&& rm dotnet.tar.gz \
&& dotnet --list-sdks \
&& mkdir /opt/pypi \
&& python -m pip install --no-cache-dir --upgrade poetry pipenv blint custom-json-diff uv --target /opt/pypi \
&& python -m pip install --no-cache-dir --upgrade poetry pipenv blint atom-tools custom-json-diff uv --target /opt/pypi \
&& node -v \
&& npm -v \
&& npm install -g corepack \
Expand Down

0 comments on commit 91f2f00

Please sign in to comment.