Azure / kubeflow-labs

👩‍🔬 Train and Serve TensorFlow Models at Scale with Kubernetes and Kubeflow on Azure
Creative Commons Attribution 4.0 International
290 stars 99 forks source link

Shell script to create env variables in case of cloud shell timeout #55

Open screamyao opened 5 years ago

screamyao commented 5 years ago

Create a shell script to generate environment variables in case of cloud shell timeout

  1. Create env.sh file under ~

    nano ~/env.sh
  2. Copy & paste below and save

    #!bin/bash
    export PATH="$PATH:~/ks_0.13.1_linux_amd64/"
    echo "PATH=$PATH"
    export KUBEFLOW_SRC=$(realpath kubeflow)
    echo "KUBEFLOW_SRC=$KUBEFLOW_SRC"
    export KUBEFLOW_TAG=v0.4.1
    echo "KUBEFLOW_TAG=$KUBEFLOW_TAG"
    export KFAPP=mykubeflowapp
    echo "KFAPP=$KFAPP"
  3. Change permission to executable

    chmod +x ~/env.sh
  4. Run below to set the variables in case of cloud shell timeout

    source ~/env.sh
msftclas commented 5 years ago

CLA assistant check
All CLA requirements met.