1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
#
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016-2022, Intel Corporation
#
#
# Dockerfile - a 'recipe' for Docker to build an image of debian-based
# environment prepared for running tests of librpma.
#
# Pull base image
FROM debian:testing
MAINTAINER tomasz.gromadzki@intel.com
ENV DEBIAN_FRONTEND noninteractive
# Update the Apt cache and install basic tools
RUN apt-get update && apt-get dist-upgrade -y
# base Linux deps
ENV BASE_DEPS "\
apt-utils \
build-essential \
clang \
devscripts \
git \
pkg-config \
sudo \
whois"
# librpma library deps
ENV RPMA_DEPS "\
cmake \
curl \
gawk \
groff \
graphviz \
libibverbs-dev \
librdmacm-dev \
pandoc"
# examples deps ('libprotobuf-c-dev' is required only for examples 9 and 9s)
ENV EXAMPLES_DEPS "\
libpmem-dev \
libpmem2-dev \
libprotobuf-c-dev"
# Install all required packages
RUN apt-get install -y --no-install-recommends \
$BASE_DEPS \
$RPMA_DEPS \
$EXAMPLES_DEPS \
&& rm -rf /var/lib/apt/lists/*
# Install cmocka
COPY install-cmocka.sh install-cmocka.sh
RUN ./install-cmocka.sh
# Install txt2man
COPY install-txt2man.sh install-txt2man.sh
RUN ./install-txt2man.sh
# Add user
ENV USER user
ENV USERPASS p1a2s3s4
RUN useradd -m $USER -g sudo -p `mkpasswd $USERPASS`
USER $USER
# Set required environment variables
ENV OS debian
ENV OS_VER testing
ENV PACKAGE_MANAGER deb
ENV NOTTY 1
|