Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve build-dev-env.sh script #2443

Merged
merged 1 commit into from
Apr 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions hack/build-dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.

NAMESPACE=ingress-nginx
: "${NAMESPACE:=ingress-nginx}"
echo "NAMESPACE is set to ${NAMESPACE}"

minikube start
test $(minikube status | grep Running | wc -l) -eq 2 && $(minikube status | grep -q 'Correctly Configured') || minikube start
eval $(minikube docker-env)

echo "[dev-env] installing dependencies"
go get -u github.com/golang/dep
dep version || go get -u github.com/golang/dep
dep ensure

echo "[dev-env] building container"
ARCH=amd64 TAG=dev REGISTRY=$USER/ingress-controller make build container

echo "[dev-env] installing kubectl"
brew install kubectl
kubectl version || brew install kubectl

echo "[dev-env] deploying NGINX Ingress controller in namespace $NAMESPACE"
cat ./deploy/namespace.yaml | kubectl apply --namespace=$NAMESPACE -f -
Expand Down