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
60778cda
Commit
60778cda
authored
Jun 28, 2017
by
Manjunath A Kumatagi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move go build to image-utils
parent
c8a08afc
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
89 additions
and
104 deletions
+89
-104
Makefile
test/images/clusterapi-tester/Makefile
+4
-6
Makefile
test/images/entrypoint-tester/Makefile
+4
-6
Makefile
test/images/fakegitserver/Makefile
+6
-7
Makefile
test/images/goproxy/Makefile
+4
-6
image-util.sh
test/images/image-util.sh
+17
-1
Makefile
test/images/logs-generator/Makefile
+4
-6
Makefile
test/images/mount-tester/Makefile
+4
-6
Makefile
test/images/n-way-http/Makefile
+4
-6
Makefile
test/images/net/Makefile
+4
-6
Makefile
test/images/netexec/Makefile
+4
-6
Makefile
test/images/network-tester/Makefile
+4
-6
Makefile
test/images/no-snat-test-proxy/Makefile
+4
-6
Makefile
test/images/no-snat-test/Makefile
+4
-6
Makefile
test/images/port-forward-tester/Makefile
+4
-6
Makefile
test/images/porter/Makefile
+4
-6
Makefile
test/images/resource-consumer/Makefile
+4
-6
Makefile
test/images/resource-consumer/controller/Makefile
+6
-6
Makefile
test/images/serve_hostname/Makefile
+4
-6
No files found.
test/images/clusterapi-tester/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
clusterapi-tester
SRCS
=
clusterapi-tester
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/clusterapi-tester &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
"
.PHONY
:
bin
.PHONY
:
bin
test/images/entrypoint-tester/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
ep
SRCS
=
ep
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/entrypoint-tester &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
."
.PHONY
:
bin
.PHONY
:
bin
test/images/fakegitserver/Makefile
View file @
60778cda
...
@@ -12,17 +12,16 @@
...
@@ -12,17 +12,16 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
fakegitserver
SRCS
=
fakegitserver
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
IGNORE
:=
$(
shell
git rev-parse HEAD
>
$(TARGET)
/GITHASH.txt
)
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/fakegitserver &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
."
@
echo
$(
shell
git rev-parse HEAD
)
>
$(TARGET)
/GITHASH.txt
.PHONY
:
bin
.PHONY
:
bin
test/images/goproxy/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
goproxy
SRCS
=
goproxy
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/goproxy &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
."
.PHONY
:
bin
.PHONY
:
bin
test/images/image-util.sh
View file @
60778cda
...
@@ -21,6 +21,8 @@ set -o pipefail
...
@@ -21,6 +21,8 @@ set -o pipefail
TASK
=
$1
TASK
=
$1
IMAGE
=
$2
IMAGE
=
$2
KUBE_ROOT
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../.."
&&
pwd
-P
)
"
# Mapping of go ARCH to actual architectures shipped part of multiarch/qemu-user-static project
# Mapping of go ARCH to actual architectures shipped part of multiarch/qemu-user-static project
declare
-A
QEMUARCHS
=(
[
"amd64"
]=
"x86_64"
[
"arm"
]=
"arm"
[
"arm64"
]=
"aarch64"
[
"ppc64le"
]=
"ppc64le"
[
"s390x"
]=
"s390x"
)
declare
-A
QEMUARCHS
=(
[
"amd64"
]=
"x86_64"
[
"arm"
]=
"arm"
[
"arm64"
]=
"aarch64"
[
"ppc64le"
]=
"ppc64le"
[
"s390x"
]=
"s390x"
)
...
@@ -109,4 +111,18 @@ push() {
...
@@ -109,4 +111,18 @@ push() {
done
done
}
}
eval
${
TASK
}
# This function is for building the go code
bin
()
{
for
SRC
in
$@
;
do
docker run
--rm
-it
-v
${
TARGET
}
:
${
TARGET
}
:Z
-v
${
KUBE_ROOT
}
:/go/src/k8s.io/kubernetes:Z
\
golang:
${
GOLANG_VERSION
}
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/
${
SRC_DIR
}
&&
\
CGO_ENABLED=0 GOARM=
${
GOARM
}
GOARCH=
${
ARCH
}
go build -a -installsuffix cgo --ldflags '-w' -o
${
TARGET
}
/
${
SRC
}
./
$(
dirname
${
SRC
})
"
done
}
shift
eval
${
TASK
}
"
$@
"
test/images/logs-generator/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
logs-generator
SRCS
=
logs-generator
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/logs-generator &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
."
.PHONY
:
bin
.PHONY
:
bin
test/images/mount-tester/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
mounttest
SRCS
=
mounttest
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/mount-tester &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
."
.PHONY
:
bin
.PHONY
:
bin
test/images/n-way-http/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
n-way-http
SRCS
=
n-way-http
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/n-way-http &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
."
.PHONY
:
bin
.PHONY
:
bin
test/images/net/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
net
SRCS
=
net
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/net &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
."
.PHONY
:
bin
.PHONY
:
bin
test/images/netexec/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
netexec
SRCS
=
netexec
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/netexec &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
."
.PHONY
:
bin
.PHONY
:
bin
test/images/network-tester/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
nettest
SRCS
=
nettest
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/network-tester &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
."
.PHONY
:
bin
.PHONY
:
bin
test/images/no-snat-test-proxy/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
no-snat-test-proxy
SRCS
=
no-snat-test-proxy
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/no-snat-test-proxy &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
"
.PHONY
:
bin
.PHONY
:
bin
test/images/no-snat-test/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
no-snat-test
SRCS
=
no-snat-test
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/no-snat-test &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
"
.PHONY
:
bin
.PHONY
:
bin
test/images/port-forward-tester/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
portforwardtester
SRSC
=
portforwardtester
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/port-forward-tester &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
."
.PHONY
:
bin
.PHONY
:
bin
test/images/porter/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
porter
SRCS
=
porter
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/porter &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
."
.PHONY
:
bin
.PHONY
:
bin
test/images/resource-consumer/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
SRCS
=
consumer consume-cpu/consume-cpu
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/resource-consumer &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/consume-cpu/consume-cpu ./consume-cpu/consume_cpu.go &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/consumer ."
.PHONY
:
bin
.PHONY
:
bin
test/images/resource-consumer/controller/Makefile
View file @
60778cda
...
@@ -12,14 +12,14 @@
...
@@ -12,14 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
controller
SRCS
=
controller
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
resource-consumer/
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../../:/go/src/k8s.io/kubernetes:Z
\
../../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
.PHONY
:
bin
cd /go/src/k8s.io/kubernetes/test/images/resource-consumer/controller &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
."
test/images/serve_hostname/Makefile
View file @
60778cda
...
@@ -12,16 +12,14 @@
...
@@ -12,16 +12,14 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
BIN
=
serve_hostname
SRCS
=
serve_hostname
ARCH
?=
amd64
ARCH
?=
amd64
TARGET
?=
$(CURDIR)
TARGET
?=
$(CURDIR)
GOLANG_VERSION
?=
latest
GOLANG_VERSION
?=
latest
SRC_DIR
=
$
(
notdir
$(
shell
pwd
)
)
export
bin
:
bin
:
docker run
--rm
-it
-v
$(TARGET)
:
$(TARGET)
:Z
-v
`
pwd
`
/../../../:/go/src/k8s.io/kubernetes:Z
\
../image-util.sh bin
$(SRCS)
golang:
$(GOLANG_VERSION)
\
/bin/bash
-c
"
\
cd /go/src/k8s.io/kubernetes/test/images/serve_hostname &&
\
CGO_ENABLED=0 GOARM=
$(GOARM)
GOARCH=
$(ARCH)
go build -a -installsuffix cgo --ldflags '-w' -o
$(TARGET)
/
$(BIN)
."
.PHONY
:
bin
.PHONY
:
bin
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