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

Fix CentOS/Amazon AMI build Dockerfiles. #128

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

igorpeshansky
Copy link
Member

@igorpeshansky igorpeshansky commented Mar 29, 2022

  • Remove stray yum update commands
  • Redirect CentOS 8 mirrors to the vault
  • Fix repository name on CentOS 8

See also GoogleCloudPlatform/google-fluentd#377

- Remove stray `yum update` commands
- Redirect CentOS 8 mirrors to the vault
- Fix repository name on CentOS 8
Copy link
Contributor

@qingling128 qingling128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -1,8 +1,7 @@
FROM amazonlinux:2016.09

ADD http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el6/en/x86_64/rpmforge/RPMS/rpm-macros-rpmforge-0-6.el6.rf.noarch.rpm .
RUN yum -y update \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious: Is yum -y update automatically triggered, or just not needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unlike apt-get update, which simply refreshes the repo contents, yum update upgrades all installed packages (similar to apt-get upgrade), so it was the wrong thing to do. The refresh of the repos (similar to apt-get update) happens automatically with yum.

@igorpeshansky igorpeshansky merged commit c74281d into master Jun 8, 2022
@igorpeshansky igorpeshansky deleted the igorpeshansky-fix-build-dockerfiles branch June 8, 2022 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants