Skip to content

Commit 9133789

Browse files
committed
Ubuntu Resoluted add
1 parent 656f4b1 commit 9133789

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

ubuntu/resolute/Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Ubuntu Resolute Raccoon (26.04) with VitexSoftware APT repo configured
2+
FROM ubuntu:resolute
3+
4+
ARG REPO_URL=https://repo.vitexsoftware.com
5+
ARG KEY_URL=https://repo.vitexsoftware.com/KEY.gpg
6+
7+
ENV DEBIAN_FRONTEND=noninteractive
8+
9+
COPY scripts/add-vitexsoftware-apt.sh /usr/local/bin/add-vitexsoftware-apt.sh
10+
RUN chmod +x /usr/local/bin/add-vitexsoftware-apt.sh \
11+
&& echo 'Acquire::Check-Valid-Until "false";' >> /etc/apt/apt.conf.d/10no-check-valid-until \
12+
&& echo 'Acquire::AllowInsecureRepositories "true";' >> /etc/apt/apt.conf.d/99allow-insecure \
13+
&& echo 'APT::Get::AllowUnauthenticated "true";' >> /etc/apt/apt.conf.d/99allow-unauth \
14+
&& apt-get update \
15+
&& apt-get install -y --allow-unauthenticated --no-install-recommends ca-certificates curl gnupg debconf-utils \
16+
&& echo 'pbuilder pbuilder/mirrorsite string http://deb.debian.org/debian' | debconf-set-selections \
17+
&& add-vitexsoftware-apt.sh resolute "$REPO_URL" "$KEY_URL" \
18+
&& apt-get update \
19+
&& apt-get install -y --no-install-recommends \
20+
build-essential devscripts pbuilder sudo aptitude fakeroot git \
21+
php php-intl php-xml php-mbstring phpunit composer \
22+
gettext locales locales-all \
23+
exim4 mailutils unzip lsb-release procps \
24+
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
25+
&& echo "cs_CZ.UTF-8 UTF-8" >> /etc/locale.gen \
26+
&& locale-gen en_US.UTF-8 cs_CZ.UTF-8 \
27+
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
28+
&& update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=en_US:en \
29+
&& sed -i -e '/sendmail_path/c\sendmail_path="cat - >> /tmp/mailfile"' /etc/php/*/*/php.ini \
30+
&& touch /tmp/mailfile \
31+
&& chmod uog+rw /tmp/mailfile \
32+
&& (getent group 222 >/dev/null || groupadd -g 222 jenkins) \
33+
&& (id -u 222 >/dev/null 2>/dev/null || useradd -m -u 222 -g 222 -s /bin/bash -G sudo jenkins) \
34+
&& echo 'jenkins ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/jenkins \
35+
&& chmod 0440 /etc/sudoers.d/jenkins \
36+
&& rm -rf /var/lib/apt/lists*
37+
38+
CMD ["bash"]

0 commit comments

Comments
 (0)