Skip to content

Instantly share code, notes, and snippets.

@odytrice
Last active January 31, 2019 12:35
Show Gist options
  • Save odytrice/641d57e9a724f54b7fe82c3a50c11910 to your computer and use it in GitHub Desktop.
Save odytrice/641d57e9a724f54b7fe82c3a50c11910 to your computer and use it in GitHub Desktop.

Revisions

  1. odytrice revised this gist Jan 31, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion minikube.ps1
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ if($isRunning){
    else{
    "- Starting Minikube"
    ""
    minikube start
    minikube start --vm-driver hyperv --hyperv-virtual-switch="Default Switch"
    }
    ""
    "- Configuring Docker"
  2. odytrice revised this gist Jan 30, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions minikube.ps1
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    # This starts minikube and configures docker to point to minikube cluster

    "
    ================================
    Welcome to Minikube Docker Shell
    ================================
    ====================================
    Welcome to Minikube Docker Shell
    ====================================
    "

    "- Checking Minikube Status"
  3. odytrice revised this gist Jan 30, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions minikube.ps1
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # This starts minikube and configures docker to point to minikube cluster

    "
    ================================
    Welcome to Minikube Docker Shell
  4. odytrice created this gist Jan 30, 2019.
    25 changes: 25 additions & 0 deletions minikube.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    "
    ================================
    Welcome to Minikube Docker Shell
    ================================
    "

    "- Checking Minikube Status"
    $isRunning = ((minikube status) -join ' ' ).Contains("Running")

    ""
    if($isRunning){
    "- Minikube is already Running"
    }
    else{
    "- Starting Minikube"
    ""
    minikube start
    }
    ""
    "- Configuring Docker"
    ""

    minikube docker-env | Invoke-Expression

    cd D:\Projects\