From 79c284165606bd7190da4d4a50aa3e486ebd0b81 Mon Sep 17 00:00:00 2001 From: CyberVitexus Date: Fri, 6 Sep 2024 18:11:40 +0200 Subject: [PATCH] Debian 13 Trixie added --- Makefile | 8 +++++++- debian:trixie/Dockerfile | 23 +++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 debian:trixie/Dockerfile diff --git a/Makefile b/Makefile index 3537bbd..a555e21 100644 --- a/Makefile +++ b/Makefile @@ -30,8 +30,11 @@ jammy: kinetic: docker build -t vitexsoftware/ubuntu:stable -t vitexsoftware/ubuntu:kinetic -f ubuntu:kinetic/Dockerfile ubuntu:kinetic/ +trixie: + docker build -t vitexsoftware/debian:unstable -t vitexsoftware/debian:trixie -f debian:trixie/Dockerfile debian:trixie/ + update: - ansible-playbook + ansible-playbook buildx-buster: docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag vitexsoftware/debian:buster debian:buster @@ -42,6 +45,9 @@ buildx-bullseye: buildx-bookworm: docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag vitexsoftware/debian:bookworm debian:bookworm +buildx-trixie: + docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag vitexsoftware/debian:trixie debian:trixie + buildx-focal: docker buildx build --push --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag vitexsoftware/ubuntu:focal ubuntu:focal diff --git a/debian:trixie/Dockerfile b/debian:trixie/Dockerfile new file mode 100644 index 0000000..eb793a1 --- /dev/null +++ b/debian:trixie/Dockerfile @@ -0,0 +1,23 @@ +FROM debian:trixie + +ENV DEBIAN_FRONTEND noninteractive +ENV LANG en_US.utf-8 +ENV LC_ALL en_US.utf-8 + +RUN apt-get update ; apt-get install -y wget ; echo "deb [signed-by=/usr/share/keyrings/vitexsoftware.gpg] http://repo.vitexsoftware.com bookworm main backports" | tee /etc/apt/sources.list.d/vitexsoftware.list ; wget -O /usr/share/keyrings/vitexsoftware.gpg http://repo.vitexsoftware.com/keyring.gpg +RUN apt-get -y install locales ; echo "LC_ALL=en_US.UTF-8" >> /etc/environment ; echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen ; echo "LANG=en_US.UTF-8" > /etc/locale.conf ; locale-gen en_US.UTF-8 +RUN apt-get update && apt-get install -y pbuilder sudo curl wget php composer lsb-release jq moreutils aptitude gdebi-core apt-utils debhelper po-debconf php-xml php-dom php-intl + +RUN \ + groupadd -g 222 jenkins && useradd -u 222 -g jenkins -G sudo -m -s /bin/bash jenkins && \ + sed -i /etc/sudoers -re 's/^%sudo.*/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/g' && \ + sed -i /etc/sudoers -re 's/^root.*/root ALL=(ALL:ALL) NOPASSWD: ALL/g' && \ + sed -i /etc/sudoers -re 's/^#includedir.*/## **Removed the include directive** ##"/g' && \ + echo "jenkins ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \ + echo "Customized the sudoers file for passwordless access to the jenkins user!" && \ + echo "jenkins user:"; su - jenkins -c id + +RUN sed -i -e '/sendmail_path/c\sendmail_path="cat - >> /tmp/mailfile"' /etc/php/*/*/php.ini ; touch /tmp/mailfile ; chmod uog+rw /tmp/mailfile + +RUN mkdir -p /var/lib/jenkins/workspace/ ; chown jenkins:jenkins /var/lib/jenkins/ -Rv +