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
|
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (C) 2019 - 2021 Intel Corporation.
# Pull base image
FROM fedora:34
LABEL maintainer="patryk.kaminski@intel.com"
# Update the dnf cache and install basic tools
RUN dnf update -y && dnf install -y \
asciidoctor \
automake \
bash-completion \
ca-certificates \
daxctl-devel \
devscripts \
g++ \
git \
glib2-devel \
gnutls-devel \
json-c-devel \
keyutils-libs-devel \
kmod-devel \
libattr-devel \
libcap-ng-devel \
libpciaccess-devel \
libtirpc-devel \
libtool \
libudev-devel \
libuuid-devel \
libxml2-devel \
libxslt \
mkpasswd \
ninja-build \
numactl \
numactl-devel \
pixman-devel \
pkgconfig \
python-docutils \
python-pip \
python3-devel \
rpcgen \
rpmdevtools \
sudo \
systemd \
which \
whois \
&& dnf clean all
# Install pytest
RUN pip install wheel
RUN pip install pytest==3.9.2
RUN pip3 install fabric
RUN pip3 install psutil
RUN pip3 install meson
# Add user
ENV USER memkinduser
ENV USERPASS memkindpass
RUN useradd -m $USER -p `mkpasswd $USERPASS`
RUN gpasswd wheel -a $USER
RUN echo '%wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# Create directory for memkind repository
WORKDIR /home/$USER/memkind
# Allow user to create files in the home directory
RUN chown -R $USER:wheel /home/$USER
# Change user to $USER
USER $USER
|