blob: 0e2934078495e1a541f338bb194a2f0b4795b530 [file] [log] [blame]
Zsolt Harasztie060a7d2016-09-16 11:08:24 -07001# sourcing this file is needed to make local development and integration testing work
Nathan Knuthedc88da2016-09-17 00:28:05 -07002export VOLTHA_BASE=$PWD
Zsolt Harasztie060a7d2016-09-16 11:08:24 -07003
Zsolt Haraszti41612482016-09-21 12:26:20 -07004# load local python virtualenv if exists, otherwise create it
5VENVDIR="venv-$(uname -s | tr '[:upper:]' '[:lower:]')"
6if [ ! -e "$VENVDIR/.built" ]; then
7 echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
8 echo "Initializing OS-appropriate virtual env."
9 echo "This will take a few minutes."
10 echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
11 make venv
12fi
13. $VENVDIR/bin/activate
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070014
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070015# assign DOCKER_HOST_IP to be the main ip address of this host
16export DOCKER_HOST_IP=$(python voltha/nethelpers.py)
17
Zsolt Haraszti61732d42016-09-16 15:06:30 -070018# to avoid permission issues, create a dir for fluentd logs
19mkdir -p /tmp/fluentd
20