-
Notifications
You must be signed in to change notification settings - Fork 143
Dockerfiles
Boris Glimcher edited this page Jul 18, 2024
·
4 revisions
This page has Dockerfiles for building swtpm in a Docker container. Please adapt them for your needs.
Opened https://github.com/stefanberger/swtpm/pull/875 to include Dockerfile
and docker-compose.yml
Ubuntu 18.04 (from Rui Lopes [email protected]):
# cp -r ../libtpms/build .
# docker build -t build-swtpm-ubuntu-18.04 -f Dockerfile.ubuntu-18.04 .
# docker run --rm build-swtpm-ubuntu-18.04 | tar --extract --verbose
# docker rmi build-swtpm-ubuntu-18.04
# find build -name '*.deb' | xargs -L1 -i% bash -c 'echo %; dpkg -c %'
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update && \
apt-get -y install build-essential fakeroot devscripts equivs
ADD . /build/src
WORKDIR /build/src
RUN dpkg -i /build/src/build/libtpms*.deb
RUN mk-build-deps \
--install \
--build-dep \
'--tool=apt-get --no-install-recommends -y' \
debian/control
RUN NOCONFIGURE=1 ./autogen.sh
RUN dpkg-buildpackage -b -us -uc -j$(nproc)
ENTRYPOINT tar --create --to-stdout /build/*.deb