summaryrefslogtreecommitdiffstats
path: root/k8s/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'k8s/Makefile')
-rw-r--r--k8s/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/k8s/Makefile b/k8s/Makefile
new file mode 100644
index 0000000..0add666
--- /dev/null
+++ b/k8s/Makefile
@@ -0,0 +1,15 @@
+build-wagon:
+ @echo "### Copy generated k8s plugin"
+ cp ../k8splugin-*.zip .
+
+ @echo "### Create docker image (CentOS)"
+ docker build -t k8splugin -f centos.wagon-builder.dockerfile .
+
+ @echo "### Run docker container and generate wagon file"
+ docker run -t --name k8s_container k8splugin:latest
+
+ @echo "### Copy wagon file from docker image to current directory"
+ docker cp k8s_container:/opt/app-root/src/output .
+
+ @echo "### Remove docker container"
+ docker rm k8s_container