-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
67 lines (60 loc) · 1.92 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM tethysplatform/tethys-core:3.4.1
###############
# ENVIRONMENT #
###############
ENV DAM_INVENTORY_MAX_DAMS="50" \
EARTH_ENGINE_PRIVATE_KEY_FILE="" \
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"
#############
# ADD FILES #
#############
COPY tethysapp-bokeh_tutorial ${TETHYS_HOME}/apps/tethysapp-bokeh_tutorial
COPY tethysapp-dam_inventory ${TETHYS_HOME}/apps/tethysapp-dam_inventory
COPY tethysapp-earth_engine ${TETHYS_HOME}/apps/tethysapp-earth_engine
COPY tethysapp-postgis_app ${TETHYS_HOME}/apps/tethysapp-postgis_app
COPY tethysapp-thredds_tutorial ${TETHYS_HOME}/apps/tethysapp-thredds_tutorial
###################
# ADD THEME FILES #
###################
COPY images/ /tmp/custom_theme/images/
###########
# INSTALL #
###########
# Bokeh App
RUN /bin/bash -c "cd ${TETHYS_HOME}/apps/tethysapp-bokeh_tutorial && \
. ${CONDA_HOME}/bin/activate tethys && \
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"
# Earth Engine
RUN /bin/bash -c "cd ${TETHYS_HOME}/apps/tethysapp-earth_engine && \
. ${CONDA_HOME}/bin/activate tethys && \
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"
# THREDDS Tutorial
RUN /bin/bash -c "cd ${TETHYS_HOME}/apps/tethysapp-thredds_tutorial && \
. ${CONDA_HOME}/bin/activate tethys && \
tethys install --no-db-sync"
##################
# ADD SALT FILES #
##################
COPY salt/ /srv/salt/
#########
# PORTS #
#########
EXPOSE 80
#######
# RUN #
#######
WORKDIR ${TETHYS_HOME}
CMD bash run.sh