Debian Codegraph @

src/deps/miniasync/utils/docker/images/Dockerfile.fedora-35

raw
1 #
2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright 2016-2022, Intel Corporation
4 #
5
6 #
7 # Dockerfile - a 'recipe' for Docker to build an image of fedora-based
8 # environment prepared for running tests of miniasync.
9 #
10
11 # Pull base image
12 FROM fedora:35
13 MAINTAINER [email protected]
14
15 # Update all packages
16 RUN dnf update -y
17
18 # base deps
19 ENV BASE_DEPS "\
20 clang \
21 gcc \
22 git \
23 make \
24 patch \
25 pkg-config \
26 rpm-build \
27 which"
28
29 ENV TOOLS_DEPS "\
30 automake \
31 glibc-devel \
32 python3-jinja2"
33
34 ENV TESTS_DEPS "\
35 pylint \
36 python3-pip \
37 python3-pytest"
38
39 ENV PYTHON_DEPS "\
40 markdown2 \
41 matplotlib \
42 pandas"
43
44 # MINIASYNC deps
45 ENV MINIASYNC_DEPS "\
46 cmake \
47 file \
48 gawk \
49 groff \
50 graphviz \
51 pandoc "
52
53 # MINIASYNC-VDM-DML deps
54 ENV MINIASYNC_DML_DEPS "\
55 libuuid-devel"
56
57 # doc update deps
58 ENV DOC_UPDATE_DEPS "\
59 hub"
60
61 # Install all required packages
62 RUN dnf install -y \
63 $BASE_DEPS \
64 $TOOLS_DEPS \
65 $TESTS_DEPS \
66 $MINIASYNC_DEPS \
67 $MINIASYNC_DML_DEPS \
68 $DOC_UPDATE_DEPS \
69 && dnf clean all
70
71 RUN pip3 install --upgrade pip
72
73 # Install valgrind
74 COPY install-valgrind.sh install-valgrind.sh
75 RUN ./install-valgrind.sh fedora
76
77 # Install txt2man
78 COPY install-txt2man.sh install-txt2man.sh
79 RUN ./install-txt2man.sh
80
81 # Install DML
82 COPY install-dml.sh install-dml.sh
83 RUN ./install-dml.sh
84
85 # Add user
86 ENV USER user
87 ENV USERPASS p1a2s3s4
88 RUN useradd -m $USER
89 RUN echo "$USER:$USERPASS" | chpasswd
90 RUN gpasswd wheel -a $USER
91 USER $USER
92
93 # Set required environment variables
94 ENV OS fedora
95 ENV OS_VER 35
96 ENV PACKAGE_MANAGER rpm
97 ENV NOTTY 1
98
99 # install python modules for the default user
100 RUN pip3 install --user $PYTHON_DEPS