Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amazon linux 2023 #370

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
replace yum with dnf
  • Loading branch information
tayloraswift committed Feb 18, 2024
commit e3a858758080b067803763c8b30dd504f9555860
12 changes: 4 additions & 8 deletions swift-ci/master/amazon-linux/2023/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
FROM amazonlinux:2023

RUN yum install shadow-utils -y
RUN dnf install shadow-utils -y

RUN groupadd -g 998 build-user && \
useradd -m -r -u 42 -g build-user build-user

# The build needs a package from the EPEL repo so that needs to be enabled.
# https://www.tecmint.com/install-epel-repository-on-centos/
# RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

# Update and install needed build packages
RUN yum -y group install "development tools"
RUN yum -y install \
RUN dnf -y group install "development tools"
RUN dnf -y install \
cmake \
curl-devel \
gcc-c++ \
Expand Down Expand Up @@ -42,7 +38,7 @@ RUN yum -y install \
zip

# Additional dependencies specifically for Amazon Linux 2023
RUN yum install -y \
RUN dnf install -y \
libmpc-devel \
texinfo

Expand Down