summaryrefslogtreecommitdiffstats
path: root/k8s/Makefile
diff options
context:
space:
mode:
authorJan Malkiewicz <jan.malkiewicz@nokia.com>2020-08-19 15:49:10 +0200
committerJan Malkiewicz <jan.malkiewicz@nokia.com>2020-08-28 09:00:24 +0200
commit92f74ae2a3506cea96635e922c0217dc1ef96bb9 (patch)
tree054b49c3216c5075d8e3ffb40b7c502157b67f64 /k8s/Makefile
parent43f0c2c84a1d1c0e9dd49e41c748f56b5820760b (diff)
Add init container support for truststore merger.
Issue-ID: DCAEGEN2-2253 Signed-off-by: Jan Malkiewicz <jan.malkiewicz@nokia.com> Change-Id: I98f27834b36cad333728d41ec079b86a090e77f3
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