Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CentOS-Stream to package-builders #219

Merged
merged 1 commit into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/package-builders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
- almalinux9
- amazonlinux2
- amazonlinux2023
- centos-stream8
- centos-stream9
- centos7
- debian10
- debian11
Expand Down Expand Up @@ -64,6 +66,8 @@ jobs:
- almalinux9
- amazonlinux2
- amazonlinux2023
- centos-stream8
- centos-stream9
- centos7
- debian10
- debian11
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -141,6 +149,8 @@ jobs:
- almalinux9
- amazonlinux2
- amazonlinux2023
- centos-stream8
- centos-stream9
- centos7
- debian10
- debian11
Expand All @@ -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
Expand Down
70 changes: 70 additions & 0 deletions package-builders/Dockerfile.centos-stream8
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
FROM quay.io/centos/centos:stream8

LABEL org.opencontainers.image.authors="Netdatabot <[email protected]>"
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"]
69 changes: 69 additions & 0 deletions package-builders/Dockerfile.centos-stream9
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
FROM quay.io/centos/centos:stream9

LABEL org.opencontainers.image.authors="Netdatabot <[email protected]>"
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"]
Loading