Skip to content

Commit 92d195e

Browse files
authored
Merge pull request #376 from fluent/tweak-centos-8
Tweak CentOS 8 containers
2 parents be6b985 + 0870547 commit 92d195e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/yum.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,13 @@ jobs:
1111
matrix:
1212
label:
1313
- CentOS 7 x86_64
14-
- CentOS Stream 8 x86_64
1514
- RockyLinux 8 x86_64
1615
- Amazon Linux 2 x86_64
1716
include:
1817
- label: CentOS 7 x86_64
1918
rake-job: centos-7
2019
test-docker-image: centos:7
2120
centos-stream: false
22-
- label: CentOS Stream 8 x86_64
23-
rake-job: centos-stream-8
24-
test-docker-image: centos:8
25-
centos-stream: true
2621
- label: RockyLinux 8 x86_64
2722
rake-job: rockylinux-8
2823
test-docker-image: rockylinux/rockylinux:8

td-agent/yum/centos-8/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ ARG DEBUG
2424

2525
RUN \
2626
quiet=$([ "${DEBUG}" = "yes" ] || echo "--quiet") && \
27+
sed -i 's|^mirrorlist|#mirrorlist|g' /etc/yum.repos.d/CentOS-*.repo && \
28+
sed -i 's|^#baseurl=http://mirror.centos.org/|baseurl=http://vault.centos.org/|g' /etc/yum.repos.d/CentOS-*.repo && \
2729
dnf install --enablerepo=powertools -y ${quiet} \
2830
make \
2931
gcc-c++ \

td-agent/yum/centos-stream-8/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ ARG DEBUG
2424

2525
RUN \
2626
quiet=$([ "${DEBUG}" = "yes" ] || echo "--quiet") && \
27+
sed -i 's|^mirrorlist|#mirrorlist|g' /etc/yum.repos.d/CentOS-*.repo && \
28+
sed -i 's|^#baseurl=http://mirror.centos.org/|baseurl=http://vault.centos.org/|g' /etc/yum.repos.d/CentOS-*.repo && \
2729
dnf install centos-release-stream -y && \
2830
dnf swap centos-{linux,stream}-repos -y && \
2931
dnf distro-sync -y && \

0 commit comments

Comments
 (0)