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
cbdf3c77
Commit
cbdf3c77
authored
Sep 29, 2014
by
Joe Beda
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1472 from proppy/master
build-image: use golang:cross
parents
648d91b5
d728d002
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
25 deletions
+1
-25
Dockerfile
build/build-image/Dockerfile
+1
-25
No files found.
build/build-image/Dockerfile
View file @
cbdf3c77
...
@@ -14,38 +14,14 @@
...
@@ -14,38 +14,14 @@
# This file creates a standard build environment for building Kubernetes
# This file creates a standard build environment for building Kubernetes
FROM
go
ogle/debian:wheezy
FROM
go
lang:cross
MAINTAINER
Joe Beda <jbeda@google.com>
MAINTAINER
Joe Beda <jbeda@google.com>
RUN
apt-get update
-y
&&
apt-get
install
--no-install-recommends
-y
-q
\
curl
\
build-essential
\
ca-certificates
\
git
\
mercurial
\
rsync
# Install Go
# Save the SHA1 checksum from http://golang.org/dl
RUN
echo
'9f9dfcbcb4fa126b2b66c0830dc733215f2f056e go1.3.src.tar.gz'
>
go1.3.src.tar.gz.sha1
RUN
curl
-O
-s
https://storage.googleapis.com/golang/go1.3.src.tar.gz
RUN
sha1sum
--check
go1.3.src.tar.gz.sha1
RUN
tar
-xzf
go1.3.src.tar.gz
-C
/usr/local
ENV
PATH /usr/local/go/bin:$PATH
RUN
cd
/usr/local/go/src
&&
./make.bash
--no-clean
2>&1
# Compile Go for cross compilation
ENV
KUBE_CROSSPLATFORMS \
ENV
KUBE_CROSSPLATFORMS \
linux/386 linux/arm \
linux/386 linux/arm \
darwin/amd64 darwin/386
darwin/amd64 darwin/386
# (set an explicit GOARM of 5 for maximum compatibility)
# (set an explicit GOARM of 5 for maximum compatibility)
ENV
GOARM 5
ENV
GOARM 5
RUN
cd
/usr/local/go/src
&&
\
bash
-xc
'for platform in $KUBE_CROSSPLATFORMS; do GOOS=${platform%/*} GOARCH=${platform##*/} ./make.bash --no-clean 2>&1; done'
# Set up Go Environment
ENV
PATH /go/bin:$PATH
ENV
GOPATH /go
ENV
GOOS linux
ENV
GOOS linux
ENV
GOARCH amd64
ENV
GOARCH amd64
...
...
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