summaryrefslogtreecommitdiffstats
path: root/k8s/centos.wagon-builder.dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'k8s/centos.wagon-builder.dockerfile')
-rw-r--r--k8s/centos.wagon-builder.dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/k8s/centos.wagon-builder.dockerfile b/k8s/centos.wagon-builder.dockerfile
new file mode 100644
index 0000000..401c1a5
--- /dev/null
+++ b/k8s/centos.wagon-builder.dockerfile
@@ -0,0 +1,16 @@
+FROM centos/python-27-centos7:latest as cent
+
+# Sometimes it's necessary to set a proxy (e.g. in case of local development).
+# To do it just uncomment those two env variables and set appriopriate values for them.
+#ENV HTTP_PROXY=
+#ENV HTTPS_PROXY=
+
+RUN bash -c "pip install --upgrade pip"
+RUN bash -c "pip install wagon"
+
+COPY / k8s/
+
+USER root
+RUN bash -c "wagon create -r k8s/requirements.txt k8s/"
+RUN bash -c "mkdir output"
+RUN bash -c "mv k8splugin*.wgn output/"