Skip to content

Commit

Permalink
Add attestations for binaries compiled from source
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGoderre committed Sep 25, 2023
1 parent 81ad274 commit 9e6fe95
Show file tree
Hide file tree
Showing 12 changed files with 164 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 3.10/alpine/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions 3.10/ubuntu/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions 3.11/alpine/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions 3.11/ubuntu/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions 3.12/alpine/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions 3.12/ubuntu/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions 3.13-rc/alpine/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions 3.13-rc/ubuntu/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions 3.9/alpine/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions 3.9/ubuntu/Dockerfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# syntax=docker/dockerfile:1.4

# Alpine Linux is not officially supported by the RabbitMQ team -- use at your own risk!
FROM alpine:{{ .alpine.version }} as build-base

Expand Down Expand Up @@ -232,6 +234,57 @@ COPY --from=erlang-builder $ERLANG_INSTALL_PATH_PREFIX $ERLANG_INSTALL_PATH_PREF
COPY --from=openssl-builder $OPENSSL_INSTALL_PATH_PREFIX $OPENSSL_INSTALL_PATH_PREFIX
ENV PATH $ERLANG_INSTALL_PATH_PREFIX/bin:$OPENSSL_INSTALL_PATH_PREFIX/bin:$PATH

RUN mkdir -p /usr/local/share/sbom/ && \
<<EOT cat > /usr/local/share/sbom/openssl-erlang.spdx.json
{{
{
spdxVersion: "SPDX-2.3",
SPDXID: "SPDXRef-DOCUMENT",
name: "openssl-erlang-sbom",
documentNamespace: "https://docker.com/docker-scout/fs/sbom-61b3df18-3e41-47b8-a954-e4224f48b2f7",
dataLicense: "CC0-1.0",
packages: [
{
name: "openssl",
versionInfo: .openssl.version,
SPDXID: "SPDXRef-Package--openssl",
externalRefs: [
{
referenceCategory: "PACKAGE-MANAGER",
referenceType: "purl",
referenceLocator: ("pkg:apk/alpine/openssl@" + .openssl.version +"?os_name=alpine\u0026os_version=" + .alpine.version)
}
]
},
{
name: "erlang",
versionInfo: .otp.version,
SPDXID: "SPDXRef-Package--erlang",
externalRefs: [
{
referenceCategory: "PACKAGE-MANAGER",
referenceType: "purl",
referenceLocator: ("pkg:apk/alpine/erlang@" + .otp.version +"?os_name=alpine\u0026os_version=" + .alpine.version)
}
]
},
{
name: "rabbitmq",
versionInfo: .version,
SPDXID: "SPDXRef-Package--rabbitmq",
externalRefs: [
{
referenceCategory: "PACKAGE-MANAGER",
referenceType: "purl",
referenceLocator: ("pkg:github/rabbitmq/rabbitmq-server@" + .version)
}
]
}
]
} | tostring
}}
EOT

ENV RABBITMQ_DATA_DIR /var/lib/rabbitmq

RUN set -eux; \
Expand Down
51 changes: 51 additions & 0 deletions Dockerfile-ubuntu.template
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,57 @@ COPY --from=erlang-builder $ERLANG_INSTALL_PATH_PREFIX $ERLANG_INSTALL_PATH_PREF
COPY --from=openssl-builder $OPENSSL_INSTALL_PATH_PREFIX $OPENSSL_INSTALL_PATH_PREFIX
ENV PATH $ERLANG_INSTALL_PATH_PREFIX/bin:$OPENSSL_INSTALL_PATH_PREFIX/bin:$PATH

RUN mkdir -p /usr/local/share/sbom/ && \
<<EOT cat > /usr/local/share/sbom/openssl-erlang.spdx.json
{{
{
spdxVersion: "SPDX-2.3",
SPDXID: "SPDXRef-DOCUMENT",
name: "openssl-erlang-sbom",
documentNamespace: "https://docker.com/docker-scout/fs/sbom-61b3df18-3e41-47b8-a954-e4224f48b2f7",
dataLicense: "CC0-1.0",
packages: [
{
name: "openssl",
versionInfo: .openssl.version,
SPDXID: "SPDXRef-Package--openssl",
externalRefs: [
{
referenceCategory: "PACKAGE-MANAGER",
referenceType: "purl",
referenceLocator: ("pkg:deb/ubuntu/openssl@" + .openssl.version +"?os_name=ubuntu\u0026os_version=" + .ubuntu.version)
}
]
},
{
name: "erlang",
versionInfo: .otp.version,
SPDXID: "SPDXRef-Package--erlang",
externalRefs: [
{
referenceCategory: "PACKAGE-MANAGER",
referenceType: "purl",
referenceLocator: ("pkg:deb/ubuntu/erlang@" + .otp.version +"?os_name=ubuntu\u0026os_version=" + .ubuntu.version)
}
]
},
{
name: "rabbitmq",
versionInfo: .version,
SPDXID: "SPDXRef-Package--rabbitmq",
externalRefs: [
{
referenceCategory: "PACKAGE-MANAGER",
referenceType: "purl",
referenceLocator: ("pkg:github/rabbitmq/rabbitmq-server@" + .version)
}
]
}
]
} | tostring
}}
EOT

ENV RABBITMQ_DATA_DIR /var/lib/rabbitmq

RUN set -eux; \
Expand Down

0 comments on commit 9e6fe95

Please sign in to comment.