mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 09:57:52 +00:00
Add linux/arm to the list of server builds
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM debian:jessie
|
||||
FROM BASEIMAGE
|
||||
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get -yy -q \
|
||||
|
@@ -1,13 +1,27 @@
|
||||
# build the hyperkube image.
|
||||
|
||||
VERSION=v1.1.1
|
||||
VERSION=v1.1.2
|
||||
ARCH=amd64
|
||||
BASEIMAGE=debian:jessie
|
||||
|
||||
## Comment in for arm builds, must be run on an arm machine
|
||||
# ARCH=arm
|
||||
# need to escape '/' for the regexp below
|
||||
# BASEIMAGE=armbuild\\/debian:jessie
|
||||
|
||||
all:
|
||||
cp ../../saltbase/salt/helpers/safe_format_and_mount .
|
||||
cp ../../saltbase/salt/generate-cert/make-ca-cert.sh .
|
||||
curl -O https://storage.googleapis.com/kubernetes-release/release/${VERSION}/bin/linux/amd64/hyperkube
|
||||
curl -O https://storage.googleapis.com/kubernetes-release/release/${VERSION}/bin/linux/${ARCH}/hyperkube
|
||||
sed -i "s/VERSION/${VERSION}/g" master-multi.json master.json
|
||||
docker build -t gcr.io/google_containers/hyperkube:${VERSION} .
|
||||
gcloud docker push gcr.io/google_containers/hyperkube:${VERSION}
|
||||
sed -i "s/ARCH/${ARCH}/g" master-multi.json master.json
|
||||
sed -i "s/BASEIMAGE/${BASEIMAGE}/g" Dockerfile
|
||||
docker build -t gcr.io/google_containers/hyperkube-${ARCH}:${VERSION} .
|
||||
gcloud docker push gcr.io/google_containers/hyperkube-${ARCH}:${VERSION}
|
||||
# Backward compatability. TODO: deprecate this image tag
|
||||
ifeq ($(ARCH),amd64)
|
||||
docker tag gcr.io/google_containers/hyperkube-${ARCH}:${VERSION} gcr.io/google_containers/hyperkube:${VERSION}
|
||||
gcloud docker push gcr.io/google_containers/hyperkube:${VERSION}
|
||||
endif
|
||||
|
||||
.PHONY: all
|
||||
|
@@ -7,7 +7,7 @@
|
||||
"containers":[
|
||||
{
|
||||
"name": "controller-manager",
|
||||
"image": "gcr.io/google_containers/hyperkube:VERSION",
|
||||
"image": "gcr.io/google_containers/hyperkube-ARCH:VERSION",
|
||||
"command": [
|
||||
"/hyperkube",
|
||||
"controller-manager",
|
||||
@@ -19,7 +19,7 @@
|
||||
},
|
||||
{
|
||||
"name": "apiserver",
|
||||
"image": "gcr.io/google_containers/hyperkube:VERSION",
|
||||
"image": "gcr.io/google_containers/hyperkube-ARCH:VERSION",
|
||||
"command": [
|
||||
"/hyperkube",
|
||||
"apiserver",
|
||||
@@ -33,7 +33,7 @@
|
||||
},
|
||||
{
|
||||
"name": "scheduler",
|
||||
"image": "gcr.io/google_containers/hyperkube:VERSION",
|
||||
"image": "gcr.io/google_containers/hyperkube-ARCH:VERSION",
|
||||
"command": [
|
||||
"/hyperkube",
|
||||
"scheduler",
|
||||
|
@@ -7,7 +7,7 @@
|
||||
"containers":[
|
||||
{
|
||||
"name": "controller-manager",
|
||||
"image": "gcr.io/google_containers/hyperkube:VERSION",
|
||||
"image": "gcr.io/google_containers/hyperkube-ARCH:VERSION",
|
||||
"command": [
|
||||
"/hyperkube",
|
||||
"controller-manager",
|
||||
@@ -26,7 +26,7 @@
|
||||
},
|
||||
{
|
||||
"name": "apiserver",
|
||||
"image": "gcr.io/google_containers/hyperkube:VERSION",
|
||||
"image": "gcr.io/google_containers/hyperkube-ARCH:VERSION",
|
||||
"command": [
|
||||
"/hyperkube",
|
||||
"apiserver",
|
||||
@@ -53,7 +53,7 @@
|
||||
},
|
||||
{
|
||||
"name": "scheduler",
|
||||
"image": "gcr.io/google_containers/hyperkube:VERSION",
|
||||
"image": "gcr.io/google_containers/hyperkube-ARCH:VERSION",
|
||||
"command": [
|
||||
"/hyperkube",
|
||||
"scheduler",
|
||||
|
Reference in New Issue
Block a user