Commit 843ddf64 authored by Alexander A. Klimov's avatar Alexander A. Klimov 😎
Browse files

Drop Ubuntu Trusty

parent 1752defc
Pipeline #17609 passed with stage
in 6 minutes and 46 seconds
......@@ -35,6 +35,3 @@ bionic:
xenial:
<<: *build_job
trusty:
<<: *build_job
TARGETS := trusty xenial bionic disco focal hirsute
TARGETS := xenial bionic disco focal hirsute
TARGETS_PUSH := $(TARGETS:=-push)
TARGETS_CLEAN := $(TARGETS:=-clean)
......
include ../dist.mk
FROM i386/ubuntu:trusty
ENV DEBIAN_FRONTEND=noninteractive
# This avoids long-running apt and dpkg commands
# apt seems to close all FDs with fcntl() until the open file limit...
RUN ( \
echo '#!/bin/bash'; \
echo 'ulimit -n 512'; \
echo 'exec /usr/bin/apt-get "$@"'; \
) >/usr/local/sbin/apt-get \
&& chmod +x /usr/local/sbin/apt-get
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=trusty \
&& 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
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"]
include ../../image.mk
FROM ubuntu:trusty
ENV DEBIAN_FRONTEND=noninteractive
# This avoids long-running apt and dpkg commands
# apt seems to close all FDs with fcntl() until the open file limit...
RUN ( \
echo '#!/bin/bash'; \
echo 'ulimit -n 512'; \
echo 'exec /usr/bin/apt-get "$@"'; \
) >/usr/local/sbin/apt-get \
&& chmod +x /usr/local/sbin/apt-get
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=trusty \
&& 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
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"]
include ../../image.mk
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment