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
a630801e
Unverified
Commit
a630801e
authored
Oct 16, 2018
by
k8s-ci-robot
Committed by
GitHub
Oct 16, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #69832 from ixdy/no-qemu-in-cross-build
Move hyperkube symlink creation to base image and re-enable building of conformance image
parents
bba6e258
c761f779
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
51 deletions
+22
-51
Dockerfile
build/debian-hyperkube-base/Dockerfile
+16
-0
Makefile
build/debian-hyperkube-base/Makefile
+1
-1
release.sh
build/lib/release.sh
+1
-1
WORKSPACE
build/root/WORKSPACE
+2
-2
Makefile
cluster/images/conformance/Makefile
+1
-5
BUILD
cluster/images/hyperkube/BUILD
+0
-17
Dockerfile
cluster/images/hyperkube/Dockerfile
+0
-20
Makefile
cluster/images/hyperkube/Makefile
+1
-5
No files found.
build/debian-hyperkube-base/Dockerfile
View file @
a630801e
...
@@ -14,6 +14,22 @@
...
@@ -14,6 +14,22 @@
FROM
BASEIMAGE
FROM
BASEIMAGE
# TODO(#69896): deprecate the shortened aliases in /
RUN
ln
-s
/hyperkube /apiserver
\
&&
ln
-s
/hyperkube /cloud-controller-manager
\
&&
ln
-s
/hyperkube /controller-manager
\
&&
ln
-s
/hyperkube /kubectl
\
&&
ln
-s
/hyperkube /kubelet
\
&&
ln
-s
/hyperkube /proxy
\
&&
ln
-s
/hyperkube /scheduler
\
&&
ln
-s
/hyperkube /usr/local/bin/cloud-controller-manager
\
&&
ln
-s
/hyperkube /usr/local/bin/kube-apiserver
\
&&
ln
-s
/hyperkube /usr/local/bin/kube-controller-manager
\
&&
ln
-s
/hyperkube /usr/local/bin/kube-proxy
\
&&
ln
-s
/hyperkube /usr/local/bin/kube-scheduler
\
&&
ln
-s
/hyperkube /usr/local/bin/kubectl
\
&&
ln
-s
/hyperkube /usr/local/bin/kubelet
RUN
echo
CACHEBUST>/dev/null
&&
clean-install
\
RUN
echo
CACHEBUST>/dev/null
&&
clean-install
\
bash
bash
...
...
build/debian-hyperkube-base/Makefile
View file @
a630801e
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
REGISTRY
?=
staging-k8s.gcr.io
REGISTRY
?=
staging-k8s.gcr.io
IMAGE
?=
$(REGISTRY)
/debian-hyperkube-base
IMAGE
?=
$(REGISTRY)
/debian-hyperkube-base
TAG
=
0.1
0.2
TAG
=
0.1
1.0
ARCH
?=
amd64
ARCH
?=
amd64
ALL_ARCH
=
amd64 arm arm64 ppc64le s390x
ALL_ARCH
=
amd64 arm arm64 ppc64le s390x
CACHEBUST
?=
1
CACHEBUST
?=
1
...
...
build/lib/release.sh
View file @
a630801e
...
@@ -29,7 +29,7 @@ readonly RELEASE_TARS="${LOCAL_OUTPUT_ROOT}/release-tars"
...
@@ -29,7 +29,7 @@ readonly RELEASE_TARS="${LOCAL_OUTPUT_ROOT}/release-tars"
readonly
RELEASE_IMAGES
=
"
${
LOCAL_OUTPUT_ROOT
}
/release-images"
readonly
RELEASE_IMAGES
=
"
${
LOCAL_OUTPUT_ROOT
}
/release-images"
KUBE_BUILD_HYPERKUBE
=
${
KUBE_BUILD_HYPERKUBE
:-
y
}
KUBE_BUILD_HYPERKUBE
=
${
KUBE_BUILD_HYPERKUBE
:-
y
}
KUBE_BUILD_CONFORMANCE
=
${
KUBE_BUILD_CONFORMANCE
:-
n
}
KUBE_BUILD_CONFORMANCE
=
${
KUBE_BUILD_CONFORMANCE
:-
y
}
# Validate a ci version
# Validate a ci version
#
#
...
...
build/root/WORKSPACE
View file @
a630801e
...
@@ -75,10 +75,10 @@ docker_pull(
...
@@ -75,10 +75,10 @@ docker_pull(
docker_pull(
docker_pull(
name = "debian-hyperkube-base-amd64",
name = "debian-hyperkube-base-amd64",
digest = "sha256:
c50522965140c9f206900bf47d547d601c04943e1e59801ba5f70235773cfbb6
",
digest = "sha256:
b180af61c8c40a3e011630be135c091e7af6b6c784bedce839d31b9fad63c435
",
registry = "k8s.gcr.io",
registry = "k8s.gcr.io",
repository = "debian-hyperkube-base-amd64",
repository = "debian-hyperkube-base-amd64",
tag = "0.1
0.2
", # ignored, but kept here for documentation
tag = "0.1
1.0
", # ignored, but kept here for documentation
)
)
docker_pull(
docker_pull(
...
...
cluster/images/conformance/Makefile
View file @
a630801e
...
@@ -25,7 +25,7 @@ KUBECTL_BIN?=$(shell pwd)/../../../$(OUT_DIR)/dockerized/bin/linux/$(ARCH)/kubec
...
@@ -25,7 +25,7 @@ KUBECTL_BIN?=$(shell pwd)/../../../$(OUT_DIR)/dockerized/bin/linux/$(ARCH)/kubec
E2E_TEST_BIN
?=
$(
shell
pwd
)
/../../../
$(OUT_DIR)
/dockerized/bin/linux/
$(ARCH)
/e2e.test
E2E_TEST_BIN
?=
$(
shell
pwd
)
/../../../
$(OUT_DIR)
/dockerized/bin/linux/
$(ARCH)
/e2e.test
CLUSTER_DIR
?=
$(
shell
pwd
)
/../../../cluster/
CLUSTER_DIR
?=
$(
shell
pwd
)
/../../../cluster/
BASEIMAGE
=
k8s.gcr.io/debian-hyperkube-base-
$(ARCH)
:0.1
0.2
BASEIMAGE
=
k8s.gcr.io/debian-hyperkube-base-
$(ARCH)
:0.1
1.0
TEMP_DIR
:=
$(
shell
mktemp
-d
-t
conformanceXXXXXX
)
TEMP_DIR
:=
$(
shell
mktemp
-d
-t
conformanceXXXXXX
)
all
:
build
all
:
build
...
@@ -48,10 +48,6 @@ endif
...
@@ -48,10 +48,6 @@ endif
cd
${TEMP_DIR}
&&
sed
-i.back
"s|BASEIMAGE|${BASEIMAGE}|g"
Dockerfile
cd
${TEMP_DIR}
&&
sed
-i.back
"s|BASEIMAGE|${BASEIMAGE}|g"
Dockerfile
ifneq
($(ARCH),amd64)
# Register /usr/bin/qemu-ARCH-static as the handler for non-x86 binaries in the kernel
docker run --rm --privileged multiarch/qemu-user-static
:
register --reset
endif
docker build --pull -t ${REGISTRY}/conformance-${ARCH}
:
${VERSION} ${TEMP_DIR}
docker build --pull -t ${REGISTRY}/conformance-${ARCH}
:
${VERSION} ${TEMP_DIR}
rm
-rf
"
${
TEMP_DIR
}
"
rm
-rf
"
${
TEMP_DIR
}
"
...
...
cluster/images/hyperkube/BUILD
View file @
a630801e
...
@@ -7,23 +7,6 @@ container_image(
...
@@ -7,23 +7,6 @@ container_image(
"//cmd/hyperkube",
"//cmd/hyperkube",
],
],
stamp = True,
stamp = True,
symlinks = {
"/%s" % path: "/hyperkube"
for path in [
"/apiserver",
"/controller-manager",
"/kubectl",
"/kubelet",
"/proxy",
"/scheduler",
"/usr/local/bin/kube-apiserver",
"/usr/local/bin/kube-controller-manager",
"/usr/local/bin/kubectl",
"/usr/local/bin/kubelet",
"/usr/local/bin/kube-proxy",
"/usr/local/bin/kube-scheduler",
]
},
)
)
container_bundle(
container_bundle(
...
...
cluster/images/hyperkube/Dockerfile
View file @
a630801e
...
@@ -14,25 +14,5 @@
...
@@ -14,25 +14,5 @@
FROM
BASEIMAGE
FROM
BASEIMAGE
# Create symlinks for each hyperkube server
# Also create symlinks to /usr/local/bin/ where the server image binaries live, so the hyperkube image may be
# used instead of k8s.gcr.io/kube-* without any modifications.
# TODO: replace manual symlink creation with --make-symlink command once
# cross-building with qemu supports go binaries. See #28702
# RUN /hyperkube --make-symlinks
RUN
ln
-s
/hyperkube /apiserver
\
&&
ln
-s
/hyperkube /controller-manager
\
&&
ln
-s
/hyperkube /kubectl
\
&&
ln
-s
/hyperkube /kubelet
\
&&
ln
-s
/hyperkube /proxy
\
&&
ln
-s
/hyperkube /scheduler
\
&&
ln
-s
/hyperkube /aggregator
\
&&
ln
-s
/hyperkube /usr/local/bin/kube-apiserver
\
&&
ln
-s
/hyperkube /usr/local/bin/kube-controller-manager
\
&&
ln
-s
/hyperkube /usr/local/bin/kubectl
\
&&
ln
-s
/hyperkube /usr/local/bin/kubelet
\
&&
ln
-s
/hyperkube /usr/local/bin/kube-proxy
\
&&
ln
-s
/hyperkube /usr/local/bin/kube-scheduler
# Copy the hyperkube binary
# Copy the hyperkube binary
COPY
hyperkube /hyperkube
COPY
hyperkube /hyperkube
cluster/images/hyperkube/Makefile
View file @
a630801e
...
@@ -22,7 +22,7 @@ ARCH?=amd64
...
@@ -22,7 +22,7 @@ ARCH?=amd64
OUT_DIR
?=
_output
OUT_DIR
?=
_output
HYPERKUBE_BIN
?=
$(
shell
pwd
)
/../../../
$(OUT_DIR)
/dockerized/bin/linux/
$(ARCH)
/hyperkube
HYPERKUBE_BIN
?=
$(
shell
pwd
)
/../../../
$(OUT_DIR)
/dockerized/bin/linux/
$(ARCH)
/hyperkube
BASEIMAGE
=
k8s.gcr.io/debian-hyperkube-base-
$(ARCH)
:0.1
0.2
BASEIMAGE
=
k8s.gcr.io/debian-hyperkube-base-
$(ARCH)
:0.1
1.0
TEMP_DIR
:=
$(
shell
mktemp
-d
-t
hyperkubeXXXXXX
)
TEMP_DIR
:=
$(
shell
mktemp
-d
-t
hyperkubeXXXXXX
)
all
:
build
all
:
build
...
@@ -39,10 +39,6 @@ endif
...
@@ -39,10 +39,6 @@ endif
cd
${TEMP_DIR}
&&
sed
-i.back
"s|BASEIMAGE|${BASEIMAGE}|g"
Dockerfile
cd
${TEMP_DIR}
&&
sed
-i.back
"s|BASEIMAGE|${BASEIMAGE}|g"
Dockerfile
ifneq
($(ARCH),amd64)
# Register /usr/bin/qemu-ARCH-static as the handler for non-x86 binaries in the kernel
docker run --rm --privileged multiarch/qemu-user-static
:
register --reset
endif
docker build --pull -t ${REGISTRY}/hyperkube-${ARCH}
:
${VERSION} ${TEMP_DIR}
docker build --pull -t ${REGISTRY}/hyperkube-${ARCH}
:
${VERSION} ${TEMP_DIR}
rm
-rf
"
${
TEMP_DIR
}
"
rm
-rf
"
${
TEMP_DIR
}
"
...
...
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