Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d2dbe568
Commit
d2dbe568
authored
Nov 22, 2015
by
Brendan Burns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add linux/arm to the list of server builds
parent
46924670
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
13 deletions
+34
-13
Makefile
build/pause/Makefile
+6
-2
prepare.sh
build/pause/prepare.sh
+3
-1
Dockerfile
cluster/images/hyperkube/Dockerfile
+1
-1
Makefile
cluster/images/hyperkube/Makefile
+17
-3
master-multi.json
cluster/images/hyperkube/master-multi.json
+3
-3
master.json
cluster/images/hyperkube/master.json
+3
-3
golang.sh
hack/lib/golang.sh
+1
-0
No files found.
build/pause/Makefile
View file @
d2dbe568
.PHONY
:
build push
.PHONY
:
build push
IMAGE
=
pause
TAG
=
2.0
TAG
=
2.0
ARCH
=
amd64
IMAGE
=
pause
# ARCH = arm
# IMAGE = pause-arm
build
:
build
:
./prepare.sh
./prepare.sh
${
ARCH
}
docker build
-t
gcr.io/google_containers/
$(IMAGE)
:
$(TAG)
.
docker build
-t
gcr.io/google_containers/
$(IMAGE)
:
$(TAG)
.
push
:
build
push
:
build
...
...
build/pause/prepare.sh
View file @
d2dbe568
...
@@ -17,8 +17,10 @@
...
@@ -17,8 +17,10 @@
set
-e
set
-e
set
-x
set
-x
ARCH
=
$1
# Build the binary.
# Build the binary.
go build
--ldflags
'-extldflags "-static" -s'
pause.go
CGO_ENABLED
=
0
GOOS
=
linux
GOARCH
=
${
ARCH
}
godep go build
-a
-installsuffix
cgo
-ldflags
'-w'
./
pause.go
# Run goupx to shrink binary size.
# Run goupx to shrink binary size.
go get github.com/pwaller/goupx
go get github.com/pwaller/goupx
...
...
cluster/images/hyperkube/Dockerfile
View file @
d2dbe568
FROM
debian:jessie
FROM
BASEIMAGE
RUN
DEBIAN_FRONTEND
=
noninteractive apt-get update
-y
\
RUN
DEBIAN_FRONTEND
=
noninteractive apt-get update
-y
\
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
-yy
-q
\
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
-yy
-q
\
...
...
cluster/images/hyperkube/Makefile
View file @
d2dbe568
# build the hyperkube image.
# 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
:
all
:
cp
../../saltbase/salt/helpers/safe_format_and_mount .
cp
../../saltbase/salt/helpers/safe_format_and_mount .
cp
../../saltbase/salt/generate-cert/make-ca-cert.sh .
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
sed
-i
"s/VERSION/
${
VERSION
}
/g"
master-multi.json master.json
docker build
-t
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
}
gcloud docker push gcr.io/google_containers/hyperkube:
${
VERSION
}
endif
.PHONY
:
all
.PHONY
:
all
cluster/images/hyperkube/master-multi.json
View file @
d2dbe568
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
"containers"
:[
"containers"
:[
{
{
"name"
:
"controller-manager"
,
"name"
:
"controller-manager"
,
"image"
:
"gcr.io/google_containers/hyperkube:VERSION"
,
"image"
:
"gcr.io/google_containers/hyperkube
-ARCH
:VERSION"
,
"command"
:
[
"command"
:
[
"/hyperkube"
,
"/hyperkube"
,
"controller-manager"
,
"controller-manager"
,
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
},
},
{
{
"name"
:
"apiserver"
,
"name"
:
"apiserver"
,
"image"
:
"gcr.io/google_containers/hyperkube:VERSION"
,
"image"
:
"gcr.io/google_containers/hyperkube
-ARCH
:VERSION"
,
"command"
:
[
"command"
:
[
"/hyperkube"
,
"/hyperkube"
,
"apiserver"
,
"apiserver"
,
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
},
},
{
{
"name"
:
"scheduler"
,
"name"
:
"scheduler"
,
"image"
:
"gcr.io/google_containers/hyperkube:VERSION"
,
"image"
:
"gcr.io/google_containers/hyperkube
-ARCH
:VERSION"
,
"command"
:
[
"command"
:
[
"/hyperkube"
,
"/hyperkube"
,
"scheduler"
,
"scheduler"
,
...
...
cluster/images/hyperkube/master.json
View file @
d2dbe568
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
"containers"
:[
"containers"
:[
{
{
"name"
:
"controller-manager"
,
"name"
:
"controller-manager"
,
"image"
:
"gcr.io/google_containers/hyperkube:VERSION"
,
"image"
:
"gcr.io/google_containers/hyperkube
-ARCH
:VERSION"
,
"command"
:
[
"command"
:
[
"/hyperkube"
,
"/hyperkube"
,
"controller-manager"
,
"controller-manager"
,
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
},
},
{
{
"name"
:
"apiserver"
,
"name"
:
"apiserver"
,
"image"
:
"gcr.io/google_containers/hyperkube:VERSION"
,
"image"
:
"gcr.io/google_containers/hyperkube
-ARCH
:VERSION"
,
"command"
:
[
"command"
:
[
"/hyperkube"
,
"/hyperkube"
,
"apiserver"
,
"apiserver"
,
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
},
},
{
{
"name"
:
"scheduler"
,
"name"
:
"scheduler"
,
"image"
:
"gcr.io/google_containers/hyperkube:VERSION"
,
"image"
:
"gcr.io/google_containers/hyperkube
-ARCH
:VERSION"
,
"command"
:
[
"command"
:
[
"/hyperkube"
,
"/hyperkube"
,
"scheduler"
,
"scheduler"
,
...
...
hack/lib/golang.sh
View file @
d2dbe568
...
@@ -50,6 +50,7 @@ readonly KUBE_SERVER_BINARIES=("${KUBE_SERVER_TARGETS[@]##*/}")
...
@@ -50,6 +50,7 @@ readonly KUBE_SERVER_BINARIES=("${KUBE_SERVER_TARGETS[@]##*/}")
# The server platform we are building on.
# The server platform we are building on.
readonly
KUBE_SERVER_PLATFORMS
=(
readonly
KUBE_SERVER_PLATFORMS
=(
linux/amd64
linux/amd64
linux/arm
)
)
# The set of client targets that we are building for all platforms
# The set of client targets that we are building for all platforms
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment