Closed afabiani closed 10 months ago
@afabiani these are quite good changes! However, the PR raises a maintenance question:
What do you actually recommend when users have to decide between a GeoNode Fork or the creation of a separate Geonode project via geonode-project template?
The main problem I see is to keep track of all the changes you make on this repository (e.g. those within this PR). Once a project has been created, it gets detached from version control. If a user decides to upgrade their GeoNode project, they would have to follow the commit history and apply all changes manually, right? Wouldn't it be better to just use a GeoNode fork so the changes become visible once you do a merge/pull?
Is there is a discussion (issue/documentation) about Forking vs. GeoNode-Project somewhere? Some good practice guidance would be helpful too.
I'd be happy for any pointer :-)
Those changes won't ba backported. Those will be eventually part of the 4.2.0 train, currently under development.
Ok .. but what about mainaining a project which got generated from the geonode-project repository? When upgrading to 4.2.0 .. I would have to go through the commit history and apply the changes manually on that project. Or do I miss something?
The idea would be to update the documentation of the 4.2.0 release with a specific section for this topic. However we can open a discussion on the mailing list to further investigate the problem and hear from the community if there are some suitable proposals/ideas.
However we can open a discussion on the mailing list to further investigate the problem and hear from the community if there are some suitable proposals/ideas.
You mean geonode-devel@lists.osgeo.org
? I am subscribed, but it seems it makes not much noise in my inbox. However, I will open a discussion thread there.
edit: mail address .. geonode-devel is the right one -- in fact I only found the geonode-devel-requests address in my inbox
However, I will open a discussion thread there.
@afabiani my email awaits approval :man_shrugging:
@ridoo if you agree I would merge the PR
@giohappy if it is ok for you, I'd take a deeper look later this day, before just saying "ok".
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.
This PR introduces improvements and fixes to docker-compose and initialization scripts in general:
Some implementation details:
DOCKERHOST
andDOCKER_HOST_IP
variables removed as useless and misleading. Instead, it exposedNGINX_BASE_URL
which was calculated automatically and badly.The variables
are important, they are used by
NGINX
to create the upstreamproxyPass
and by GeoServer to create the internalOAuth2
endpoints. They represent the name and port of the GeoNode and GeoServer containers. In general it is not necessary to change them, but in an environment likeMicrosoft Azure
these must be set to the address of thesubnet
as the names are not internally resolved.Increased
MAX_DOCUMENT_SIZE=200
because the previous default of2Mb
did not allow rendering even one document.Updated
create-envfile.py
to also enablestaging
mode to testHTTPS
onlocalhost
, which was previously totally ignored.Removed useless stuff and started it from
geonode/geonode-base:latest-ubuntu-22.10
Added a
Quick Start
section withdocker
Fixed healthchecks which are now faster and more efficient and switched Django -> GeoServer startup dependency, because it's the Django entrypoint that sets
OAutg2
parameters in theGEOSERVER_DATA_DIR
before it starts.Updated to
POSTgresql 15
Enabled
proxyPass
instead ofuwsgiPass
because we setheaders
correctly ingeonode.conf
only withproxyPass
Fixed the
.sh
to setOAuth2
which previously worked badly and only partially checking when there was thelocalhost
value. Now they update everything and always.Made
proxy passes
dynamicset $upstream $GEOSERVER_LB_HOST_IP:$GEOSERVER_LB_PORT;
set $upstream $GEONODE_LB_HOST_IP:$GEONODE_LB_PORT;
Updated the GeoServer conf so that the GUI works fine behind any proxy.
A general reformat to the
black
codeVersion bump
from
4.0.0.final
to4.2.0.dev