diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d577a73b1b55970bf633159a1135cea1f21dbb54..4063721bcb2bf357c1dccd463e278d290e4408b8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,3 +27,6 @@ before_script: '15.0': <<: *build_job + +'15.1': + <<: *build_job diff --git a/15.1/Dockerfile b/15.1/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..0d3527f518b73c3b1bd004f887f9994c1f7e6843 --- /dev/null +++ b/15.1/Dockerfile @@ -0,0 +1,35 @@ +FROM opensuse/leap:15.1 + +RUN zypper refresh -f \ + && zypper update -y \ + && zypper clean + +RUN zypper --non-interactive install --no-recommends \ + sudo wget curl which tar expect git \ + make patch rpm-build rpmlint \ + && zypper clean + +RUN zypper --non-interactive install --no-recommends \ + cmake libopenssl-devel ccache \ + && zypper clean + +RUN OBS_DIST=openSUSE_Leap_15.1 \ + && zypper --non-interactive addrepo --refresh https://download.opensuse.org/repositories/home:/lazyfrosch:/devel:/tools/"${OBS_DIST}"/home:lazyfrosch:devel:tools.repo \ + && zypper --gpg-auto-import-keys --non-interactive install spectool createrepo \ + && zypper clean -a + +RUN rpm --import https://packages.icinga.com/icinga.key \ + && zypper --non-interactive addrepo --refresh https://packages.icinga.com/openSUSE/ICINGA-release.repo \ + && zypper --non-interactive refresh \ + && zypper clean -a + +RUN groupadd -g 1000 build \ + && useradd -u 1000 -g 1000 -m build \ + && echo 'Defaults:build !requiretty' | tee -a /etc/sudoers \ + && echo 'build ALL=(ALL:ALL) NOPASSWD: ALL' | tee -a /etc/sudoers \ + && chown build.build /usr/local/bin + +USER build +RUN git clone https://git.icinga.com/build-docker/scripts.git /usr/local/bin +ENTRYPOINT ["/usr/local/bin/icinga-build-entrypoint"] +CMD ["icinga-build-package"] diff --git a/15.1/Makefile b/15.1/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..f451fe153997996b75db9be5b1b9b967fad97fc4 --- /dev/null +++ b/15.1/Makefile @@ -0,0 +1,2 @@ +VARIANT := x86_64 +include ../image.mk diff --git a/Makefile b/Makefile index 4f46117b6769c1ce0b7015804158f6365620c764..47a1f4a3a4570c9e5de9b965690cb3802b77e482 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,9 @@ all: $(MAKE) -C 42.3 $(MAKE) -C 15.0 + $(MAKE) -C 15.1 push: $(MAKE) -C 42.3 push $(MAKE) -C 15.0 push + $(MAKE) -C 15.1 push