Skip to content

Commit

Permalink
Adding the base image for AmazonLinux 2023
Browse files Browse the repository at this point in the history
Adding a base image for building Swift for AmazonLinux 2023. This
installs the minimally required dependencies for building the compiler
and runtime libraries.
  • Loading branch information
etcwilde committed Nov 5, 2024
1 parent 1d8396a commit d5cf5a0
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions swift-ci/main/amazon-linux/2023/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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 \
cmake \
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


# TODO: Still need to install bits for lldb

USER build-user
WORKDIR /home/build-user

0 comments on commit d5cf5a0

Please sign in to comment.