-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buildchain,image: Rework metalk8s-utils to use Rocky 9 minimal
- Loading branch information
1 parent
837577c
commit 9ff6c7d
Showing
5 changed files
with
27 additions
and
44 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
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
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 |
---|---|---|
|
@@ -7,14 +7,9 @@ FROM $BASE_IMAGE@sha256:$BASE_IMAGE_SHA256 | |
# Kubernetes version | ||
ARG K8S_SHORT_VERSION | ||
ARG K8S_VERSION | ||
# Salt version | ||
ARG SALT_VERSION | ||
# Etcd version | ||
ARG ETCD_VERSION | ||
|
||
COPY configure-repos.sh / | ||
RUN /configure-repos.sh "$K8S_SHORT_VERSION" "$SALT_VERSION" && rm /configure-repos.sh | ||
|
||
# Timestamp of the build, formatted as RFC3339 | ||
ARG BUILD_DATE | ||
# Git revision o the tree at build time | ||
|
@@ -54,10 +49,17 @@ LABEL maintainer="[email protected]" \ | |
com.scality.metalk8s.version="$METALK8S_VERSION" | ||
|
||
# Final layers, installing tooling | ||
RUN dnf clean expire-cache && \ | ||
dnf update -y && \ | ||
dnf install -y epel-release && \ | ||
dnf install -y \ | ||
RUN printf "[kubernetes]\n\ | ||
name=Kubernetes\n\ | ||
baseurl=https://pkgs.k8s.io/core:/stable:/v%s/rpm/\n\ | ||
enabled=1\n\ | ||
gpgcheck=1\n\ | ||
gpgkey=https://pkgs.k8s.io/core:/stable:/v%s/rpm/repodata/repomd.xml.key\n" \ | ||
${K8S_SHORT_VERSION} ${K8S_SHORT_VERSION} >/etc/yum.repos.d/kubernetes.repo && \ | ||
microdnf clean all && \ | ||
microdnf update -y && \ | ||
microdnf install -y epel-release && \ | ||
microdnf install -y --enablerepo=crb \ | ||
bash-completion \ | ||
bind-utils \ | ||
bzip2 \ | ||
|
@@ -95,28 +97,26 @@ RUN dnf clean expire-cache && \ | |
openssh-server \ | ||
openssl \ | ||
parted \ | ||
perf \ | ||
qperf \ | ||
rsync \ | ||
salt-master \ | ||
salt-minion \ | ||
screen \ | ||
socat \ | ||
strace \ | ||
sysstat \ | ||
tar \ | ||
tcpdump \ | ||
telnet \ | ||
tmux \ | ||
traceroute \ | ||
util-linux \ | ||
vim \ | ||
vim-minimal \ | ||
wget \ | ||
wireshark \ | ||
wireshark-cli \ | ||
xfsprogs \ | ||
&& \ | ||
dnf clean all | ||
microdnf clean all | ||
|
||
# etcd is not packaged in RHEL/Rocky/CentOS 8 Extras repository, so we download/install | ||
# etcd is not packaged in RHEL/Rocky/CentOS 9 Extras repository, so we download/install | ||
# it manually | ||
RUN mkdir /tmp/etcd-download && \ | ||
curl -L https://github.com/etcd-io/etcd/releases/download/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz \ | ||
|
This file was deleted.
Oops, something went wrong.