/docker/ci/Dockerfile

https://github.com/keylime/keylime · Dockerfile · 68 lines · 56 code · 4 blank · 8 comment · 3 complexity · ee11f94e0713523e5898826cf970efa8 MD5 · raw file

  1. ##############################################################################
  2. # keylime TPM 2.0 Dockerfile
  3. #
  4. # This file is for automatic test running of Keylime and rust-keylime.
  5. # It is not recommended for use beyond testing scenarios.
  6. ##############################################################################
  7. FROM quay.io/fedora/fedora:34-x86_64
  8. MAINTAINER Luke Hinds <lhinds@redhat.com>
  9. LABEL version="1.0.1" description="Keylime - Bootstrapping and Maintaining Trust in the Cloud"
  10. # environment variables
  11. ARG BRANCH=master
  12. ENV container docker
  13. ENV HOME /root
  14. ENV KEYLIME_HOME ${HOME}/keylime
  15. ENV TPM_HOME ${HOME}/swtpm2
  16. COPY dbus-policy.conf /etc/dbus-1/system.d/
  17. # Packaged dependencies
  18. ENV PKGS_DEPS="automake \
  19. cargo \
  20. clang-devel \
  21. dbus \
  22. dbus-daemon \
  23. dbus-devel \
  24. dnf-plugins-core \
  25. efivar-devel \
  26. gcc \
  27. git \
  28. glib2-devel \
  29. glib2-static \
  30. gnulib \
  31. kmod \
  32. libselinux-python3 \
  33. libtool \
  34. libtpms \
  35. make \
  36. openssl-devel \
  37. procps \
  38. python3-cryptography \
  39. python3-dbus \
  40. python3-devel \
  41. python3-m2crypto \
  42. python3-pip \
  43. python3-requests \
  44. python3-setuptools \
  45. python3-sqlalchemy \
  46. python3-tornado \
  47. python3-virtualenv \
  48. python3-yaml \
  49. python3-zmq \
  50. redhat-rpm-config \
  51. rust \
  52. swtpm \
  53. swtpm-tools \
  54. tpm2-abrmd \
  55. tpm2-tools \
  56. tpm2-tss \
  57. tpm2-tss-devel \
  58. uthash-devel \
  59. wget \
  60. which"
  61. RUN dnf makecache && \
  62. dnf -y install $PKGS_DEPS && \
  63. dnf clean all && \
  64. rm -rf /var/cache/dnf/*