|
| 1 | +Developer Installation |
| 2 | +====================== |
| 3 | + |
| 4 | +1. Create an account at our gitlab -> Go to: https://github.com/ |
| 5 | + |
| 6 | +2. Upload your public key into you account settings. |
| 7 | + |
| 8 | +3. Install requirements: |
| 9 | + |
| 10 | + sudo apt-get install wget git python python-virtualenv python-dev python3-dev python3-pip |
| 11 | + |
| 12 | +4. Configure your git credentials: |
| 13 | + |
| 14 | + git config --global user.name "Your Name" |
| 15 | + git config --global user.email "you@example.com" |
| 16 | + |
| 17 | +5. Download git-repo: |
| 18 | + |
| 19 | + wget https://storage.googleapis.com/git-repo-downloads/repo |
| 20 | + chmod a+x ./repo |
| 21 | + |
| 22 | +5. Get manifest files: |
| 23 | + |
| 24 | + python2 ./repo init -u ssh://git@github.com/wishful-project/manifests.git |
| 25 | + python2 ./repo init -m dev.xml |
| 26 | + |
| 27 | +6. Get all repositories: |
| 28 | + |
| 29 | + # to get all repositories |
| 30 | + python2 ./repo sync |
| 31 | + # to create master branch on all |
| 32 | + python2 ./repo forall -c 'git checkout dev' |
| 33 | + # to check status of all repositories |
| 34 | + python2 ./repo status |
| 35 | + |
| 36 | + |
| 37 | +Installation |
| 38 | +============ |
| 39 | + |
| 40 | +1. Create virtual environment: |
| 41 | + |
| 42 | + virtualenv -p /usr/bin/python3 ./dev |
| 43 | + |
| 44 | +2. Activate virtual environment: |
| 45 | + |
| 46 | + source ./dev/bin/activate |
| 47 | + |
| 48 | +3. Install all dependencies (if all needed): |
| 49 | + |
| 50 | + pip3 install -U -r ./.repo/manifests/requirements_dev.txt |
| 51 | + |
| 52 | +4. Deactivate virtual environment (if you need to exit): |
| 53 | + |
| 54 | + deactivate |
| 55 | + |
| 56 | +Running examples |
| 57 | +================ |
| 58 | + |
| 59 | +1. Example controller: |
| 60 | + |
| 61 | + #to enable debug mode run with parameter -v |
| 62 | + cd ./examples/simple_controller |
| 63 | + wishful-agent --config ./config_master.yaml |
| 64 | + |
| 65 | +2. Example agent |
| 66 | + |
| 67 | + #to enable debug mode run with parameter -v |
| 68 | + cd ./examples/simple_controller |
| 69 | + wishful-agent --config ./config_slave.yaml |
0 commit comments