Skip to content

Commit

Permalink
Add openSUSE Leap 15.6 package builders.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferroin committed Jun 12, 2024
1 parent 8b27044 commit 025c877
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/data/matrices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ package-builders:
platforms:
- linux/amd64
- linux/arm64/v8
- <<: *opensuse
os: opensuse15.6
- <<: *opensuse
os: opensuse15.5
- <<: *opensuse
Expand Down
78 changes: 78 additions & 0 deletions package-builders/Dockerfile.opensuse15.6.v1
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
FROM opensuse/leap:15.6

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 openSUSE Leap 15.6"
LABEL org.opencontainers.image.description="Package builder image for Netdata official RPM packages for openSUSE Leap 15.6"
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=0.1
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN zypper update -y && \
zypper install -y --allow-downgrade \
autoconf \
autoconf-archive \
autogen \
automake \
bison \
cmake \
cups \
cups-devel \
curl \
diffutils \
flex \
freeipmi-devel \
gcc \
gcc-c++ \
git-core \
json-glib-devel \
judy-devel \
libatomic1 \
libcurl-devel \
libelf-devel \
liblz4-devel \
libjson-c-devel \
libyaml-devel \
libmnl0 \
libmnl-devel \
libnetfilter_acct1 \
libnetfilter_acct-devel \
libpcre2-8-0 \
libopenssl-devel \
libprotobuf-c-devel \
libtool \
libuv-devel \
libuuid-devel \
libzstd-devel \
make \
ninja \
patch \
pkg-config \
protobuf-devel \
rpm-build \
rpm-devel \
rpmdevtools \
snappy-devel \
systemd-devel \
tar \
wget \
xen-devel && \
zypper clean && \
rm -rf /var/cache/zypp/*/* && \
c_rehash && \
mkdir -p /usr/src/packages/BUILD /usr/src/packages/RPMS /usr/src/packages/SOURCES /usr/src/packages/SPECS /usr/src/packages/SRPMS

COPY package-builders/entrypoint.sh /entrypoint.sh
COPY package-builders/suse-build.sh /build.sh

ENV PATH="/usr/local/go/bin:${PATH}"
ADD https://raw.githubusercontent.com/netdata/netdata/master/packaging/check-for-go-toolchain.sh /tmp/check-for-go-toolchain.sh
RUN . /tmp/check-for-go-toolchain.sh && \

Check warning on line 72 in package-builders/Dockerfile.opensuse15.6.v1

View workflow job for this annotation

GitHub Actions / hadolint

[hadolint] reported by reviewdog 🐶 Not following: File not included in mock. Raw Output: message:"Not following: File not included in mock." location:{path:"package-builders/Dockerfile.opensuse15.6.v1" range:{start:{line:72 column:1}}} severity:INFO source:{name:"hadolint" url:"https://github.com/hadolint/hadolint"} code:{value:"SC1091" url:"https://github.com/koalaman/shellcheck/wiki/SC1091"}
if ! ensure_go_toolchain; then \
echo "ERROR: ${GOLANG_FAILURE_REASON}" && exit 1 ; \
fi

ENTRYPOINT ["/entrypoint.sh"]
CMD ["/build.sh"]
72 changes: 72 additions & 0 deletions package-builders/Dockerfile.opensuse15.6.v2
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
FROM opensuse/leap:15.6

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 openSUSE Leap 15.6"
LABEL org.opencontainers.image.description="Package builder image for Netdata official RPM packages for openSUSE Leap 15.6"
LABEL org.opencontainers.image.vendor="Netdata Inc."

ENV VERSION=0.1
# Dummy Sentry DSN
ENV SENTRY_DSN="https://[email protected]/dummy"

RUN zypper update -y && \
zypper install -y --allow-downgrade \
bison \
cmake \
cups \
cups-devel \
curl \
diffutils \
flex \
freeipmi-devel \
gcc \
gcc-c++ \
git-core \
gzip \
json-glib-devel \
judy-devel \
libatomic1 \
libcurl-devel \
libelf-devel \
liblz4-devel \
libjson-c-devel \
libyaml-devel \
libmnl0 \
libmnl-devel \
libnetfilter_acct1 \
libnetfilter_acct-devel \
libpcre2-8-0 \
libopenssl-devel \
libprotobuf-c-devel \
libuv-devel \
libuuid-devel \
libzstd-devel \
make \
ninja \
patch \
pkg-config \
protobuf-devel \
rpmdevtools \
snappy-devel \
systemd-devel \
systemd-rpm-macros \
tar \
wget \
xen-devel && \
zypper clean && \
rm -rf /var/cache/zypp/*/* && \
c_rehash

COPY package-builders/entrypoint.sh /entrypoint.sh
COPY package-builders/cpack-rpm.sh /build.sh

ENV PATH="/usr/local/go/bin:${PATH}"
ADD https://raw.githubusercontent.com/netdata/netdata/master/packaging/check-for-go-toolchain.sh /tmp/check-for-go-toolchain.sh
RUN . /tmp/check-for-go-toolchain.sh && \

Check warning on line 66 in package-builders/Dockerfile.opensuse15.6.v2

View workflow job for this annotation

GitHub Actions / hadolint

[hadolint] reported by reviewdog 🐶 Not following: File not included in mock. Raw Output: message:"Not following: File not included in mock." location:{path:"package-builders/Dockerfile.opensuse15.6.v2" range:{start:{line:66 column:1}}} severity:INFO source:{name:"hadolint" url:"https://github.com/hadolint/hadolint"} code:{value:"SC1091" url:"https://github.com/koalaman/shellcheck/wiki/SC1091"}
if ! ensure_go_toolchain; then \
echo "ERROR: ${GOLANG_FAILURE_REASON}" && exit 1 ; \
fi

ENTRYPOINT ["/entrypoint.sh"]
CMD ["/build.sh"]

0 comments on commit 025c877

Please sign in to comment.