forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Istio's own kubectl container (istio#8934)
* Build Istio's own kubectl container Hyperkube is really heavyweight at 900mb. Instead build a kubectl container that is about 180mb. I first prototyped a from scratch container here: https://github.com/sdake/scratch-kubectl This contianer is *very* lightweight at about 44mb (12mb compressed). The workflow for creating the continer is a little more difficult though and would benefit from the latest versions of docker which are not yet in the Xenial repositories for all to use. Also there is some concern with regards to maintenance with a from SCRATCH approach. * Address review comments This variant builds the dockerfile, however, the build operation takes roughy 4 seconds on my system if the file has already been built. Bootstrapping this particular container will prove troublesome for most individuals if it were to follow the model of istionightly. A big chunk of time is wasted during the build process transferring docker build context that doesn't need to be transferred. I'm going to take a look at the build a bit and see if there is a way to seperate the built data into more reasonable build contexts. This would significantly improve buildtimes, especially on virtual machines. Sadly kubectl has ballooned to 320MB, however, nearly all of the layers are shared with exception of the final layer that contains the kubectl binary itself. * Add rule for $(GOTOP_BIN) files * Work around problem where testEnvLocalK8S symlinks existing tools
- Loading branch information
1 parent
8cbda56
commit d435763
Showing
14 changed files
with
37 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM istionightly/base_debug | ||
# Image for post install jobs | ||
|
||
# This container should only contain kubectl | ||
ADD kubectl /usr/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters