Skip to content

Commit

Permalink
Clean up package builders in light of switch to CMake.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferroin committed Sep 20, 2023
1 parent 250b28b commit 24e0c83
Show file tree
Hide file tree
Showing 21 changed files with 202 additions and 332 deletions.
34 changes: 15 additions & 19 deletions package-builders/Dockerfile.amazonlinux2
Original file line number Diff line number Diff line change
Expand Up @@ -9,53 +9,49 @@ LABEL org.opencontainers.image.vendor="Netdata Inc."
ENV VERSION=$VERSION

RUN yum update -y && \
yum install -y autoconf \
autoconf-archive \
autogen \
automake \
bison \
yum install -y bison \
bison-devel \
cmake \
cups-devel \
curl \
diffutils \
elfutils-libelf-devel \
findutils \
flex \
flex-devel \
freeipmi-devel \
gcc \
gcc-c++ \
git-core \
golang \
json-c-devel \
libyaml-devel \
libatomic \
libcurl-devel \
libmnl-devel \
libnetfilter_acct-devel \
libtool \
libuuid-devel \
libuv-devel \
lm_sensors \
lz4-devel \
make \
ninja-build \
openssl-devel \
openssl-perl \
patch \
pkgconfig \
'pkgconfig(json-c)' \
'pkgconfig(libelf)' \
'pkgconfig(libipmimonitoring)' \
'pkgconfig(libmnl)' \
'pkgconfig(libnetfilter_acct)' \
'pkgconfig(libsystemd)' \
'pkgconfig(libuv)' \
'pkgconfig(liblz4)' \
'pkgconfig(openssl)' \
'pkgconfig(snappy)' \
'pkgconfig(uuid)' \
'pkgconfig(yaml-0.1)' \
'pkgconfig(zlib)' \
procps \
protobuf-c-devel \
protobuf-compiler \
protobuf-devel \
rpm-build \
rpm-devel \
rpmdevtools \
snappy-devel \
systemd-devel \
wget \
zlib-devel && \
wget && \
yum clean all && \
c_rehash && \
mkdir -p /root/rpmbuild/BUILD /root/rpmbuild/RPMS /root/rpmbuild/SOURCES /root/rpmbuild/SPECS /root/rpmbuild/SRPMS
Expand Down
30 changes: 11 additions & 19 deletions package-builders/Dockerfile.amazonlinux2023
Original file line number Diff line number Diff line change
Expand Up @@ -11,53 +11,45 @@ ENV VERSION=$VERSION
RUN dnf distro-sync -y --nodocs && \
dnf clean packages && \
dnf install -y --nodocs --allowerasing --setopt=install_weak_deps=False --setopt=diskspacecheck=False \
autoconf \
autoconf-archive \
automake \
bison \
bison-devel \
cmake \
cups-devel \
curl \
diffutils \
elfutils-libelf-devel \
findutils \
flex \
flex-devel \
gcc \
gcc-c++ \
git-core \
golang \
json-c-devel \
libyaml-devel \
libatomic \
libcurl-devel \
libmnl-devel \
# FIXME: broken / Missing
# XXX: Can't (currently) find an AL2023 package for this :/
# libnetfilter_acct-devel \
libtool \
libuuid-devel \
libuv-devel \
lm_sensors \
lz4-devel \
make \
ninja-build \
openssl-devel \
openssl-perl \
patch \
pkgconfig \
'pkgconfig(json-c)' \
'pkgconfig(libelf)' \
'pkgconfig(libsystemd)' \
'pkgconfig(libuv)' \
'pkgconfig(liblz4)' \
'pkgconfig(openssl)' \
'pkgconfig(snappy)' \
'pkgconfig(uuid)' \
'pkgconfig(yaml-0.1)' \
'pkgconfig(zlib)' \
procps \
protobuf-c-devel \
protobuf-compiler \
protobuf-devel \
rpm-build \
rpm-devel \
rpmdevtools \
snappy-devel \
systemd-devel \
wget \
zlib-devel && \
wget && \
rm -rf /var/cache/dnf && \
c_rehash && \
mkdir -p /root/rpmbuild/BUILD /root/rpmbuild/RPMS /root/rpmbuild/SOURCES /root/rpmbuild/SPECS /root/rpmbuild/SRPMS
Expand Down
33 changes: 13 additions & 20 deletions package-builders/Dockerfile.centos-stream8
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,37 @@ RUN dnf distro-sync -y --nodocs && \
dnf config-manager --set-enabled powertools && \
dnf clean packages && \
dnf install -y --nodocs --setopt=install_weak_deps=False --setopt=diskspacecheck=False \
autoconf \
autoconf-archive \
autogen \
automake \
bash \
bison \
cmake \
cups-devel \
curl \
libcurl-devel \
diffutils \
elfutils-libelf-devel \
findutils \
flex \
freeipmi-devel \
gcc \
gcc-c++ \
git \
golang \
json-c-devel \
libatomic \
libmnl-devel \
libtool \
libuuid-devel \
libuv-devel \
libyaml-devel \
libcurl-devel \
lm_sensors \
lz4-devel \
make \
ninja-build \
nc \
openssl-devel \
openssl-perl \
patch \
pkgconfig \
'pkgconfig(json-c)' \
'pkgconfig(libelf)' \
'pkgconfig(libipmimonitoring)' \
'pkgconfig(libsystemd)' \
'pkgconfig(libuv)' \
'pkgconfig(liblz4)' \
'pkgconfig(openssl)' \
'pkgconfig(snappy)' \
'pkgconfig(uuid)' \
'pkgconfig(yaml-0.1)' \
'pkgconfig(zlib)' \
procps \
protobuf-c-devel \
protobuf-compiler \
Expand All @@ -57,10 +53,7 @@ RUN dnf distro-sync -y --nodocs && \
rpm-build \
rpm-devel \
rpmdevtools \
snappy-devel \
systemd-devel \
wget \
zlib-devel && \
wget && \
rm -rf /var/cache/dnf && \
c_rehash && \
mkdir -p /root/rpmbuild/BUILD /root/rpmbuild/RPMS /root/rpmbuild/SOURCES /root/rpmbuild/SPECS /root/rpmbuild/SRPMS
Expand Down
31 changes: 12 additions & 19 deletions package-builders/Dockerfile.centos-stream9
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,36 @@ RUN dnf distro-sync -y --nodocs && \
dnf config-manager --set-enabled crb && \
dnf clean packages && \
dnf install -y --allowerasing --nodocs --setopt=install_weak_deps=False --setopt=diskspacecheck=False \
autoconf \
autoconf-archive \
automake \
bash \
bison \
cmake \
cups-devel \
curl \
diffutils \
elfutils-libelf-devel \
findutils \
flex \
freeipmi-devel \
gcc \
gcc-c++ \
git \
golang \
json-c-devel \
libcurl-devel \
libyaml-devel \
libatomic \
libmnl-devel \
libtool \
libuuid-devel \
libuv-devel \
lm_sensors \
lz4-devel \
make \
ninja-build \
nc \
openssl-devel \
openssl-perl \
patch \
pkgconfig \
'pkgconfig(json-c)' \
'pkgconfig(libelf)' \
'pkgconfig(libipmimonitoring)' \
'pkgconfig(libsystemd)' \
'pkgconfig(libuv)' \
'pkgconfig(liblz4)' \
'pkgconfig(openssl)' \
'pkgconfig(snappy)' \
'pkgconfig(uuid)' \
'pkgconfig(yaml-0.1)' \
'pkgconfig(zlib)' \
procps \
protobuf-c-devel \
protobuf-compiler \
Expand All @@ -56,10 +52,7 @@ RUN dnf distro-sync -y --nodocs && \
rpm-build \
rpm-devel \
rpmdevtools \
snappy-devel \
systemd-devel \
wget \
zlib-devel && \
wget && \
rm -rf /var/cache/dnf && \
c_rehash && \
mkdir -p /root/rpmbuild/BUILD /root/rpmbuild/RPMS /root/rpmbuild/SOURCES /root/rpmbuild/SPECS /root/rpmbuild/SRPMS
Expand Down
34 changes: 15 additions & 19 deletions package-builders/Dockerfile.centos7
Original file line number Diff line number Diff line change
Expand Up @@ -10,54 +10,50 @@ ENV VERSION=$VERSION

