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
f482b17e
Commit
f482b17e
authored
Nov 18, 2016
by
gajju26
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for cross-compiling s390x binaries
parent
d6b9a7aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Dockerfile
build-tools/build-image/cross/Dockerfile
+5
-4
VERSION
build-tools/build-image/cross/VERSION
+1
-1
No files found.
build-tools/build-image/cross/Dockerfile
View file @
f482b17e
...
...
@@ -21,12 +21,14 @@ ENV GOARM 6
ENV
KUBE_DYNAMIC_CROSSPLATFORMS \
armel \
arm64 \
s390x \
ppc64el
ENV
KUBE_CROSSPLATFORMS \
linux/386 \
linux/arm linux/arm64 \
linux/ppc64le \
linux/s390x \
darwin/amd64 darwin/386 \
windows/amd64 windows/386
...
...
@@ -50,10 +52,9 @@ RUN mkdir -p /usr/local/src/protobuf \
&&
protoc
--version
# Use dynamic cgo linking for architectures other than amd64 for the server platforms
# More info here: https://wiki.debian.org/CrossToolchains
RUN
echo
"deb http://emdebian.org/tools/debian/ jessie main"
>
/etc/apt/sources.list.d/cgocrosscompiling.list
\
&&
curl
-s
http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | apt-key add -
\
&&
for
platform
in
${
KUBE_DYNAMIC_CROSSPLATFORMS
}
;
do
dpkg
--add-architecture
${
platform
}
;
done
\
# To install crossbuild essential for other architectures add the following repository.
RUN
echo
"deb http://archive.ubuntu.com/ubuntu xenial main universe"
>
/etc/apt/sources.list.d/cgocrosscompiling.list
\
&&
apt-key adv
--keyserver
keyserver.ubuntu.com
--recv-keys
40976EAF437D05B5 3B4FE6ACC0B21F32
\
&&
apt-get update
\
&&
apt-get
install
-y
build-essential
\
&&
for
platform
in
${
KUBE_DYNAMIC_CROSSPLATFORMS
}
;
do
apt-get
install
-y
crossbuild-essential-
${
platform
}
;
done
\
...
...
build-tools/build-image/cross/VERSION
View file @
f482b17e
v1.7.4-
0
v1.7.4-
1
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