Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#508 Upgrade Dockerfile to Node.JS v20+ #509

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16
FROM node:20

ARG PUBLIC_URL_ARG=
ENV PUBLIC_URL=$PUBLIC_URL_ARG
Expand All @@ -7,15 +7,16 @@ ENV PUBLIC_URL=$PUBLIC_URL_ARG
RUN apt-get -y update
RUN apt-get install -y gdal-bin libgdal-dev python3-pip python3-gdal

# Use Python3 for python
RUN rm /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python

# Create app directory
WORKDIR /usr/src/app

# Install app dependencies
COPY python-requirements.txt ./
RUN python -m pip install --upgrade pip && python -m pip install -r ./python-requirements.txt
RUN rm /usr/lib/python*/EXTERNALLY-MANAGED && \
pip3 install -r ./python-requirements.txt

# Use python3 for python
RUN ln -s /usr/bin/python3 /usr/bin/python

COPY package*.json ./
RUN npm install
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ See the [configuration documentation](https://nasa-ammos.github.io/MMGIS/configu

### System Requirements

1. Install the latest version of [Node.js v16.13.2+](https://nodejs.org/en/download/).
1. Install the latest version of [Node.js v20.11.1+](https://nodejs.org/en/download/).

1. Install [PostgreSQL v10.14+](https://www.enterprisedb.com/downloads/postgres-postgresql-downloads). Detailed [install instructions](https://www.postgresqltutorial.com/postgresql-getting-started/) for all platforms.
1. Install [PostGIS 2.5+](https://postgis.net/install/). From the above install, you can use the 'Application Stack Builder' to install PostGIS or the default [PostGIS install instructions](https://postgis.net/install/) for all platforms.
1. Make a new PostgreSQL database and remember the user, password and database name.
Use 'pgsl' or the 'SQL Shell' to log into Postgres. It will prompt you for the username and password made during the install.
Use 'psql' or the 'SQL Shell' to log into Postgres. It will prompt you for the username and password made during the install.

1. GDAL and Python are weaker dependencies (desirable but, without them, not everything will work)

Expand Down
2 changes: 1 addition & 1 deletion docs/pages/Setup/Installation/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ See the [configuration documentation](https://nasa-ammos.github.io/MMGIS/configu

### System Requirements

1. Install the latest version of [Node.js v16.13.2+](https://nodejs.org/en/download/).
1. Install the latest version of [Node.js v20.11.1+](https://nodejs.org/en/download/).

1. Install [PostgreSQL v10.14+](https://www.enterprisedb.com/downloads/postgres-postgresql-downloads). Detailed [install instructions](https://www.postgresqltutorial.com/postgresql-getting-started/) for all platforms.
1. Install [PostGIS 2.5+](https://postgis.net/install/). From the above install, you can use the 'Application Stack Builder' to install PostGIS or the default [PostGIS install instructions](https://postgis.net/install/) for all platforms.
Expand Down
2 changes: 1 addition & 1 deletion python-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
numpy==1.21.6
numpy==1.26.4
spiceypy==5.1.2
pymap3d==3.0.1
Loading