newdle icon indicating copy to clipboard operation
newdle copied to clipboard

NPM version...

Open adamboutcher opened this issue 4 years ago • 13 comments

The documentation doesn't state what version of NPM is required, presumably it's newer than the defaul in CentOS7 due to the lack of npm ci in that packaged version.

adamboutcher avatar Feb 24 '21 12:02 adamboutcher

Using the stable LTS provided by nodejs would be a good idea. :)

ThiefMaster avatar Feb 24 '21 12:02 ThiefMaster

There's just a general lack of system dependencies in general too...

adamboutcher avatar Feb 24 '21 12:02 adamboutcher

I don't think we really have many system dependencies except maybe libpq-dev in order to install psycopg2 for database access.

ThiefMaster avatar Feb 24 '21 12:02 ThiefMaster

I don't think we really have many system dependencies except maybe libpq-dev in order to install psycopg2 for database access.

uwsgi and nginx

pferreir avatar Feb 24 '21 12:02 pferreir

Ah right, even though I see that as something the person installing a python webapp is responsible for, since in the end anything that speaks WSGI should work...

ThiefMaster avatar Feb 24 '21 12:02 ThiefMaster

There's literally no list of deps bar Python3.8 on the README. You cant get the web app running without

npm PostgresSQL uwsgi httpd/nginx

Maybe it's worth having a list as we don't all use docker.

adamboutcher avatar Feb 24 '21 12:02 adamboutcher

Ah right, even though I see that as something the person installing a python webapp is responsible for, since in the end anything that speaks WSGI should work...

Sure, but maybe we should help them by mentioning what they have to install and provide example config files? Other web apps normally provide such information in their standard documentation.

pferreir avatar Feb 24 '21 12:02 pferreir

yum install -y centos-release-scl epel-release
yum groupinstall -y "development tools"
yum install -y rh-git218 rh-python38-python rh-python38-python-devel rh-python38-python-wheel rh-python38-python-psycopg2 rh-nodejs12-npm rh-postgresql96 rh-postgresql96-postgresql-devel

source /opt/rh/rh-git218/enable
source /opt/rh/rh-nodejs12/enable
source /opt/rh/rh-python38/enable
source /opt/rh/rh-postgresql96/enable

git clone
cd newdle
make

This is what I had to do to get a successful build.

adamboutcher avatar Feb 24 '21 14:02 adamboutcher

I don't think we should go as far as providing instructions for CentOS 7, but at least generic Debian and Fedora should be covered.

pferreir avatar Feb 24 '21 14:02 pferreir

Why not? If someone in the community is willing to provide details? More people run CentOS as a server than Fedora.

adamboutcher avatar Feb 24 '21 14:02 adamboutcher

It's something we would need to maintain eventually... and CentOS7 isn't even particularly new.

ThiefMaster avatar Feb 24 '21 14:02 ThiefMaster

CentOS is supported until 2024 and most science sites use CentOS, Fedora only has a lifetime of ~1 year. I get that the current CentOS support model for CentOS 8 isn't great but for a production deployment people want stability.

We run Indico on CentOS7, we plan to deploy this on a CentOS7 system (or CentOS 8 equivalent) ideally not in a container so we don't have to fight with docker every reboot for just a single service.

adamboutcher avatar Feb 24 '21 14:02 adamboutcher

I'd say it's not a problem if someone wants to take over the maintenance of CentOS-specific instructions. But I'd favor having a high-level dependency list which can be easily updated over that.

pferreir avatar Feb 25 '21 09:02 pferreir