From 614ace7ea9e8d635e2c5bcc1601b122aba55e737 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" <alexander.klimov@icinga.com> Date: Thu, 2 Dec 2021 11:05:53 +0100 Subject: [PATCH] Add impish --- .gitlab-ci.yml | 3 +++ Makefile | 2 +- impish/Makefile | 1 + impish/x86_64/Dockerfile | 27 +++++++++++++++++++++++++++ impish/x86_64/Makefile | 1 + 5 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 impish/Makefile create mode 100644 impish/x86_64/Dockerfile create mode 100644 impish/x86_64/Makefile diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7d028d8..2f6e8fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,9 @@ before_script: - make -C ${CI_JOB_NAME} - '[ "$CI_COMMIT_REF_NAME" != master ] || make -C ${CI_JOB_NAME} push' +impish: + <<: *build_job + hirsute: <<: *build_job diff --git a/Makefile b/Makefile index 999a146..4945eee 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -TARGETS := bionic disco focal hirsute +TARGETS := bionic disco focal hirsute impish TARGETS_PUSH := $(TARGETS:=-push) TARGETS_CLEAN := $(TARGETS:=-clean) diff --git a/impish/Makefile b/impish/Makefile new file mode 100644 index 0000000..5a52fcc --- /dev/null +++ b/impish/Makefile @@ -0,0 +1 @@ +include ../dist_x86_64.mk diff --git a/impish/x86_64/Dockerfile b/impish/x86_64/Dockerfile new file mode 100644 index 0000000..20f853d --- /dev/null +++ b/impish/x86_64/Dockerfile @@ -0,0 +1,27 @@ +FROM ubuntu:impish + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update \ + && apt-get install -y eatmydata \ + && eatmydata apt-get upgrade -y + +RUN eatmydata apt-get install -y \ + sudo wget curl tar expect git \ + devscripts build-essential lintian ccache pbuilder aptitude apt-utils + +RUN curl https://packages.icinga.com/icinga.key | apt-key add - \ + && DIST="$(lsb_release -sc)" \ + && echo "deb http://packages.icinga.com/ubuntu icinga-${DIST} main" > /etc/apt/sources.list.d/${DIST}-icinga.list + +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 + +RUN git clone https://git.icinga.com/build-docker/scripts.git /usr/local/bin +RUN icinga-provide-go +USER build +ENTRYPOINT ["/usr/local/bin/icinga-build-entrypoint"] +CMD ["icinga-build-package"] diff --git a/impish/x86_64/Makefile b/impish/x86_64/Makefile new file mode 100644 index 0000000..15497f2 --- /dev/null +++ b/impish/x86_64/Makefile @@ -0,0 +1 @@ +include ../../image.mk -- GitLab