RUN yum install -y epel-release && \
yum update -y && \
yum install -y autoconf \
autoconf-archive \
autogen \
automake \
bash \
yum install -y bash \
bison \
bison-devel \
cmake \
cups-devel \
curl \
diffutils \
elfutils-libelf-devel \
findutils \
flex \
flex-devel \
freeipmi-devel \
gcc \
gcc-c++ \
git-core \
golang \
json-c-devel \
libyaml-devel \
libatomic \
libcurl-devel \
libmnl-devel \
libnetfilter_acct-devel \
libtool \
libuuid-devel \
libuv-devel \
lm_sensors \
lz4-devel \
make \
ninja-build \
openssl-devel \
openssl-perl \
patch \
pkgconfig \
'pkgconfig(json-c)' \
'pkgconfig(libelf)' \
'pkgconfig(libipmimonitoring)' \
'pkgconfig(libmnl)' \
'pkgconfig(libnetfilter_acct)' \
'pkgconfig(libsystemd)' \
'pkgconfig(libuv)' \
'pkgconfig(liblz4)' \
'pkgconfig(openssl)' \
'pkgconfig(snappy)' \
'pkgconfig(uuid)' \
'pkgconfig(yaml-0.1)' \
'pkgconfig(zlib)' \
procps \
protobuf-c-devel \
protobuf-compiler \
protobuf-devel \
rpm-build \
rpm-devel \
rpmdevtools \
snappy-devel \
systemd-devel \
wget \
zlib-devel && \
wget && \
yum clean all && \
c_rehash && \
mkdir -p /root/rpmbuild/BUILD /root/rpmbuild/RPMS /root/rpmbuild/SOURCES /root/rpmbuild/SPECS /root/rpmbuild/SRPMS
Expand Down
8 changes: 2 additions & 6 deletions package-builders/Dockerfile.debian10
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install -y --no-install-recommends autoconf \
autoconf-archive \
autogen \
automake \
bison \
build-essential \
ca-certificates \
Expand All @@ -40,18 +37,17 @@ RUN apt-get update && \
libelf-dev \
libipmimonitoring-dev \
libjson-c-dev \
libyaml-dev \
libjudy-dev \
liblz4-dev \
libmnl-dev \
libnetfilter-acct-dev \
libprotobuf-dev \
libprotoc-dev \
libsnappy-dev \
libsystemd-dev \
libssl-dev \
libtool \
libsystemd-dev \
libuv1-dev \
libyaml-dev \
make \
ninja-build \
pkg-config \
Expand Down
Loading

0 comments on commit 24e0c83

Please sign in to comment.