-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
980f807
commit dfc0930
Showing
3 changed files
with
51 additions
and
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ARG BASE_OS_NAME | ||
ARG BASE_OS_VERSION | ||
|
||
FROM ${BASE_OS_NAME}:${BASE_OS_VERSION} | ||
|
||
ARG KUBE_MAJOR_MINOR_VERSION | ||
ARG KUBE_VERSION | ||
|
||
ENV DEBCONF_NONINTERACTIVE_SEEN="true" \ | ||
DEBIAN_FRONTEND="noninteractive" | ||
|
||
RUN curl -fsSL https://pkgs.k8s.io/core:/stable:/${KUBE_MAJOR_MINOR_VERSION}/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg \ | ||
&& echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/${KUBE_MAJOR_MINOR_VERSION}/deb/ /" | sudo tee /etc/apt/sources.list.d/kubernetes.list \ | ||
&& apt update \ | ||
&& apt install --yes --no-install-recommends \ | ||
kubeadm=${KUBE_VERSION} \ | ||
kubectl=${KUBE_VERSION} \ | ||
kubelet=${KUBE_VERSION} \ | ||
kubernetes-cni | ||
|
||
RUN systemctl enable kubelet.service |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
version: '1' | ||
name: cluster-api | ||
username: metalstack | ||
registry-host: quay.io | ||
default-build-args: | ||
- SEMVER_PATCH=${SEMVER_PATCH} | ||
- OS_NAME=cluster-api | ||
builds: | ||
- | ||
name: ubuntu | ||
tags: | ||
- ${SEMVER} | ||
- ${SEMVER_MAJOR_MINOR} | ||
build-args: | ||
- BASE_OS_NAME=quay.io/metalstack/ubuntu | ||
- BASE_OS_VERSION=24.04 | ||
- KUBE_MAJOR_MINOR_VERSION=v1.30 | ||
- KUBE_VERSION=${KUBE_MAJOR_MINOR_VERSION}.6 | ||
- SEMVER_MAJOR_MINOR=cluster-api-k8s-${KUBE_VERSION} | ||
- SEMVER=${SEMVER_MAJOR_MINOR}${SEMVER_PATCH} | ||
after: | ||
- cd ../ && OS_NAME=${SEMVER}-${OS_NAME} ./test.sh quay.io/metalstack/${OS_NAME}:${SEMVER} | ||
- OS_NAME=${OS_NAME} SEMVER_MAJOR_MINOR=${SEMVER_MAJOR_MINOR} SEMVER_PATCH=${SEMVER_PATCH} ../export.sh |