1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# docker cleanup https://docs.docker.com/ee/dtr/user/manage-images/delete-images/
# Docker Setup
git clone git@github.com:GeoscienceAustralia/PyRate.git
cd PyRate

cd C:/Users/sheec/Desktop/Projects/PyRate
docker load < data/pyrate-image.tar
docker build -t pyrate-image:1.0 .
docker build --no-cache -t pyrate-image:1.0 .
docker run -it --rm -v %cd%:/PyRate pyrate-image:1.0 /bin/bash

# build PyRate package
cd /PyRate
pip3 install -r requirements-dev.txt
pip3 install -r requirements-test.txt
pip3 install pyproj==2.2.1
cd /PyRate && python3 setup.py install

# Run workflow
pyrate conv2tif -f input_parameters.conf
pyrate prepifg -f input_parameters.conf


pyrate process -f input_parameters.conf -c 3 -r 4
pyrate merge -f input_parameters.conf -c 3 -r 4

# Build Sphinx docs
cd /PyRate/docs && make html

# Run tests
cd /PyRate
chmod 444 tests/test_data/small_test/tif/geo_070709-070813_unw.tif
cd /PyRate && python3 -m pytest tests/

# Random stuff
pip install tox
tox

# 64 failed, 236 passed, 1944 skipped