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
9e4fa149
Commit
9e4fa149
authored
Oct 15, 2018
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use our forked qemu-static-register scripts instead of a privileged container
parent
bb9efbba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
Makefile
build/debian-base/Makefile
+1
-1
Makefile
build/debian-hyperkube-base/Makefile
+1
-1
Makefile
build/debian-iptables/Makefile
+1
-1
image-util.sh
test/images/image-util.sh
+2
-1
No files found.
build/debian-base/Makefile
View file @
9e4fa149
...
@@ -80,7 +80,7 @@ ifeq ($(ARCH),amd64)
...
@@ -80,7 +80,7 @@ ifeq ($(ARCH),amd64)
else
else
# When cross-building, only the placeholder "CROSS_BUILD_" should be removed
# When cross-building, only the placeholder "CROSS_BUILD_" should be removed
# Register /usr/bin/qemu-ARCH-static as the handler for non-x86 binaries in the kernel
# Register /usr/bin/qemu-ARCH-static as the handler for non-x86 binaries in the kernel
docker run --rm --privileged multiarch/qemu-user-static
:
register
--reset
sudo
../../third_party/multiarch/qemu-user-static/register/register.sh
--reset
curl -sSL https
:
//github.com/multiarch/qemu-user-static/releases/download/$(QEMUVERSION)/x86_64_qemu-$(QEMUARCH)-static.tar.gz | tar -xz -C $(TEMP_DIR)
curl -sSL https
:
//github.com/multiarch/qemu-user-static/releases/download/$(QEMUVERSION)/x86_64_qemu-$(QEMUARCH)-static.tar.gz | tar -xz -C $(TEMP_DIR)
# Ensure we don't get surprised by umask settings
# Ensure we don't get surprised by umask settings
chmod
0755
$(TEMP_DIR)
/qemu-
$(QEMUARCH)
-static
chmod
0755
$(TEMP_DIR)
/qemu-
$(QEMUARCH)
-static
...
...
build/debian-hyperkube-base/Makefile
View file @
9e4fa149
...
@@ -74,7 +74,7 @@ endif
...
@@ -74,7 +74,7 @@ endif
ifneq
($(ARCH),amd64)
ifneq
($(ARCH),amd64)
# Register /usr/bin/qemu-ARCH-static as the handler for non-x86 binaries in the kernel
# Register /usr/bin/qemu-ARCH-static as the handler for non-x86 binaries in the kernel
docker run --rm --privileged multiarch/qemu-user-static
:
register
--reset
sudo
../../third_party/multiarch/qemu-user-static/register/register.sh
--reset
endif
endif
docker build --pull -t $(IMAGE)-$(ARCH)
:
$(TAG) $(TEMP_DIR)
docker build --pull -t $(IMAGE)-$(ARCH)
:
$(TAG) $(TEMP_DIR)
rm
-rf
$(TEMP_DIR)
rm
-rf
$(TEMP_DIR)
...
...
build/debian-iptables/Makefile
View file @
9e4fa149
...
@@ -32,7 +32,7 @@ build:
...
@@ -32,7 +32,7 @@ build:
ifneq
($(ARCH),amd64)
ifneq
($(ARCH),amd64)
# Register /usr/bin/qemu-ARCH-static as the handler for non-x86 binaries in the kernel
# Register /usr/bin/qemu-ARCH-static as the handler for non-x86 binaries in the kernel
docker run --rm --privileged multiarch/qemu-user-static
:
register
--reset
sudo
../../third_party/multiarch/qemu-user-static/register/register.sh
--reset
endif
endif
docker build --pull -t $(IMAGE)-$(ARCH)
:
$(TAG) $(TEMP_DIR)
docker build --pull -t $(IMAGE)-$(ARCH)
:
$(TAG) $(TEMP_DIR)
...
...
test/images/image-util.sh
View file @
9e4fa149
...
@@ -83,7 +83,8 @@ build() {
...
@@ -83,7 +83,8 @@ build() {
else
else
${
SED
}
-i
"s|QEMUARCH|
${
QEMUARCHS
[
$arch
]
}
|g"
Dockerfile
${
SED
}
-i
"s|QEMUARCH|
${
QEMUARCHS
[
$arch
]
}
|g"
Dockerfile
# Register qemu-*-static for all supported processors except the current one
# Register qemu-*-static for all supported processors except the current one
docker run
--rm
--privileged
multiarch/qemu-user-static:register
--reset
echo
"Registering qemu-*-static binaries in the kernel"
sudo
"
${
KUBE_ROOT
}
/third_party/multiarch/qemu-user-static/register/register.sh"
--reset
curl
-sSL
https://github.com/multiarch/qemu-user-static/releases/download/
${
QEMUVERSION
}
/x86_64_qemu-
${
QEMUARCHS
[
$arch
]
}
-static
.tar.gz |
tar
-xz
-C
${
temp_dir
}
curl
-sSL
https://github.com/multiarch/qemu-user-static/releases/download/
${
QEMUVERSION
}
/x86_64_qemu-
${
QEMUARCHS
[
$arch
]
}
-static
.tar.gz |
tar
-xz
-C
${
temp_dir
}
# Ensure we don't get surprised by umask settings
# Ensure we don't get surprised by umask settings
chmod
0755
"
${
temp_dir
}
/qemu-
${
QEMUARCHS
[
$arch
]
}
-static"
chmod
0755
"
${
temp_dir
}
/qemu-
${
QEMUARCHS
[
$arch
]
}
-static"
...
...
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