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
988d1594
Commit
988d1594
authored
Jan 28, 2015
by
Tim Hockin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3787 from satnam6502/serve_hostname
Reduce size of serve_hostname image
parents
c1a4a433
3841d1b5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
Dockerfile
contrib/for-demos/serve_hostname/Dockerfile
+1
-1
Makefile
contrib/for-demos/serve_hostname/Makefile
+1
-1
basic.sh
hack/e2e-suite/basic.sh
+1
-1
private.sh
hack/e2e-suite/private.sh
+1
-1
basic.go
test/e2e/basic.go
+1
-1
No files found.
contrib/for-demos/serve_hostname/Dockerfile
View file @
988d1594
FROM
ubuntu:14.04
FROM
scratch
MAINTAINER
Tim Hockin <thockin@google.com>
ADD
serve_hostname /serve_hostname
ADD
serve_hostname.go /serve_hostname.go
...
...
contrib/for-demos/serve_hostname/Makefile
View file @
988d1594
all
:
serve_hostname
TAG
=
1.
0
TAG
=
1.
1
serve_hostname
:
serve_hostname.go
CGO_ENABLED
=
0 go build
-a
-installsuffix
cgo
--ldflags
'-w'
./serve_hostname.go
...
...
hack/e2e-suite/basic.sh
View file @
988d1594
...
...
@@ -34,7 +34,7 @@ function teardown() {
trap
"teardown"
EXIT
# Determine which pod image to launch (e.g. private.sh launches a different one).
pod_img_srv
=
"
${
POD_IMG_SRV
:-
kubernetes
/serve_hostname
}
"
pod_img_srv
=
"
${
POD_IMG_SRV
:-
kubernetes
/serve_hostname
:1.1
}
"
# Launch some pods.
num_pods
=
2
...
...
hack/e2e-suite/private.sh
View file @
988d1594
...
...
@@ -32,5 +32,5 @@ if [[ "${KUBERNETES_PROVIDER}" != "gce" ]] && [[ "${KUBERNETES_PROVIDER}" != "gk
fi
# Run the basic.sh test, but using this image.
export
POD_IMG_SRV
=
"gcr.io/_b_k8s_test/serve_hostname:1.
0
"
export
POD_IMG_SRV
=
"gcr.io/_b_k8s_test/serve_hostname:1.
1
"
source
"
${
KUBE_ROOT
}
/hack/e2e-suite/basic.sh"
test/e2e/basic.go
View file @
988d1594
...
...
@@ -187,5 +187,5 @@ func TestBasicImage(c *client.Client, test string, image string) bool {
// TestBasic performs the TestBasicImage check with the
// image kubernetes/serve_hostname
func
TestBasic
(
c
*
client
.
Client
)
bool
{
return
TestBasicImage
(
c
,
"basic"
,
"kubernetes/serve_hostname:1.
0
"
)
return
TestBasicImage
(
c
,
"basic"
,
"kubernetes/serve_hostname:1.
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