kube-addons: Use python container if python is not found on the machine.

To build the python image, BUILD_PYTHON_IMAGE should be set during make.
When the addon script is running, it will check if python is installed
on the machine, if not, it will use the python image that built previously.
This commit is contained in:
Yifan Gu
2015-12-09 17:50:16 -08:00
parent 41cb3d6a39
commit 516032f336
6 changed files with 39 additions and 5 deletions

View File

@@ -0,0 +1,3 @@
FROM python:2.7-slim
RUN pip install pyyaml

View File

@@ -0,0 +1,6 @@
# Python image
The python image here is used by OS distros that don't have python installed to
run python scripts to parse the yaml files in the addon updator script.
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/cluster/addons/python-image/README.md?pixel)]()