Skip to content

Commit

Permalink
Updates for Tethys 4
Browse files Browse the repository at this point in the history
  • Loading branch information
swainn committed Feb 6, 2023
1 parent 5958dd9 commit e473182
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 34 deletions.
41 changes: 21 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM tethysplatform/tethys-core:master
FROM tethysplatform/tethys-core:latest

###############
# ENVIRONMENT #
Expand All @@ -8,9 +8,13 @@ ENV DAM_INVENTORY_MAX_DAMS="50" \
EARTH_ENGINE_SERVICE_ACCOUNT_EMAIL="" \
THREDDS_TUTORIAL_TDS_USERNAME="admin" \
THREDDS_TUTORIAL_TDS_PASSWORD="CHANGEME!" \
THREDDS_TUTORIAL_TDS_PROTOCOL="http" \
THREDDS_TUTORIAL_TDS_HOST="localhost" \
THREDDS_TUTORIAL_TDS_PORT="8080"
THREDDS_TUTORIAL_TDS_CATALOG="/thredds/catalog/catalog.xml" \
THREDDS_TUTORIAL_TDS_PRIVATE_PROTOCOL="http" \
THREDDS_TUTORIAL_TDS_PRIVATE_HOST="localhost" \
THREDDS_TUTORIAL_TDS_PRIVATE_PORT="8080" \
THREDDS_TUTORIAL_TDS_PUBLIC_PROTOCOL="http" \
THREDDS_TUTORIAL_TDS_PUBLIC_HOST="localhost" \
THREDDS_TUTORIAL_TDS_PUBLIC_PORT="8080"

#############
# ADD FILES #
Expand All @@ -29,26 +33,23 @@ COPY images/ /tmp/custom_theme/images/
###########
# INSTALL #
###########
# Activate tethys conda environment during build
ARG MAMBA_DOCKERFILE_ACTIVATE=1
# Bokeh App
RUN /bin/bash -c "cd ${TETHYS_HOME}/apps/tethysapp-bokeh_tutorial && \
. ${CONDA_HOME}/bin/activate tethys && \
tethys install --no-db-sync"
RUN cd ${TETHYS_HOME}/apps/tethysapp-bokeh_tutorial && \
tethys install --no-db-sync
# Dam Inventory
RUN /bin/bash -c "cd ${TETHYS_HOME}/apps/tethysapp-dam_inventory && \
. ${CONDA_HOME}/bin/activate tethys && \
tethys install --no-db-sync"
RUN cd ${TETHYS_HOME}/apps/tethysapp-dam_inventory && \
tethys install --no-db-sync
# Earth Engine
RUN /bin/bash -c "cd ${TETHYS_HOME}/apps/tethysapp-earth_engine && \
. ${CONDA_HOME}/bin/activate tethys && \
tethys install --no-db-sync"
RUN cd ${TETHYS_HOME}/apps/tethysapp-earth_engine && \
tethys install --no-db-sync
# PostGIS App
RUN /bin/bash -c "cd ${TETHYS_HOME}/apps/tethysapp-postgis_app && \
. ${CONDA_HOME}/bin/activate tethys && \
tethys install --no-db-sync"
RUN cd ${TETHYS_HOME}/apps/tethysapp-postgis_app && \
tethys install --no-db-sync
# THREDDS Tutorial
RUN /bin/bash -c "cd ${TETHYS_HOME}/apps/tethysapp-thredds_tutorial && \
. ${CONDA_HOME}/bin/activate tethys && \
tethys install --no-db-sync"
RUN cd ${TETHYS_HOME}/apps/tethysapp-thredds_tutorial && \
tethys install --no-db-sync

#########
# PORTS #
Expand All @@ -59,4 +60,4 @@ EXPOSE 80
# RUN #
#######
WORKDIR ${TETHYS_HOME}
CMD bash run.sh
CMD bash run.sh
12 changes: 4 additions & 8 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
Copyright 2021 Brigham Young University
Copyright 2023 Tethys Platform

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ This repository demonstrates how to make a Docker image containing a custom Teth
* [THREDDS Tutorial](https://github.com/tethysplatform/tethysapp-thredds_tutorial)
* [Earth Engine](https://github.com/tethysplatform/tethysapp-earth_engine.git)
* [PostGIS App](https://github.com/tethysplatform/tethysapp-postgis_app.git)
* [Bokeh Tutorial](https://github.com/tethysplatform/tethysapp-bokeh_tutorial)
* [Bokeh Tutorial](https://github.com/tethysplatform/tethysapp-bokeh_tutorial)
2 changes: 1 addition & 1 deletion tethysapp-earth_engine
Submodule tethysapp-earth_engine updated 31 files
+1 −1 LICENSE
+1 −1 README.md
+5 −1 install.yml
+9 −9 setup.py
+1 −1 tethysapp/earth_engine/__init__.py
+6 −48 tethysapp/earth_engine/app.py
+3 −3 tethysapp/earth_engine/controllers/home.py
+6 −4 tethysapp/earth_engine/controllers/rest.py
+30 −98 tethysapp/earth_engine/controllers/viewer.py
+3 −3 tethysapp/earth_engine/gee/cloud_mask.py
+2 −3 tethysapp/earth_engine/gee/methods.py
+0 −3 tethysapp/earth_engine/handoff.py
+71 −2 tethysapp/earth_engine/helpers.py
+0 −20 tethysapp/earth_engine/public/css/disclaimer_modal.css
+5 −1 tethysapp/earth_engine/public/css/home.css
+1 −1 tethysapp/earth_engine/public/css/loader.css
+1 −1 tethysapp/earth_engine/public/css/main.css
+1 −1 tethysapp/earth_engine/public/css/map.css
+0 −16 tethysapp/earth_engine/public/css/no_nav.css
+10 −1 tethysapp/earth_engine/public/css/plot.css
+ tethysapp/earth_engine/public/images/icon.gif
+30 −29 tethysapp/earth_engine/public/js/gee_datasets.js
+1 −1 tethysapp/earth_engine/public/js/main.js
+40 −35 tethysapp/earth_engine/templates/earth_engine/about.html
+17 −60 tethysapp/earth_engine/templates/earth_engine/base.html
+58 −0 tethysapp/earth_engine/templates/earth_engine/disclaimer.html
+9 −0 tethysapp/earth_engine/templates/earth_engine/header_buttons.html
+25 −21 tethysapp/earth_engine/templates/earth_engine/home.html
+1 −1 tethysapp/earth_engine/templates/earth_engine/plot.html
+17 −17 tethysapp/earth_engine/templates/earth_engine/viewer.html
+13 −31 tethysapp/earth_engine/tests/tests.py

0 comments on commit e473182

Please sign in to comment.