-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52b65f8
commit d8f9ed9
Showing
1 changed file
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,26 @@ | ||
#creates a pod and runs Example.java(list pods for all namespaces) on starting of pod | ||
export REPO_ROOT=$(pwd)/../ | ||
#!/bin/bash | ||
|
||
cd ${REPO_ROOT}/kubernetes | ||
# creates a pod and runs | ||
# Example.java(list pods for all namespaces) on starting of pod | ||
|
||
# Exit on any error. | ||
set -e | ||
|
||
if ! which minikube > /dev/null; then | ||
echo "This script requires minikube installed." | ||
exit 100 | ||
fi | ||
|
||
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
export REPO_ROOT=${dir}/.. | ||
|
||
cd ${REPO_ROOT} | ||
mvn install | ||
|
||
cd ${REPO_ROOT}/examples | ||
mvn package | ||
|
||
eval $(minikube docker-env) | ||
docker build -t test/examples:1.0 . | ||
kubectl apply -f test.yaml |