Closed dabreegster closed 3 years ago
This is definitely a good idea, given that the dependencies can (a) be such a pain to install and (b) have version conflicts with other tools any given user might need, which aren't resolvable in a convenient way like Python virtual environments. I think it makes sense to get it basically working before merging this.
For how to run this, we should be able to pass the command directly instead of having to invoke bash. Something like:
docker run [IMAGE] bash -c "python3 main.py elevation_montlake"
Adding -v
or --mount
to mount the data and file directories would also help. I can definitely figure that out, but suspect you might already know how to do it in which case it'll be quicker left to you.
I fixed the Error_GetLastErrorNum
issue by installing a missing dep. Now everything runs! I'll keep playing around with Docker to figure out the best way to plumb input/output files around, so that ultimately the readme can just have a single command to run.
PTAL -- I was able to run on the montlake input data and get some output successfully!
I'm new to Docker, so there may be a simpler way to do this.
Thanks for the review! I'll integrate this in the A/B Street importing pipeline tomorrow and likely find other small issues, but this is a start.
This makes it through all of the dependency building, but there's an error at runtime:
The stack trace and https://github.com/Toblerity/rtree/issues/135 suggest the issue is with the rtree dependency. I'm still working on figuring it out.