Skip to content

Commit 7b75dca

Browse files
Fix EPEL installation on Amazon Linux 2
1 parent 086085f commit 7b75dca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

swift-ci/main/amazon-linux/2/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ RUN groupadd -g 998 build-user && \
66
useradd -m -r -u 42 -g build-user build-user
77

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

1211
# Update and install needed build packages
1312
RUN yum -y group install "development tools"

0 commit comments

Comments
 (0)