MattTriano / analytics_data_where_house

An analytics engineering sandbox focusing on real estates prices in Cook County, IL
https://docs.analytics-data-where-house.dev/
GNU Affero General Public License v3.0
9 stars 0 forks source link

Update startup script and recipes to also work on a fresh Ubuntu/Debian instance #190

Closed MattTriano closed 12 months ago

MattTriano commented 12 months ago

While setting up the system on a new server, I discovered that my make_credentials makefile recipe required commands that were not available. As it was developed on a system that already had conda installed, there was already a python distro accessible via the command python (rather than python3), and that python distro already had it came with pip and the ability to make venvs. It appears Ubuntu/Debian don't come with venvpython functionality, so either a new user would have to sudo apt install python3.1X-venv or install conda (if they didn't have sudo privileges). This feels like a rather irritating requirement, so maybe I'll want to return to having a separate python container to run startup processes.

I'll also want to update the makefile to check for command python3 if python doesn't work.