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

Add openSUSE Leap 15.6 package builders. #295

Merged
merged 1 commit into from
Jun 12, 2024
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
2 changes: 2 additions & 0 deletions .github/data/matrices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ package-builders:
platforms:
- linux/amd64
- linux/arm64/v8
- <<: *opensuse
os: opensuse15.6
- <<: *opensuse
os: opensuse15.5
- &oracle
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"]
Loading