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
e7eff874
Commit
e7eff874
authored
May 17, 2016
by
Lucas Käldström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Critical patch. Fix hyperkube's layer caching, and remove --make-symlinks at build time
parent
aada051b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
Dockerfile
cluster/images/hyperkube/Dockerfile
+3
-8
Makefile
cluster/images/hyperkube/Makefile
+8
-0
No files found.
cluster/images/hyperkube/Dockerfile
View file @
e7eff874
...
@@ -58,12 +58,7 @@ RUN mkdir -p /opt/cni
...
@@ -58,12 +58,7 @@ RUN mkdir -p /opt/cni
RUN
curl https://storage.googleapis.com/kubernetes-release/network-plugins/cni-c864f0e1ea73719b8f4582402b0847064f9883b0.tar.gz
\
RUN
curl https://storage.googleapis.com/kubernetes-release/network-plugins/cni-c864f0e1ea73719b8f4582402b0847064f9883b0.tar.gz
\
|
tar
xzv
-C
/opt/cni
|
tar
xzv
-C
/opt/cni
# Make scripts executable
RUN
chmod
a+rx
\
/hyperkube
\
/usr/share/google/safe_format_and_mount
\
/setup-files.sh
\
/make-ca-cert.sh
# Create symlinks for each hyperkube server
# Create symlinks for each hyperkube server
RUN
/hyperkube
--make-symlinks
# TODO: this is unreliable for now (e.g. running "/kubelet" panics)
# Also, it doesn't work for other architectures
# RUN /hyperkube --make-symlinks
cluster/images/hyperkube/Makefile
View file @
e7eff874
...
@@ -55,6 +55,14 @@ endif
...
@@ -55,6 +55,14 @@ endif
cd
${TEMP_DIR}
&&
sed
-i.back
"s|BASEIMAGE|${BASEIMAGE}|g"
Dockerfile
cd
${TEMP_DIR}
&&
sed
-i.back
"s|BASEIMAGE|${BASEIMAGE}|g"
Dockerfile
rm
${TEMP_DIR}/*.back
rm
${TEMP_DIR}/*.back
# Make scripts executable before they are copied into the Docker image. If we make them executable later, in another layer
# they'll take up twice the space because the new executable binary differs from the old one, but everything is cached in layers.
cd
${TEMP_DIR}
&&
chmod
a+rx
\
hyperkube
\
safe_format_and_mount
\
setup-files.sh
\
make-ca-cert.sh
ifeq
($(ARCH),amd64)
ifeq
($(ARCH),amd64)
# When building "normally" for amd64, remove the whole line, it has no part in the amd64 image
# When building "normally" for amd64, remove the whole line, it has no part in the amd64 image
cd
${TEMP_DIR}
&&
sed
-i
""
"/CROSS_BUILD_/d"
Dockerfile
cd
${TEMP_DIR}
&&
sed
-i
""
"/CROSS_BUILD_/d"
Dockerfile
...
...
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