forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
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
VZ-11478: Update build of rancher to use OL8 #141
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,19 @@ | ||
FROM ghcr.io/oracle/oraclelinux:7-slim | ||
FROM ghcr.io/oracle/oraclelinux:8-slim | ||
|
||
RUN yum-config-manager --enable ol7_optional_latest && \ | ||
yum-config-manager --enable ol7_addons && \ | ||
yum-config-manager --add-repo=http://yum.oracle.com/repo/OracleLinux/OL7/SoftwareCollections/x86_64 && \ | ||
yum-config-manager --add-repo https://yum.oracle.com/repo/OracleLinux/OL7/olcne16/x86_64/ && \ | ||
yum-config-manager --add-repo https://yum.oracle.com/repo/OracleLinux/OL7/developer_EPEL/x86_64 && \ | ||
yum-config-manager --enable ol7_developer_golang119 && \ | ||
yum install oracle-golang-release-el7 -y && \ | ||
yum clean all | ||
|
||
RUN yum update -y && \ | ||
yum install -y bash rh-git227 gcc glibc-static vim less libffi file curl wget ca-certificates unzip tar jq nc mkisofs \ | ||
openssl-devel libffi-devel python3 iproute vim less bash-completion sysstat acl hostname openssl \ | ||
helm-3.11.1-1.el7.x86_64 kubectl-1.25.11-1.el7.x86_64 docker-engine-19.03.11.ol-13.el7.x86_64 etcd-3.5.6-3.el7.x86_64 tini-0.19.0-2.el7.x86_64 \ | ||
golang-1.19 && \ | ||
# Set up needed to ensure git 2.27 from rh-git227 is on the path | ||
ln /opt/rh/rh-git227/enable /etc/profile.d/git.sh && \ | ||
source /etc/profile.d/git.sh && \ | ||
git version && \ | ||
RUN microdnf update -y --setopt=install_weak_deps=0 --setopt=tsflags=nodocs && \ | ||
microdnf install -y golang-1.19.13-1.module+el8.8.0+21189+9e6e1f9f.x86_64 && \ | ||
microdnf install -y git gcc vim file wget unzip jq nc mkisofs && \ | ||
microdnf install -y glibc-static --enablerepo=ol8_codeready_builder && \ | ||
microdnf install -y openssl-devel libffi-devel python3 iproute bash-completion sysstat hostname && \ | ||
microdnf install -y dnf && \ | ||
microdnf install -y 'dnf-command(config-manager)' && \ | ||
dnf config-manager --add-repo http://yum.oracle.com/repo/OracleLinux/OL8/olcne17/x86_64 && \ | ||
microdnf install -y helm-3.12.0-1.el8.x86_64 && \ | ||
microdnf install -y kubectl-1.26.6-1.el8.x86_64 && \ | ||
microdnf install -y etcd-3.5.6-4.el8.x86_64 && \ | ||
dnf config-manager --add-repo http://yum.oracle.com/repo/OracleLinux/OL8/developer/EPEL/x86_64 && \ | ||
microdnf install -y tini-0.19.0-1.el8.x86_64 && \ | ||
mv /usr/bin/helm /usr/bin/helm_v3 && \ | ||
go version && \ | ||
yum clean all && \ | ||
rm -rf /var/cache/yum | ||
microdnf clean all && \ | ||
rm -rf /var/cache/yum /var/lib/rpm/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a suggestion - you can just use OL8 here since this image is not the final image . If you use OL8 you can re-use the yum commands (not repositories). But OL8-slim works fine as well.