This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit a41ac0bda7ed3fdf6a69da68e0e0048f3af8b643 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Mon Sep 17 15:50:54 2018 +0200 Added the possibility to specify a namespace --- README.md | 3 ++- build/install_minishift.sh | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 528e2ff..d86638a 100644 --- a/README.md +++ b/README.md @@ -178,7 +178,8 @@ make test-integration ### Running If you want to install everything you have in your source code and see it running on Kubernetes, you need to run the following command: -- `make install-minishift`: to build the project and run it on Minishift +- `make install-minishift`: to build the project and run it on Minishift, the default namespace for this is `myproject` +- you can specify a different namespace with `make install-minishift project=myawesomeproject` This command assumes you have an already running Minishift instance. diff --git a/build/install_minishift.sh b/build/install_minishift.sh index 5414771..00c0104 100755 --- a/build/install_minishift.sh +++ b/build/install_minishift.sh @@ -1,11 +1,22 @@ #!/bin/sh -oc login -u system:admin +if [ "$project" = "" ]; then + project="myproject" +fi +echo $project +if [ "$project" != "myproject" ]; then + oc new-project $project + oc project $project +fi +oc login -u system:admin make eval $(minishift docker-env) make images ./kamel install --cluster-setup oc delete pod -l name=camel-k-operator -oc login -u developer +oc login -u developer +if [ "$project" != "myproject" ]; then + oc project $project +fi ./kamel install