<div dir="ltr"><div>Steffen,</div><div><br></div><div>I don't know about best practices but can share what I am doing on a custom geonode-project.</div><div><br></div><div>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.<br></div><div><br></div><div>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.</div><div><br></div><div>-a<br></div><div><br></div><div><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC34" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span style="font-family:monospace"><span class="gmail-pl-c"><span class="gmail-pl-c">#</span> Install GeoNode 2.10x branch as of July 18</span></span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC35" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span style="font-family:monospace"><span class="gmail-pl-k">RUN</span> pip install --no-deps <a href="https://github.com/GeoNode/geonode/archive/fc57782f28ad05f018264808257dd677360b64f7.zip">https://github.com/GeoNode/geonode/archive/fc57782f28ad05f018264808257dd677360b64f7.zip</a></span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC36" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">
<span style="font-family:monospace"><br></span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC37" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span style="font-family:monospace"><span class="gmail-pl-c"><span class="gmail-pl-c">#</span> Set up the machine to be able to patch deps in site-packages</span></span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC38" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span style="font-family:monospace"><span class="gmail-pl-k">WORKDIR</span> /usr/local/lib/python2.7/site-packages</span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC39" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span style="font-family:monospace"><span class="gmail-pl-k">RUN</span> git init \</span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC40" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span style="font-family:monospace"> && git add * \</span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC41" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span style="font-family:monospace"> && git config --global user.email <span class="gmail-pl-s">"<>"</span> \</span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC42" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span style="font-family:monospace"> && git config --global <a href="http://user.name">user.name</a> <span class="gmail-pl-s">"sc"</span> \</span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC43" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span style="font-family:monospace"> && git commit -m <span class="gmail-pl-s">"Initial state"</span></span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC44" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">
<span style="font-family:monospace"><br></span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC45" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span style="font-family:monospace"><span class="gmail-pl-c"><span class="gmail-pl-c">#</span> Copy patches for GeoNode and other dependencies.</span></span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC46" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span style="font-family:monospace"><span class="gmail-pl-k">COPY</span> patches /usr/src/sc/patches</span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC47" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line">
<span style="font-family:monospace"><br></span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC48" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span style="font-family:monospace"><span class="gmail-pl-c"><span class="gmail-pl-c">#</span> Patch GeoNode and other deps if needed from the patches folder</span></span></td>
      </tr>
      <tr>
        </tr></tbody></table><table class="gmail-highlight gmail-tab-size gmail-js-file-line-container"><tbody><tr><td id="gmail-LC49" class="gmail-blob-code gmail-blob-code-inner gmail-js-file-line"><span style="font-family:monospace"><span class="gmail-pl-k">RUN</span> cd /usr/local/lib/python2.7/site-packages; \</span></td>
      </tr>
      <tr>
        </tr></tbody></table><span style="font-family:monospace">    for i in /usr/src/sc/patches/*.patch; do patch -p1 < $i; done</span></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 9, 2019 at 8:10 AM Berger, Steffen <<a href="mailto:s.berger@atenekom.eu">s.berger@atenekom.eu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div style="text-align:left;direction:ltr">
<div>Hi!</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>I would like to change some styling as well as add/remove plugins.</div>
<div><br>
</div>
<div>I appreciate any tips and hints.</div>
<div><br>
</div>
<div>thanks!</div>
<div><br>
</div>
<div>Steffen</div>
<div><br>
</div>
<div><span>
<pre>-- <br></pre>
<p class="MsoNormal" style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:16px;font-variant-ligatures:normal">
<br>
</p>
<p class="MsoNormal" style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:16px;font-variant-ligatures:normal">
<u></u> <u></u></p>
<table class="gmail-m_-6003561223349932728MsoNormalTable" style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:16px;width:474pt;border-style:solid none none;border-top:1pt solid rgb(64,128,128)" width="0" cellpadding="0" border="1">
<tbody>
<tr style="height:18.75pt">
<td style="width:155.25pt;border:medium none;padding:0.75pt;height:18.75pt" width="201" valign="top">
<p class="MsoNormal"><span style="font-size:8pt;line-height:11.4133px"><br>
  <img src="cid:16c76fe8eb5e7c57c201"></span><u></u><u></u></p>
</td>
<td style="width:339.75pt;border:medium none;padding:0.75pt;height:18.75pt" width="431" valign="top">
<p class="MsoNormal"><span style="font-size:9pt;line-height:12.84px;color:rgb(130,130,130)">Steffen Berger<br>
Geo-Informatiker<br>
<br>
Tel.: +49 30 22183-3534 | Fax: +49 30 22183-1199<br>
 <br>
<u><a href="mailto:s.berger@atenekom.eu" target="_blank">s.berger@atenekom.eu</a><br>
<br>
</u>atene KOM GmbH<br>
Agentur für Kommunikation, Organisation und Management<br>
Invalidenstraße 91 | 10115 Berlin</span><u></u><u></u></p>
</td>
</tr>
<tr style="height:18.75pt">
<td style="border:medium none;padding:0.75pt;height:18.75pt" valign="top"></td>
<td style="border:medium none;padding:0.75pt;height:18.75pt" valign="top">
<p class="MsoNormal"><a href="http://www.atenekom.eu/" target="_blank"><span style="font-size:9pt;line-height:12.84px;color:rgb(130,130,130)">www.atenekom.eu</span></a><span style="font-size:9pt;line-height:12.84px;color:rgb(130,130,130)"> | </span><a href="https://atenekom.eu/impressum/datenschutz/" target="_blank"><span style="font-size:9pt;line-height:12.84px;color:rgb(130,130,130)">Datenschutzerklärung</span></a><span style="font-size:9pt;line-height:12.84px"><br>
</span><a href="https://atenekom.eu/kompetenzen/foerdermittelberatung/foerdermittel-app/" target="_blank"><span style="font-size:9pt;line-height:12.84px;color:rgb(130,130,130)">Apps</span></a><span style="font-size:9pt;line-height:12.84px;color:rgb(130,130,130)"> | </span><a href="https://www.facebook.com/atenekom" target="_blank"><span style="font-size:9pt;line-height:12.84px;color:rgb(130,130,130)">facebook</span></a><span style="font-size:9pt;line-height:12.84px;color:rgb(130,130,130)"> | </span><a href="https://www.xing.com/companies/atenekomgmbh%25257Cagenturf%2525C3%25259Crkommunikationorganisationundmanagement?user_view=true" target="_blank"><span style="font-size:9pt;line-height:12.84px;color:rgb(130,130,130)">XING</span></a><span style="font-size:9pt;line-height:12.84px;color:rgb(130,130,130)"> | </span><a href="https://twitter.com/atenekom" target="_blank"><span style="font-size:9pt;line-height:12.84px;color:rgb(130,130,130)">Twitter</span></a><u></u><u></u></p>
</td>
</tr>
<tr style="height:18.75pt">
<td colspan="2" style="border-color:rgb(64,128,128) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:0.75pt;height:18.75pt" valign="top">
<p class="MsoNormal"><span style="font-size:8pt;line-height:11.4133px;color:rgb(130,130,130)">   Geschäftsführer: Tim Brauckmüller | AG Berlin Charlottenburg | HRB 111699 | USt-ID: DE259091767</span><u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
</span></div>
</div>

_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
</blockquote></div>