From 4d7a66be5217c65b952f017cc1e0fa9c99e39934 Mon Sep 17 00:00:00 2001 From: Andrew Sukach Date: Tue, 13 May 2025 11:50:32 -0700 Subject: [PATCH] Create Amazon Linux 2023 Bootstrap Dockerfile. Adds a docker image with all of the needed depencies for bootstrapping a Swift toolchain on Amazon Linux 2023. --- .../amazon-linux/2023/Bootstrap/Dockerfile | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 swift-ci/main/amazon-linux/2023/Bootstrap/Dockerfile diff --git a/swift-ci/main/amazon-linux/2023/Bootstrap/Dockerfile b/swift-ci/main/amazon-linux/2023/Bootstrap/Dockerfile new file mode 100644 index 00000000..fab54934 --- /dev/null +++ b/swift-ci/main/amazon-linux/2023/Bootstrap/Dockerfile @@ -0,0 +1,44 @@ +FROM amazonlinux:2023 + +RUN yum install shadow-utils -y + +RUN groupadd -g 998 build-user && \ + useradd -m -r -u 42 -g build-user build-user + +RUN yum -y group install "development tools" +RUN yum -y install \ + ninja-build \ + curl-devel \ + gcc-c++ \ + clang \ + git \ + libbsd-devel \ + libedit-devel \ + libicu-devel \ + libuuid-devel \ + libxml2-devel \ + ncurses-devel \ + pkgconfig \ + procps-ng \ + python3 \ + python3-devel \ + python3-distro \ + python3-setuptools \ + rsync \ + sqlite-devel \ + swig \ + tzdata \ + unzip \ + zip \ + lld \ + diffutils \ + which + +RUN curl -fsSL "https://github.com/Kitware/CMake/releases/download/v4.0.2/cmake-4.0.2-linux-`uname -m`.tar.gz" \ + | tar --strip-components=1 -xz -C /usr/local + + +# TODO: Still need to install bits for lldb + +USER build-user +WORKDIR /home/build-user