Skip to content

Conversation

@GwendalLaurent
Copy link

Add rebar3_sbom for the generation of SBOM for Erlang project.

rebar3_sbom is wrapped in bombom. This allows to run rebar3_sbom without installing a full Erlang distribution.


RUN mkdir -p $BOMBOM_HOME/bin \
&& curl -L https://github.com/stritzinger/bombom/releases/download/${BOMBOM_VERSION}/bombom.bin -o $BOMBOM_HOME/bin/bombom \
&& chmod a+x $BOMBOM_HOME/bin/bombom

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need some mechanism to verify authenticity. Something like SLSA via cosign or just a shasum.

Dockerfile Outdated
ENV BOMBOM_HOME=/opt/bombom

RUN mkdir -p $BOMBOM_HOME/bin \
&& curl -L https://github.com/stritzinger/bombom/releases/download/${BOMBOM_VERSION}/bombom.bin -o $BOMBOM_HOME/bin/bombom \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this binary is not portable to amd64 / aarch64, is that correct?
ORT Dockerfiles build to both architectures and you need to download the right binary based on arch.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ziopio Is there a way to generate binaries for other architectures ?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we can do that

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be resolved in the next bombom release once this PR is merged.

# Erlang (Rebar3 SBoM wrapped in Bombom)
FROM base AS rebar3_sbom_build

ARG BOMBOM_VERSION

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also need to set the correct version in /.env.versions.

@maennchen
Copy link

You can see my change for mix here: e6bb099

Install rebar3_sbom binary using the Bombom wrapper

Signed-off-by: GwendalLaurent <[email protected]>
@GwendalLaurent GwendalLaurent force-pushed the sosef/rebar3_sbom_docker branch from 12b6bb9 to 96ee0a5 Compare December 17, 2025 16:25
@maennchen maennchen mentioned this pull request Jan 14, 2026
12 tasks
@maennchen
Copy link

Superseeded by #4

@GwendalLaurent
Copy link
Author

@maennchen Should I close this PR since it's superseeded ?

@maennchen
Copy link

@GwendalLaurent Yes

@GwendalLaurent GwendalLaurent deleted the sosef/rebar3_sbom_docker branch January 19, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants