[GeoNode-users] Customize MapStore within GeoNode-Project - Best Practice

Ariel Nunez ingenieroariel at gmail.com
Fri Aug 9 08:33:26 PDT 2019


Steffen,

I don't know about best practices but can share what I am doing on a custom
geonode-project.

What I do is set up my Dockerfile so that site-packages is a git repo. Then
I directly hack on any of the dependencies and create .patch files and add
it to a patches folder. This works very well when you peg it to a
particular GeoNode revision and have your requirements.txt frozen.

It's one big hack but really handy for development. Once you have settled
on what you want you can just fork mapstore and point to your git repo
instead of the official one.

-a

# Install GeoNode 2.10x branch as of July 18
RUN pip install --no-deps
https://github.com/GeoNode/geonode/archive/fc57782f28ad05f018264808257dd677360b64f7.zip

# Set up the machine to be able to patch deps in site-packages
WORKDIR /usr/local/lib/python2.7/site-packages
RUN git init \
&& git add * \
&& git config --global user.email "<>" \
&& git config --global user.name "sc" \
&& git commit -m "Initial state"

# Copy patches for GeoNode and other dependencies.
COPY patches /usr/src/sc/patches

# Patch GeoNode and other deps if needed from the patches folder
RUN cd /usr/local/lib/python2.7/site-packages; \
for i in /usr/src/sc/patches/*.patch; do patch -p1 < $i; done


On Fri, Aug 9, 2019 at 8:10 AM Berger, Steffen <s.berger at atenekom.eu> wrote:

> Hi!
>
> I'm currently setting up the GeoNode-Project with GN 2.10 and MapStore and
> was wondering what the best practice for customizing MapStore is.
>
> I would like to change some styling as well as add/remove plugins.
>
> I appreciate any tips and hints.
>
> thanks!
>
> Steffen
>
> --
>
>
>
>
>
>
>
> Steffen Berger
> Geo-Informatiker
>
> Tel.: +49 30 22183-3534 | Fax: +49 30 22183-1199
>
>
>
> *s.berger at atenekom.eu <s.berger at atenekom.eu> *atene KOM GmbH
> Agentur für Kommunikation, Organisation und Management
> Invalidenstraße 91 | 10115 Berlin
>
> www.atenekom.eu | Datenschutzerklärung
> <https://atenekom.eu/impressum/datenschutz/>
> Apps
> <https://atenekom.eu/kompetenzen/foerdermittelberatung/foerdermittel-app/>
>  | facebook <https://www.facebook.com/atenekom> | XING
> <https://www.xing.com/companies/atenekomgmbh%25257Cagenturf%2525C3%25259Crkommunikationorganisationundmanagement?user_view=true>
>  | Twitter <https://twitter.com/atenekom>
>
>    Geschäftsführer: Tim Brauckmüller | AG Berlin Charlottenburg | HRB
> 111699 | USt-ID: DE259091767
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190809/882ab02e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: No.2.png
Type: image/png
Size: 3738 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20190809/882ab02e/attachment-0001.png>


More information about the geonode-users mailing list