Skip to content

Commit

Permalink
Fixing 'package' CI workflow after CentOS 7 reached end of life. (#931)
Browse files Browse the repository at this point in the history
* Fixing 'package' CI workflow after CentOS 7 reached end of life.

Signed-off-by: Andres Santana <hernaa@amazon.com>

* Separate the installation of epel-release and centos-release-scl.

I suspect this is why some packages like fakeroot are not found.

Signed-off-by: Andres Santana <hernaa@amazon.com>

* Using http instead of https for the repo URIs.

Signed-off-by: Andres Santana <hernaa@amazon.com>

* Trying removing repo centos-release-scl.

Want to try this to see if it helps for ARM build.

Signed-off-by: Andres Santana <hernaa@amazon.com>

* Adding centos-release-scl back.

Signed-off-by: Andres Santana <hernaa@amazon.com>

* Trying CentOS 8.

Signed-off-by: Andres Santana <hernaa@amazon.com>

* Changing to dnf and using group install for dev tools.

Signed-off-by: Andres Santana <hernaa@amazon.com>

* Adding James' suggestion.

Signed-off-by: Andres Santana <hernaa@amazon.com>

---------

Signed-off-by: Andres Santana <hernaa@amazon.com>
  • Loading branch information
arsh authored Jul 3, 2024
1 parent 0b4c14d commit 936b805
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions package/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
FROM public.ecr.aws/docker/library/centos:7

# Need this because of Centos 7 reached EOL on July 1, 2024 and mirrorlist.centos.org does not exist anymore.
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
RUN sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo
RUN sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo

RUN yum install -y epel-release centos-release-scl

# Fix up the newly added SCL repos, which don't have altarch baseurls
RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
RUN sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo
RUN sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo
RUN if [ `uname -p` == "aarch64" ]; then sed -i s+centos/7+altarch/7+g /etc/yum.repos.d/*.repo; fi

RUN yum install -y \
fuse \
fuse-devel \
Expand Down

0 comments on commit 936b805

Please sign in to comment.