Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit fc45717

Browse files
docker: cleanup packages in Fedora and Ubuntu images
1 parent 000af28 commit fc45717

8 files changed

Lines changed: 473 additions & 202 deletions

utils/docker/images/Dockerfile.fedora-32

Lines changed: 66 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,47 +20,85 @@ ENV NOTTY 1
2020
ARG SKIP_VALGRIND_BUILD
2121
ARG SKIP_PMDK_BUILD
2222

23-
# Install basic tools
24-
RUN dnf update -y \
25-
&& dnf install -y \
26-
asciidoc \
27-
autoconf \
28-
automake \
29-
bash-completion \
30-
clang \
23+
# Base development packages
24+
ARG BASE_DEPS="\
3125
cmake \
32-
daxctl-devel \
33-
doxygen \
3426
gcc \
3527
gcc-c++ \
36-
gdb \
3728
git \
38-
hub \
39-
json-c-devel \
40-
kmod-devel \
29+
make"
30+
31+
# Dependencies for compiling libpmemobj-cpp project
32+
ARG LIBPMEMOBJ_CPP_DEPS="\
4133
libatomic \
42-
libtool \
43-
libudev-devel \
44-
libunwind-devel \
45-
libuuid-devel \
46-
make \
34+
tbb-devel"
35+
36+
# PMDK's dependencies (optional; libpmemobj-devel package may be used instead)
37+
ARG PMDK_DEPS="\
38+
autoconf \
39+
automake \
40+
daxctl-devel \
41+
gdb \
4742
man \
48-
ncurses-devel \
4943
ndctl-devel \
50-
open-sans-fonts \
5144
pandoc \
52-
passwd \
53-
perl-Text-Diff \
5445
rpm-build \
5546
rpm-build-libs \
5647
rpmdevtools \
57-
SFML-devel \
58-
sudo \
48+
which"
49+
50+
# pmem's Valgrind (optional; valgrind-devel may be used instead)
51+
ARG VALGRIND_DEPS="\
52+
autoconf \
53+
automake"
54+
55+
# Examples (optional)
56+
ARG EXAMPLES_DEPS="\
57+
ncurses-devel \
58+
SFML-devel"
59+
60+
# Documentation (optional)
61+
ARG DOC_DEPS="\
62+
doxygen"
63+
64+
# Tests (optional)
65+
ARG TESTS_DEPS="\
66+
gdb \
67+
libunwind-devel"
68+
69+
# Misc for our builds/CI (optional)
70+
ARG MISC_DEPS="\
71+
clang \
72+
hub \
73+
perl-Text-Diff \
74+
pkgconf \
75+
sudo"
76+
77+
ARG REDUNDANT_DEPS="\
78+
bash-completion \
79+
open-sans-fonts \
80+
passwd \
5981
tar \
60-
tbb-devel \
61-
wget \
62-
which \
6382
xmlto \
83+
asciidoc \
84+
json-c-devel \
85+
kmod-devel \
86+
libtool \
87+
libudev-devel \
88+
libuuid-devel"
89+
90+
# Update packages and install basic tools
91+
RUN dnf update -y \
92+
&& dnf install -y \
93+
${BASE_DEPS} \
94+
${LIBPMEMOBJ_CPP_DEPS} \
95+
${PMDK_DEPS} \
96+
${VALGRIND_DEPS} \
97+
${EXAMPLES_DEPS} \
98+
${DOC_DEPS} \
99+
${TESTS_DEPS} \
100+
${COVERITY_DEPS} \
101+
${MISC_DEPS} \
64102
&& dnf clean all
65103

66104
# Install valgrind

utils/docker/images/Dockerfile.fedora-33

Lines changed: 67 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,47 +20,86 @@ ENV NOTTY 1
2020
ARG SKIP_VALGRIND_BUILD
2121
ARG SKIP_PMDK_BUILD
2222

