Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[container] build container with SoftHSM2 from Dockerfile #28

Merged

Conversation

timothytrippel
Copy link
Collaborator

This adds a Dockerfile, build script, and Bazel build rules to build a container with SoftHSM2 inside (from a Dockerfile) so that it may be used by the SPM server container.

After being built, the container was then pushed to the public OpenTitan public GCP Artifact Registry, found here: us-docker.pkg.dev/opentitan/opentitan-public

This is required fix the integration tests since the previous base container image used by the SPM server could contain a version of the PCKS#11 shared library that was not built in the same environment the SPM server was built it, causing dependency issues.

Signed-off-by: Tim Trippel ttrippel@google.com

This shortens and aligns the name of the base container to make it
easier to type.

Signed-off-by: Tim Trippel <ttrippel@google.com>
util/containers/build/README.md Outdated Show resolved Hide resolved
This adds a Dockerfile, build script, and Bazel build rules to build a
container with SoftHSM2 inside (from a Dockerfile) so that it may be used
by the SPM server container.

After being built, the container was then pushed to the public OpenTitan
Provisioning container registry, found here:
us-docker.pkg.dev/opentitan/opentitan-public

This is required fix the integration tests since the previous base
container image used by the SPM server could contain a version of the
PCKS#11 shared library that was not built in the same environment the
SPM server was built it, causing dependency issues.

Signed-off-by: Tim Trippel <ttrippel@google.com>
Container images should be released via a container registry. Including
them in the tarball of the release binaries wastes build time as the
containers are quite large (1G+).

Signed-off-by: Tim Trippel <ttrippel@google.com>
@timothytrippel timothytrippel merged commit db02930 into lowRISC:main Oct 4, 2024
3 checks passed
@timothytrippel timothytrippel deleted the build-softhsm-in-container branch October 4, 2024 20:00
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.

2 participants