https://github.com/tpm2-software/tpm2-software-container
Container building stuff
https://github.com/tpm2-software/tpm2-software-container
Last synced: 21 days ago
JSON representation
Container building stuff
- Host: GitHub
- URL: https://github.com/tpm2-software/tpm2-software-container
- Owner: tpm2-software
- License: bsd-2-clause
- Created: 2019-03-21T18:26:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-26T09:00:08.000Z (10 months ago)
- Last Synced: 2025-02-15T08:25:35.523Z (2 months ago)
- Language: M4
- Size: 113 KB
- Stars: 13
- Watchers: 10
- Forks: 19
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tpm2-software-container
This repository contains metadata and scripts used to generate the container
images used for continuous integration (CI) by the various tpm2-software
projects.## Local build
To build the container image locally invoke [Docker](https://www.docker.com/) or
[Podman](https://podman.io/) with the build command generated using `make` from
within the `tpm2-software-container` directory. For example:```sh
make# Build Ubuntu 20.04 image using Docker
docker build -f ./ubuntu-20.04.docker# Build Fedora 32 image using Podman, squashing all intermediate layers together
podman build --squash -f ./fedora-32.docker
```The final output of the build will be an IMAGE ID which can be used to run the container image, for example:
```sh
docker run -it /bin/bash
```or to run the [tpm2-tools](https://github.com/tpm2-software/tpm2-tools) CI sequence locally:
```sh
docker run --rm --env-file /path/to/tpm2-tools/.ci/docker.env -v /path/to/tpm2-tools:/workspace/tpm2-tools /bin/bash -c '/workspace/tpm2-tools/.ci/docker.run'
```or to run the [tpm2-tss](https://github.com/tpm2-software/tpm2-tss) CI sequence locally
```sh
docker run --rm --env-file /path/to/tpm2-tss/.ci/docker.env -v /path/to/tpm2-tss:/workspace/tpm2-tss /bin/bash -c '/workspace/tpm2-tss/.ci/docker.run'
```## Auto builds
The repository is monitored by Github Actions and repository changes are built
and submitted to Github Container Registry. The containers are listed on
[tpm2software/packages](https://github.com/orgs/tpm2-software/packages).For example, to download and run a container based on Fedora 32 from the registry:
```sh
# With Docker
docker run -it --rm ghcr.io/tpm2-software/fedora-32 /bin/bash# With Podman
podman run -it --rm ghcr.io/tpm2-software/fedora-32 /bin/bash
```