Commit Graph

3 Commits

Author SHA1 Message Date
Stefan Berger
e29457defc Dockerfile: Fix casing of 'as'
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2024-09-25 07:20:37 -04:00
Stefan Berger
607eb54b3e ci: Fix the github build action building libtpms in the container
Split the download and untarring from the build of libtpms so that the
build actually happens. Otherwise it was not building libtpms anymore but
seems to have been using a cached version of the container that had an
older version of libtpms.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2024-09-03 14:35:33 -04:00
Boris Glimcher
7d6aac0434 Adding alpine based dockerfile
Fixed #869

Used multi-stage build here to reduce final image size.
Builder should have packages for dev and compile.
Final image should only have dependencies for runtime.

Building is simple using `docker build .` command.

Or `docker build --build-arg="LIBTPMS_BRANCH=v0.9.6" .`
if you want another branch/tag of libtpms.

Next patch will add:
- linter
- build
- tpm2 tools testing

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
2024-07-18 16:48:21 -04:00