From 9e31f2324eabcae2b848b813005336d5cb2c6cc5 Mon Sep 17 00:00:00 2001 From: Konstantin Shalygin Date: Sat, 29 Jul 2023 17:24:01 +0300 Subject: [PATCH] Added CentOS-Stream to package-builders --- .github/workflows/package-builders.yml | 14 +++++ package-builders/Dockerfile.centos-stream8 | 70 ++++++++++++++++++++++ package-builders/Dockerfile.centos-stream9 | 69 +++++++++++++++++++++ 3 files changed, 153 insertions(+) create mode 100644 package-builders/Dockerfile.centos-stream8 create mode 100644 package-builders/Dockerfile.centos-stream9 diff --git a/.github/workflows/package-builders.yml b/.github/workflows/package-builders.yml index 0a0cb55..db3e23a 100644 --- a/.github/workflows/package-builders.yml +++ b/.github/workflows/package-builders.yml @@ -23,6 +23,8 @@ jobs: - almalinux9 - amazonlinux2 - amazonlinux2023 + - centos-stream8 + - centos-stream9 - centos7 - debian10 - debian11 @@ -64,6 +66,8 @@ jobs: - almalinux9 - amazonlinux2 - amazonlinux2023 + - centos-stream8 + - centos-stream9 - centos7 - debian10 - debian11 @@ -91,6 +95,10 @@ jobs: - {os: amazonlinux2, platform: linux/arm/v7} - {os: amazonlinux2023, platform: linux/i386} - {os: amazonlinux2023, platform: linux/arm/v7} + - {os: centos-stream8, platform: linux/i386} + - {os: centos-stream8, platform: linux/arm/v7} + - {os: centos-stream9, platform: linux/i386} + - {os: centos-stream9, platform: linux/arm/v7} - {os: centos7, platform: linux/i386} - {os: centos7, platform: linux/arm/v7} - {os: centos7, platform: linux/arm64/v8} @@ -141,6 +149,8 @@ jobs: - almalinux9 - amazonlinux2 - amazonlinux2023 + - centos-stream8 + - centos-stream9 - centos7 - debian10 - debian11 @@ -164,6 +174,10 @@ jobs: arches: linux/amd64,linux/arm64/v8 # No other platforms - os: amazonlinux2023 arches: linux/amd64,linux/arm64/v8 # No other platforms + - os: centos-stream8 + arches: linux/amd64,linux/arm64/v8 # possibly linux/ppc64le + - os: centos-stream9 + arches: linux/amd64,linux/arm64/v8 # possibly linux/ppc64le,linux/s390x - os: centos7 arches: linux/amd64 # Unable to provide alternate arches due to our dependence on OKay. - os: debian10 diff --git a/package-builders/Dockerfile.centos-stream8 b/package-builders/Dockerfile.centos-stream8 new file mode 100644 index 0000000..d884148 --- /dev/null +++ b/package-builders/Dockerfile.centos-stream8 @@ -0,0 +1,70 @@ +FROM quay.io/centos/centos:stream8 + +LABEL org.opencontainers.image.authors="Netdatabot " +LABEL org.opencontainers.image.source="https://github.com/netdata/helper-images" +LABEL org.opencontainers.image.title="Netdata Package Builder for CentOS-Stream 8" +LABEL org.opencontainers.image.description="Package builder image for Netdata official RPM packages for CentOS-Stream 8" +LABEL org.opencontainers.image.vendor="Netdata Inc." + +ENV VERSION=$VERSION + +RUN dnf distro-sync -y --nodocs && \ + dnf install -y --nodocs 'dnf-command(config-manager)' && \ + 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 \ + lm_sensors \ + lz4-devel \ + make \ + nc \ + openssl-devel \ + openssl-perl \ + patch \ + pkgconfig \ + procps \ + protobuf-c-devel \ + protobuf-compiler \ + protobuf-devel \ + python3 \ + python3-pyyaml \ + rpm-build \ + rpm-devel \ + rpmdevtools \ + snappy-devel \ + wget \ + zlib-devel && \ + rm -rf /var/cache/dnf && \ + c_rehash && \ + mkdir -p /root/rpmbuild/BUILD /root/rpmbuild/RPMS /root/rpmbuild/SOURCES /root/rpmbuild/SPECS /root/rpmbuild/SRPMS + +COPY package-builders/entrypoint.sh /entrypoint.sh +COPY package-builders/fedora-build.sh /build.sh + +ENTRYPOINT ["/entrypoint.sh"] +CMD ["/build.sh"] diff --git a/package-builders/Dockerfile.centos-stream9 b/package-builders/Dockerfile.centos-stream9 new file mode 100644 index 0000000..d6f524f --- /dev/null +++ b/package-builders/Dockerfile.centos-stream9 @@ -0,0 +1,69 @@ +FROM quay.io/centos/centos:stream9 + +LABEL org.opencontainers.image.authors="Netdatabot " +LABEL org.opencontainers.image.source="https://github.com/netdata/helper-images" +LABEL org.opencontainers.image.title="Netdata Package Builder for CentOS-Stream 9" +LABEL org.opencontainers.image.description="Package builder image for Netdata official RPM packages for CentOS-Stream 9" +LABEL org.opencontainers.image.vendor="Netdata Inc." + +ENV VERSION=$VERSION + +RUN dnf distro-sync -y --nodocs && \ + dnf install -y --nodocs 'dnf-command(config-manager)' && \ + 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 \ + nc \ + openssl-devel \ + openssl-perl \ + patch \ + pkgconfig \ + procps \ + protobuf-c-devel \ + protobuf-compiler \ + protobuf-devel \ + python3 \ + python3-pyyaml \ + rpm-build \ + rpm-devel \ + rpmdevtools \ + snappy-devel \ + wget \ + zlib-devel && \ + rm -rf /var/cache/dnf && \ + c_rehash && \ + mkdir -p /root/rpmbuild/BUILD /root/rpmbuild/RPMS /root/rpmbuild/SOURCES /root/rpmbuild/SPECS /root/rpmbuild/SRPMS + +COPY package-builders/entrypoint.sh /entrypoint.sh +COPY package-builders/fedora-build.sh /build.sh + +ENTRYPOINT ["/entrypoint.sh"] +CMD ["/build.sh"]