diff --git a/Dockerfile b/Dockerfile index 29fe0a70..f24edfa5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,6 +70,12 @@ RUN cd msc-pygeoapi && \ pip3 install -U elasticsearch && \ # ensure cors enabled in config sed -i 's^# cors: true^cors: true^' $BASEDIR/msc-pygeoapi/deploy/default/msc-pygeoapi-config.yml && \ + # GCWeb theme files + wget -O ./themes-gcweb.zip https://github.com/wet-boew/GCWeb/releases/download/v14.6.0/themes-dist-14.6.0-gcweb.1.zip && \ + unzip -o ./themes-gcweb.zip "*/GCWeb/*" -d theme/static && \ + unzip -o ./themes-gcweb.zip "*/wet-boew/*" -d theme/static && \ + mv ./theme/static/themes-dist-14.6.0-gcweb ./theme/static/themes-gcweb && \ + rm -f ./themes-gcweb.zip && \ # install msc-pygeoapi python3 setup.py install && \ # show version diff --git a/debian/rules b/debian/rules index a6c46951..4b61cd9d 100755 --- a/debian/rules +++ b/debian/rules @@ -24,9 +24,10 @@ MSC_PYGEOAPI_VERSION=$(shell dpkg-parsechangelog -SVersion) sed -i "s/MSC_PYGEOAPI_VERSION/$(MSC_PYGEOAPI_VERSION)/" theme/templates/_base.html - wget -O themes-gcweb.zip https://github.com/wet-boew/GCWeb/releases/download/v14.6.0/themes-dist-14.6.0-gcweb.1.zip + wget -O ./themes-gcweb.zip https://github.com/wet-boew/GCWeb/releases/download/v14.6.0/themes-dist-14.6.0-gcweb.1.zip && unzip -o ./themes-gcweb.zip "*/GCWeb/*" -d theme/static && unzip -o ./themes-gcweb.zip "*/wet-boew/*" -d theme/static + && mv ./theme/static/themes-dist-14.6.0-gcweb ./theme/static/themes-gcweb && rm -f ./themes-gcweb.zip override_dh_auto_test: diff --git a/theme/templates/_base.html b/theme/templates/_base.html index 536e624d..095d40fb 100644 --- a/theme/templates/_base.html +++ b/theme/templates/_base.html @@ -11,7 +11,7 @@ - +