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
c8782f45
Unverified
Commit
c8782f45
authored
Jul 26, 2018
by
Davanum Srinivas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test image for a release 1.7 based sample-apiserver
Change-Id: I1429e4866cf20dd88781f37a124ccff65334f534
parent
cef2d325
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
57 additions
and
0 deletions
+57
-0
BUILD
test/images/BUILD
+1
-0
image-util.sh
test/images/image-util.sh
+1
-0
BASEIMAGE
test/images/sample-apiserver/BASEIMAGE
+4
-0
BUILD
test/images/sample-apiserver/BUILD
+14
-0
Dockerfile
test/images/sample-apiserver/Dockerfile
+36
-0
VERSION
test/images/sample-apiserver/VERSION
+1
-0
No files found.
test/images/BUILD
View file @
c8782f45
...
@@ -29,6 +29,7 @@ filegroup(
...
@@ -29,6 +29,7 @@ filegroup(
"//test/images/port-forward-tester:all-srcs",
"//test/images/port-forward-tester:all-srcs",
"//test/images/porter:all-srcs",
"//test/images/porter:all-srcs",
"//test/images/resource-consumer:all-srcs",
"//test/images/resource-consumer:all-srcs",
"//test/images/sample-apiserver:all-srcs",
"//test/images/serve-hostname:all-srcs",
"//test/images/serve-hostname:all-srcs",
"//test/images/test-webserver:all-srcs",
"//test/images/test-webserver:all-srcs",
"//test/images/webhook:all-srcs",
"//test/images/webhook:all-srcs",
...
...
test/images/image-util.sh
View file @
c8782f45
...
@@ -70,6 +70,7 @@ build() {
...
@@ -70,6 +70,7 @@ build() {
if
[[
-f
BASEIMAGE
]]
;
then
if
[[
-f
BASEIMAGE
]]
;
then
BASEIMAGE
=
$(
getBaseImage
${
arch
})
BASEIMAGE
=
$(
getBaseImage
${
arch
})
${
SED
}
-i
"s|BASEIMAGE|
${
BASEIMAGE
}
|g"
Dockerfile
${
SED
}
-i
"s|BASEIMAGE|
${
BASEIMAGE
}
|g"
Dockerfile
${
SED
}
-i
"s|BASEARCH|
${
arch
}
|g"
Dockerfile
fi
fi
# copy the qemu-*-static binary to docker image to build the multi architecture image on x86 platform
# copy the qemu-*-static binary to docker image to build the multi architecture image on x86 platform
...
...
test/images/sample-apiserver/BASEIMAGE
0 → 100644
View file @
c8782f45
amd64=alpine:3.8
arm=arm32v6/alpine:3.8
arm64=arm64v8/alpine:3.8
ppc64le=ppc64le/alpine:3.8
test/images/sample-apiserver/BUILD
0 → 100644
View file @
c8782f45
package(default_visibility = ["//visibility:public"])
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
)
test/images/sample-apiserver/Dockerfile
0 → 100644
View file @
c8782f45
# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM
k8s.gcr.io/kube-cross:v1.10.3-1 as build_k8s_1_7_sample_apiserver
ENV
GOPATH /go
RUN
mkdir
-p
${
GOPATH
}
/src
${
GOPATH
}
/bin
ENV
PATH $GOPATH/bin:$PATH
# The e2e aggregator test was originally added in #50347 and is designed to test ability to run a 1.7
# sample-apiserver in newer releases. please see e2e test named "Should be able to support the 1.7 Sample
# API Server using the current Aggregator"
RUN
go get
-d
k8s.io/sample-apiserver
\
&&
cd
${
GOPATH
}
/src/k8s.io/sample-apiserver
\
&&
git checkout
--track
origin/release-1.7
\
&&
CGO_ENABLED
=
0
GOOS
=
linux
GOARCH
=
BASEARCH go
install
.
# for arm, go install uses go/bin/linux_arm, so just find the file and copy it to the root so
# we can copy it out from this throw away container image from a standard location
RUN
find /go/bin
-name
sample-apiserver
-exec
cp
{}
/
\;
FROM
BASEIMAGE
COPY
--from=build_k8s_1_7_sample_apiserver /sample-apiserver /sample-apiserver
ENTRYPOINT
["/sample-apiserver"]
test/images/sample-apiserver/VERSION
0 → 100644
View file @
c8782f45
1.0
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