forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VZ-11478: Update build of rancher to use OL8 (#141)
- Loading branch information
1 parent
0ef3d42
commit 842445e
Showing
8 changed files
with
52 additions
and
137 deletions.
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.