forked from GeoNodeUserGroup-DE/geonode-blueprint-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create setup for datapackage developement (#12)
Create development setup based on https://github.com/GeoNodeUserGroup-DE/geonode-blueprint-docker/ and GeoNode `v4.3.0`.
- Loading branch information
Showing
21 changed files
with
135 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ARG BASE_IMAGE_VERSION | ||
FROM 52north/geonode-postgis:${BASE_IMAGE_VERSION} | ||
FROM geonode/postgis:${BASE_IMAGE_VERSION} | ||
|
||
COPY ./prepare-testdb.sh /docker-entrypoint-initdb.d/prepare-testdb.sh | ||
RUN chmod +x /docker-entrypoint-initdb.d/prepare-testdb.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[submodule "geonode/externalapplications"] | ||
path = geonode/apps/externalapplications | ||
url = https://github.com/GeoNodeUserGroup-DE/contrib_externalapplications.git | ||
[submodule "docker/geonode/geonode-mapstore-client"] | ||
path = docker/geonode/geonode-mapstore-client | ||
url = https://github.com/GeoNodeUserGroup-DE/geonode-mapstore-client/ | ||
branch = datapackage_tabular-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
ARG BASE_IMAGE_VERSION | ||
FROM 52north/geonode:${BASE_IMAGE_VERSION} | ||
FROM geonode/geonode:${BASE_IMAGE_VERSION} | ||
|
||
# we override geonode from base image here | ||
# FIXME a submodule fails to build (error -> cannot replace directory .git to file) | ||
RUN git remote add usergroup https://github.com/GeoNodeUserGroup-DE/geonode.git \ | ||
&& git fetch usergroup \ | ||
&& git stash save \ | ||
&& git switch datapackage_tabular-data \ | ||
&& git stash pop | ||
|
||
COPY ./requirements.txt /usr/src/more_requirements.txt | ||
RUN yes w | pip install --src /usr/src -r /usr/src/more_requirements.txt | ||
|
||
#RUN rm .env* | ||
COPY ./geonode-mapstore-client /usr/src/django_geonode_mapstore_client_dev | ||
RUN yes w | pip install -e /usr/src/django_geonode_mapstore_client_dev |
Submodule geonode-mapstore-client
added at
716adf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-e git+https://github.com/GeoNodeUserGroup-DE/importer-datapackage.git@7_support-geonode-430#egg=importer_datapackage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
ARG BASE_IMAGE_VERSION | ||
FROM 52north/geonode-geoserver_data:${BASE_IMAGE_VERSION} | ||
FROM geonode/geoserver_data:${BASE_IMAGE_VERSION} | ||
|
||
# configure logging | ||
RUN sed 's|<stdOutLogging>false</stdOutLogging>|<stdOutLogging>true</stdOutLogging>|' -i "/geoserver_data/data/logging.xml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
ARG BASE_IMAGE_VERSION | ||
FROM 52north/geonode-postgis:${BASE_IMAGE_VERSION} | ||
FROM geonode/postgis:${BASE_IMAGE_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +0,0 @@ | ||
import os | ||
from django.apps import AppConfig | ||
|
||
|
||
def run_setup_hooks(*args, **kwargs): | ||
from django.conf import settings | ||
from django.conf.urls import url | ||
from django.views.generic import TemplateView | ||
from geonode.urls import urlpatterns | ||
|
||
LOCAL_ROOT = os.path.abspath(os.path.dirname(__file__)) | ||
template_dir = os.path.join(LOCAL_ROOT, "templates") | ||
settings.TEMPLATES[0]["DIRS"].insert(0, template_dir) | ||
|
||
urlpatterns += [ | ||
url(r'^legal_notice/$', | ||
TemplateView.as_view(template_name='legal-notice.html'), | ||
name='legal-notice'), | ||
url(r'^accessibility/$', | ||
TemplateView.as_view(template_name='accessibility.html'), | ||
name='accessibility'), | ||
] | ||
|
||
|
||
class CustomizationsAppConfig(AppConfig): | ||
name = 'customizations' | ||
|
||
def ready(self): | ||
super().ready() | ||
run_setup_hooks() | ||
|
||
default_app_config = 'customizations.CustomizationsAppConfig' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import os | ||
from django.apps import AppConfig | ||
|
||
|
||
def run_setup_hooks(*args, **kwargs): | ||
from django.conf import settings | ||
from django.urls import re_path | ||
from django.views.generic import TemplateView | ||
from geonode.urls import urlpatterns | ||
|
||
LOCAL_ROOT = os.path.abspath(os.path.dirname(__file__)) | ||
template_dir = os.path.join(LOCAL_ROOT, "templates") | ||
settings.TEMPLATES[0]["DIRS"].insert(0, template_dir) | ||
|
||
urlpatterns += [ | ||
re_path(r'^legal_notice/$', | ||
TemplateView.as_view(template_name='legal-notice.html'), | ||
name='legal-notice'), | ||
re_path(r'^accessibility/$', | ||
TemplateView.as_view(template_name='accessibility.html'), | ||
name='accessibility'), | ||
] | ||
|
||
|
||
class CustomizationsAppConfig(AppConfig): | ||
name = 'customizations' | ||
|
||
def ready(self): | ||
super().ready() | ||
run_setup_hooks() | ||
|
||
default_app_config = 'customizations.CustomizationsAppConfig' |
Oops, something went wrong.