23-
# Install basic tools
24-
RUN dnf update -y \
25-
&& dnf install -y \
26-
asciidoc \
27-
autoconf \
28-
automake \
29-
bash-completion \
30-
clang \
23+
# Base development packages
24+
ARG BASE_DEPS="\
3125
cmake \
32-
daxctl-devel \
33-
doxygen \
3426
gcc \
3527
gcc-c++ \
36-
gdb \
3728
git \
38-
hub \
39-
json-c-devel \
40-
kmod-devel \
29+
make"
30+
31+
# Dependencies for compiling libpmemobj-cpp project
32+
ARG LIBPMEMOBJ_CPP_DEPS="\
4133
libatomic \
42-
libtool \
43-
libudev-devel \
44-
libunwind-devel \
45-
libuuid-devel \
46-
make \
34+
tbb-devel"
35+
36+
# PMDK's dependencies (optional; libpmemobj-devel package may be used instead)
37+
ARG PMDK_DEPS="\
38+
autoconf \
39+
automake \
40+
daxctl-devel \
41+
gdb \
4742
man \
48-
ncurses-devel \
4943
ndctl-devel \
50-
open-sans-fonts \
5144
pandoc \
52-
passwd \
53-
perl-Text-Diff \
5445
rpm-build \
5546
rpm-build-libs \
5647
rpmdevtools \
57-
SFML-devel \
58-
sudo \
48+
which"
49+
50+
# pmem's Valgrind (optional; valgrind-devel may be used instead)
51+
ARG VALGRIND_DEPS="\
52+
autoconf \
53+
automake"
54+
55+
# Examples (optional)
56+
ARG EXAMPLES_DEPS="\
57+
ncurses-devel \
58+
SFML-devel"
59+
60+
# Documentation (optional)
61+
ARG DOC_DEPS="\
62+
doxygen"
63+
64+
# Tests (optional)
65+
ARG TESTS_DEPS="\
66+
gdb \
67+
libunwind-devel"
68+
69+
# Misc for our builds/CI (optional)
70+
ARG MISC_DEPS="\
71+
clang \
72+
hub \
73+
perl-Text-Diff \
74+
pkgconf \
75+
sudo"
76+
77+
ARG REDUNDANT_DEPS="\
78+
bash-completion \
79+
open-sans-fonts \
80+
passwd \
5981
tar \
60-
tbb-devel \
61-
wget \
62-
which \
6382
xmlto \
83+
asciidoc \
84+
json-c-devel \
85+
kmod-devel \
86+
libtool \
87+
libudev-devel \
88+
libuuid-devel \
89+
wget"
90+
91+
# Update packages and install basic tools
92+
RUN dnf update -y \
93+
&& dnf install -y \
94+
${BASE_DEPS} \
95+
${LIBPMEMOBJ_CPP_DEPS} \
96+
${PMDK_DEPS} \
97+
${VALGRIND_DEPS} \
98+
${EXAMPLES_DEPS} \
99+
${DOC_DEPS} \
100+
${TESTS_DEPS} \
101+
${COVERITY_DEPS} \
102+
${MISC_DEPS} \
64103
&& dnf clean all
65104

66105
# Install valgrind

utils/docker/images/Dockerfile.fedora-rawhide

Lines changed: 62 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99

1010
# Pull base image
11-
FROM registry.fedoraproject.org/fedora:rawhide
11+
FROM fedora:rawhide
1212
MAINTAINER igor.chorazewicz@intel.com
1313

1414
# Set required environment variables
@@ -21,54 +21,78 @@ ENV NOTTY 1
2121
ARG SKIP_VALGRIND_BUILD
2222
ARG SKIP_PMDK_BUILD
2323

24+
# Base development packages
25+
ARG BASE_DEPS="\
26+
cmake \
27+
gcc \
28+
gcc-c++ \
29+
git \
30+
make"
31+
32+
# Dependencies for compiling libpmemobj-cpp project
2433
ARG LIBPMEMOBJ_CPP_DEPS="\
2534
libatomic \
26-
libpmem-devel \
2735
libpmemobj-devel \
28-
pmempool"
36+
tbb-devel"
2937

30-
# Install basic tools
31-
RUN dnf update -y \
32-
&& dnf install -y \
33-
asciidoc \
38+
# pmem's Valgrind (optional; valgrind-devel may be used instead)
39+
ARG VALGRIND_DEPS="\
3440
autoconf \
35-
automake \
36-
bash-completion \
37-
clang \
38-
cmake \
39-
cracklib \
40-
cracklib-dicts \
41-
daxctl-devel \
42-
doxygen \
43-
gcc \
44-
gcc-c++ \
41+
automake"
42+
43+
# Examples (optional)
44+
ARG EXAMPLES_DEPS="\
45+
ncurses-devel \
46+
SFML-devel"
47+
48+
# Documentation (optional)
49+
ARG DOC_DEPS="\
50+
doxygen"
51+
52+
# Tests (optional)
53+
ARG TESTS_DEPS="\
4554
gdb \
46-
git \
47-
json-c-devel \
48-
kmod-devel \
49-
libtool \
50-
libudev-devel \
55+
libpmem-devel \
5156
libunwind-devel \
52-
libuuid-devel \
53-
make \
54-
man \
55-
ncurses-devel \
56-
ndctl-devel \
57+
pmempool"
58+
59+
# Misc for our builds/CI (optional)
60+
ARG MISC_DEPS="\
61+
clang \
62+
perl-Text-Diff \
63+
pkgconf \
64+
sudo"
65+
66+
ARG REDUNDANT_DEPS="\
67+
bash-completion \
5768
open-sans-fonts \
58-
pandoc \
5969
passwd \
60-
perl-Text-Diff \
61-
rpm-build \
62-
rpm-build-libs \
63-
rpmdevtools \
64-
SFML-devel \
65-
sudo \
6670
tar \
67-
tbb-devel \
68-
wget \
69-
which \
7071
xmlto \
71-
$LIBPMEMOBJ_CPP_DEPS \
72+
asciidoc \
73+
json-c-devel \
74+
kmod-devel \
75+
libtool \
76+
libudev-devel \
77+
libuuid-devel \
78+
libpmem-devel \
79+
cracklib \
80+
cracklib-dicts \
81+
wget"
82+
83+
# Update packages and install basic tools
84+
RUN dnf update -y \
85+
&& dnf install -y \
86+
asciidoc \
87+
${BASE_DEPS} \
88+
${LIBPMEMOBJ_CPP_DEPS} \
89+
${PMDK_DEPS} \
90+
${VALGRIND_DEPS} \
91+
${EXAMPLES_DEPS} \
92+
${DOC_DEPS} \
93+
${TESTS_DEPS} \
94+
${COVERITY_DEPS} \
95+
${MISC_DEPS} \
7296
&& dnf clean all
7397

7498
# Install valgrind

0 commit comments

Comments
 (0)