File: Dockerfile.ubuntu-20.04

package info (click to toggle)
memkind 1.14.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,508 kB
  • sloc: ansic: 72,572; cpp: 39,493; sh: 4,594; perl: 4,250; xml: 2,044; python: 1,753; makefile: 1,393; csh: 7
file content (70 lines) | stat: -rw-r--r-- 1,605 bytes parent folder | download
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
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (C) 2019 - 2021 Intel Corporation.

# Pull base image
FROM ubuntu:20.04

LABEL maintainer="patryk.kaminski@intel.com"

# Set apt-get proxy
RUN echo "Acquire::http::proxy \"$HTTP_PROXY\";\nAcquire::https::proxy \"$HTTPS_PROXY\";" > /etc/apt/apt.conf

# Update the Apt cache and install basic tools
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
    asciidoctor \
    automake \
    bash-completion \
    ca-certificates \
    curl \
    devscripts \
    g++ \
    git \
    libattr1-dev \
    libcap-ng-dev \
    libglib2.0-dev \
    libgnutls28-dev \
    libjson-c-dev \
    libkeyutils-dev \
    libkmod-dev \
    libnuma-dev \
    libpciaccess-dev \
    libpixman-1-dev \
    libtirpc-dev \
    libtool \
    libudev-dev \
    libxml2-dev \
    libxml2-utils \
    numactl \
    ninja-build \
    pkg-config \
    python-docutils \
    python3-pip \
    python3.8-dev \
    sudo \
    systemd \
    uuid-dev \
    xsltproc \
    whois \
 && rm -rf /var/lib/apt/lists/*

# Install packages required by python tests
RUN pip3 install wheel
RUN pip3 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 -g sudo -p `mkpasswd $USERPASS`
RUN echo '%sudo 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:sudo /home/$USER

# Change user to $USER
USER $USER