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
b9631a88
Unverified
Commit
b9631a88
authored
Jan 23, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Jan 23, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #73231 from liggitt/add-on-arch-build
Enable multi-arch build for add-on manager
parents
9f4a495a
af663769
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Makefile
cluster/addons/addon-manager/Makefile
+8
-0
No files found.
cluster/addons/addon-manager/Makefile
View file @
b9631a88
...
@@ -20,6 +20,8 @@ KUBECTL_VERSION?=v1.13.2
...
@@ -20,6 +20,8 @@ KUBECTL_VERSION?=v1.13.2
BASEIMAGE
=
k8s.gcr.io/debian-base-
$(ARCH)
:0.4.0
BASEIMAGE
=
k8s.gcr.io/debian-base-
$(ARCH)
:0.4.0
SUDO
=
$
(
if
$
(
filter 0,
$(
shell
id
-u
)
)
,,sudo
)
.PHONY
:
build push
.PHONY
:
build push
all
:
build
all
:
build
...
@@ -29,6 +31,12 @@ build:
...
@@ -29,6 +31,12 @@ build:
curl
-sSL
--retry
5 https://dl.k8s.io/release/
$(KUBECTL_VERSION)
/bin/linux/
$(ARCH)
/kubectl
>
$(TEMP_DIR)
/kubectl
curl
-sSL
--retry
5 https://dl.k8s.io/release/
$(KUBECTL_VERSION)
/bin/linux/
$(ARCH)
/kubectl
>
$(TEMP_DIR)
/kubectl
chmod
+x
$(TEMP_DIR)
/kubectl
chmod
+x
$(TEMP_DIR)
/kubectl
cd
$(TEMP_DIR)
&&
sed
-i
.back
"s|BASEIMAGE|
$(BASEIMAGE)
|g"
Dockerfile
cd
$(TEMP_DIR)
&&
sed
-i
.back
"s|BASEIMAGE|
$(BASEIMAGE)
|g"
Dockerfile
ifneq
($(ARCH),amd64)
# Register /usr/bin/qemu-ARCH-static as the handler for non-x86 binaries in the kernel
$(SUDO)
../../../third_party/multiarch/qemu-user-static/register/register.sh
--reset
endif
docker build --pull -t $(IMAGE)-$(ARCH)
:
$(VERSION) $(TEMP_DIR)
docker build --pull -t $(IMAGE)-$(ARCH)
:
$(VERSION) $(TEMP_DIR)
push
:
build
push
:
build
...
...
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