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

Osfm repo #56

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion deployLXCdevContainers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ echo Done

echo ------------------------------------
echo "Add opv_master line in /etc/host"
lineOpvMaster=`cat /etc/hosts | grep opv_master -n | awk '{print $1}' FS=":"`
lineOpvMaster=`cat /etc/hosts | sed "s/#.*//g" | grep opv_master -n | awk '{print $1}' FS=":"`

for i in $lineOpvMaster
do
Expand Down
9 changes: 4 additions & 5 deletions roles/base/tasks/opensfm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,12 @@
shell: |
source /home/opv/venvs/opv/bin/activate
pip3 install opencv-python

cd /home/opv/
git clone https://github.com/OpenPathView/OpenSfM.git
git clone --recursive https://github.com/mapillary/OpenSfM.git
cd OpenSfM
pip3 install -r requirements.txt
python3 setup.py build
pip3 install -r requirements.txt && \
python3 setup.py build && \
python3 setup.py install
exit 0
exit $?
args:
executable: /bin/bash
17 changes: 15 additions & 2 deletions roles/base/tasks/opv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
### Installation de OPV ###
###########################

- name: Update pip, wheel and setuptools
- name: Update wheel and setuptools
pip:
name: "{{ item }}"
extra_args: "--upgrade"
Expand All @@ -34,12 +34,25 @@
state: latest
editable: false
with_items:
- pip
- wheel
- setuptools
become: yes
become_user: opv

- name: Update pip
pip:
name: "{{ item }}"
extra_args: "--upgrade"
virtualenv: /home/opv/venvs/opv
virtualenv_command: pyvenv
state: present
editable: false
version: 18.1
with_items:
- pip
become: yes
become_user: opv

- name: Install OPV modules
pip:
name: "git+{{ item }}"
Expand Down