hotosm / tasking-manager

Tasking Manager - The tool to team up for mapping in OpenStreetMap
https://wiki.openstreetmap.org/wiki/Tasking_Manager
BSD 2-Clause "Simplified" License
510 stars 275 forks source link

Cleanup dockerfiles, remove duplicates, upgrade PDM #6554

Closed spwoodcock closed 2 months ago

spwoodcock commented 2 months ago

What type of PR is this? (check all applicable)

Related Issue

Fixes https://github.com/hotosm/tasking-manager/issues/6552

Describe this PR

Review Guide

Notes for the reviewer. How to test this change?

Checklist before requesting a review

[optional] What gif best describes this PR or how it makes you feel?

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

mahesh-naxa commented 2 months ago

@dakotabenjamin i just verified this, can be merged.

dakotabenjamin commented 2 months ago

Errors after merging, which weren't caught because they are in server instantiation:

+ sudo apt-get -q -y install libgeos-3.9.0 libgeos-dev
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libgeos-3.9.0
E: Couldn't find any package by glob 'libgeos-3.9.0'
E: Couldn't find any package by regex 'libgeos-3.9.0'
+ sudo apt-get -q -y install libproj19 libproj-dev
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package libproj19

In addition, a slew of errors compiling sklearn during pip install. edit: and a warning that might be related:

/tmp/pip-build-env-ao16q_16/overlay/lib/python3.8/site-packages/scipy/__init__.py:143: UserWarning: A NumPy version >=1.19.5 and <1.27.0 is required for this version of SciPy (detected version 1.17.3)
      warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"
spwoodcock commented 2 months ago

Any way we can test the Cloudformation (I assume) stuff locally?

It's a bit baffling how the libgeos install would have broken when this PR updates dockerfiles 😯

The second issue around the numpy version can be fixed by pinning the numpy version explicitly (if sklearn requires this)

mahesh-naxa commented 2 months ago

@spwoodcock We can use https://www.localstack.cloud/ to run the EC2 instance with the defined user-data scripts locally, but i am not sure if it supports the AMI we are using. Let me check. Otherwise i will spin up a EC2 in the AWS to validate everything.