/docker/ci/Dockerfile
https://github.com/keylime/keylime · Dockerfile · 68 lines · 56 code · 4 blank · 8 comment · 3 complexity · ee11f94e0713523e5898826cf970efa8 MD5 · raw file
- ##############################################################################
- # keylime TPM 2.0 Dockerfile
- #
- # This file is for automatic test running of Keylime and rust-keylime.
- # It is not recommended for use beyond testing scenarios.
- ##############################################################################
- FROM quay.io/fedora/fedora:34-x86_64
- MAINTAINER Luke Hinds <lhinds@redhat.com>
- LABEL version="1.0.1" description="Keylime - Bootstrapping and Maintaining Trust in the Cloud"
- # environment variables
- ARG BRANCH=master
- ENV container docker
- ENV HOME /root
- ENV KEYLIME_HOME ${HOME}/keylime
- ENV TPM_HOME ${HOME}/swtpm2
- COPY dbus-policy.conf /etc/dbus-1/system.d/
- # Packaged dependencies
- ENV PKGS_DEPS="automake \
- cargo \
- clang-devel \
- dbus \
- dbus-daemon \
- dbus-devel \
- dnf-plugins-core \
- efivar-devel \
- gcc \
- git \
- glib2-devel \
- glib2-static \
- gnulib \
- kmod \
- libselinux-python3 \
- libtool \
- libtpms \
- make \
- openssl-devel \
- procps \
- python3-cryptography \
- python3-dbus \
- python3-devel \
- python3-m2crypto \
- python3-pip \
- python3-requests \
- python3-setuptools \
- python3-sqlalchemy \
- python3-tornado \
- python3-virtualenv \
- python3-yaml \
- python3-zmq \
- redhat-rpm-config \
- rust \
- swtpm \
- swtpm-tools \
- tpm2-abrmd \
- tpm2-tools \
- tpm2-tss \
- tpm2-tss-devel \
- uthash-devel \
- wget \
- which"
- RUN dnf makecache && \
- dnf -y install $PKGS_DEPS && \
- dnf clean all && \
- rm -rf /var/cache/dnf/*