This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git


The following commit(s) were added to refs/heads/main by this push:
     new 0955975  debian:11: Get a recent cmake version (#269)
0955975 is described below

commit 09559756cff9d6b10bd69b838573c2de1cc7a896
Author: Brian Neradt <[email protected]>
AuthorDate: Thu Oct 26 12:21:05 2023 -0500

    debian:11: Get a recent cmake version (#269)
---
 docker/debian11/Dockerfile | 42 +++++++++++++++++++++++++++++++++++++++---
 1 file changed, 39 insertions(+), 3 deletions(-)

diff --git a/docker/debian11/Dockerfile b/docker/debian11/Dockerfile
index 5c9c809..89d5abb 100644
--- a/docker/debian11/Dockerfile
+++ b/docker/debian11/Dockerfile
@@ -2,14 +2,14 @@
 
 FROM debian:11
 
-RUN <<EOT /bin/bash
+RUN <<EOF /bin/bash
   set -ex
   export DEBIAN_FRONTEND=noninteractive
   apt-get -y update
   apt-get -y install build-essential llvm ccache \
     make pkgconf bison flex g++ clang gettext libc++-dev autoconf automake \
     libtool autotools-dev git distcc file wget openssl hwloc intltool-debian \
-    cmake ninja-build
+    ninja-build
 
   apt-get -y install libssl-dev libexpat1-dev \
     libpcre3-dev libcap-dev libhwloc-dev libunwind8 libunwind-dev zlib1g-dev \
@@ -18,4 +18,40 @@ RUN <<EOT /bin/bash
 
   apt-get -y autoremove
   apt-get -y clean
-EOT
+EOF
+
+RUN <<EOF
+    set -e
+    cd /root
+    wget 
https://github.com/Kitware/CMake/releases/download/v3.27.7/cmake-3.27.7-linux-x86_64.sh
+    chmod +x cmake-3.27.7-linux-x86_64.sh
+    bash ./cmake-3.27.7-linux-x86_64.sh --skip-license --prefix=/opt
+    rm cmake-3.27.7-linux-x86_64.sh
+EOF
+
+# Add the CI's test user. N.B: 1200 is the uid that our jenkins user is
+# configured with, so that has to be used. Otherwise there will be permissions
+# issues.
+ARG username=jenkins
+ARG uid=1200
+RUN <<EOF
+  set -e
+  useradd \
+    --home-dir /home/${username} \
+    --groups users,sudo \
+    --uid ${uid} \
+    --shell /bin/bash \
+    --create-home \
+    ${username}
+  echo "${username} ALL=(ALL:ALL) NOPASSWD:ALL" >> /etc/sudoers
+  chown -R ${username} /home/${username}
+EOF
+
+# We put our custom packages in /opt and we want to use the llvm clang-12.
+RUN <<EOF
+  set -e
+  mkdir -p /opt/bin
+  chmod 755 /opt/bin
+  echo 'PATH=/opt/bin:$PATH' | tee -a /etc/bash.bashrc
+EOF
+ARG PATH=/opt/bin:$PATH

Reply via email to