We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06ce074 + d8f9ed9 commit 8469451Copy full SHA for 8469451
examples/createPod.sh
@@ -1,11 +1,26 @@
1
-#creates a pod and runs Example.java(list pods for all namespaces) on starting of pod
2
-export REPO_ROOT=$(pwd)/../
+#!/bin/bash
3
4
-cd ${REPO_ROOT}/kubernetes
+# creates a pod and runs
+# Example.java(list pods for all namespaces) on starting of pod
5
+
6
+# Exit on any error.
7
+set -e
8
9
+if ! which minikube > /dev/null; then
10
+ echo "This script requires minikube installed."
11
+ exit 100
12
+fi
13
14
+dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
15
16
+export REPO_ROOT=${dir}/..
17
18
+cd ${REPO_ROOT}
19
mvn install
20
21
cd ${REPO_ROOT}/examples
22
mvn package
23
24
eval $(minikube docker-env)
25
docker build -t test/examples:1.0 .
26
kubectl apply -f test.yaml
0 commit comments