Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/main/dataservice/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if [ -d ${UPDATED_PACKAGES_DIR:=/updated_packages} ]; then
for srv in $(pip -qq freeze | grep dmod | awk -F= '{print $1}' | awk -F- '{print $2}'); do
if [ $(ls ${UPDATED_PACKAGES_DIR} | grep dmod.${srv}- | wc -l) -eq 1 ]; then
pip uninstall -y --no-input $(pip -qq freeze | grep dmod.${srv} | awk -F= '{print $1}')
pip install $(ls ${UPDATED_PACKAGES_DIR}/*.whl | grep dmod.${srv}-)
pip install --no-deps $(ls ${UPDATED_PACKAGES_DIR}/*.whl | grep dmod.${srv}-)
fi
done
#pip install ${UPDATED_PACKAGES_DIR}/*.whl
Expand Down
7 changes: 6 additions & 1 deletion docker/main/docker-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ services:
- DATA_SERVICE_ENDPOINT_HOST=${DOCKER_REQUESTS_DATASERVICE_ENDPOINT_HOST:-data-service}
- DATA_SERVICE_ENDPOINT_PORT=${DOCKER_DATASERVICE_CONTAINER_PORT:-3015}
- DATA_SERVICE_CLIENT_SSL_DIR=${DOCKER_REQUESTS_CONTAINER_DATASERVICE_CLIENT_SSL_DIR:-/ssl/dataservice}
- EVALUATION_SERVICE_ENDPOINT_HOST=${DOCKER_REQUESTS_EVALUATIONSERVICE_ENDPOINT_HOST:-evaluation-service}
- EVALUATION_SERVICE_ENDPOINT_PORT=${DOCKER_EVALUATIONSERVICE_CONTAINER_PORT:-3015}
- EVALUATION_SERVICE_CLIENT_SSL_DIR=${DOCKER_REQUESTS_CONTAINER_EVALUATIONSERVICE_CLIENT_SSL_DIR:-/ssl/evaluationservice}
- PARTITIONER_SERVICE_ENDPOINT_HOST=${DOCKER_REQUESTS_PARTITIONERSERVICE_ENDPOINT_HOST:-partitioner-service}
- PARTITIONER_SERVICE_ENDPOINT_PORT=${DOCKER_PARTITIONER_SERVICE_CONTAINER_PORT:-3014}
- PARTITIONER_SERVICE_CLIENT_SSL_DIR=${DOCKER_REQUESTS_CONTAINER_PARTITIONERSERVICE_CLIENT_SSL_DIR:-/ssl/partitionerservice}
Expand Down Expand Up @@ -128,9 +131,11 @@ services:
- LISTEN_PORT=${DOCKER_SUBSET_CONTAINER_PORT:-5000}
- SERVICE_PACKAGE_NAME=${PYTHON_PACKAGE_NAME_SUBSET_SERVICE:?}
- FILES_DIRECTORY=/hydrofabric_data
- PYCHARM_REMOTE_DEBUG_ACTIVE=${PYCHARM_REMOTE_DEBUG_SUBSET_SERVICE_ACTIVE:-false}
- PYCHARM_REMOTE_DEBUG_SERVER_HOST=${PYCHARM_REMOTE_DEBUG_SERVER_HOST:-host.docker.internal}
- PYCHARM_REMOTE_DEBUG_SERVER_PORT=${PYCHARM_REMOTE_DEBUG_SERVER_PORT_SUBSET_SERVICE:-55874}
# This typically needs to be commented out; intended for development use (see related 'volume' config below)
#- UPDATED_PACKAGES_DIR=${UPDATED_PACKAGES_CONTAINER_DIR:?Updated packages directory not set, make sure this should be active}
entrypoint: ["python3", "-m", "${PYTHON_PACKAGE_NAME_SUBSET_SERVICE:?}"]
command: ["--files-directory", "/hydrofabric_data",
"--port", "${DOCKER_SUBSET_CONTAINER_PORT:-5000}",
"--crosswalk-file", "${HYRDOFABRIC_CROSSWALK_FILE_BASENAME:-crosswalk.json}"]
Expand Down
3 changes: 3 additions & 0 deletions docker/main/requestservice/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ python -m ${SERVICE_PACKAGE_NAME:?} \
--data-service-host ${DATA_SERVICE_ENDPOINT_HOST:?} \
--data-service-port ${DATA_SERVICE_ENDPOINT_PORT:?} \
--data-service-ssl-dir ${DATA_SERVICE_CLIENT_SSL_DIR:?} \
--evaluation-service-host ${EVALUATION_SERVICE_ENDPOINT_HOST:?} \
--evaluation-service-port ${EVALUATION_SERVICE_ENDPOINT_PORT:?} \
--evaluation-service-ssl-dir ${EVALUATION_SERVICE_CLIENT_SSL_DIR:?} \
--partitioner-service-host ${PARTITIONER_SERVICE_ENDPOINT_HOST:?} \
--partitioner-service-port ${PARTITIONER_SERVICE_ENDPOINT_PORT:?} \
--partitioner-service-ssl-dir ${PARTITIONER_SERVICE_CLIENT_SSL_DIR:?}
4 changes: 2 additions & 2 deletions docker/main/s3fs-volume-helper/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM alpine:3.15

RUN apk update && apk upgrade && apk add docker bash && mkdir -p /dmod/scripts
RUN apk update && apk upgrade && apk add docker bash && mkdir -p /dmod

COPY ./scripts/* /dmod/scripts/.
COPY ./scripts /dmod/scripts

ENV OUT_OF_GIT_REPO='true'

Expand Down
19 changes: 18 additions & 1 deletion docker/main/subsetservice/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@ if [ -n "${VENV_DIR:-}" ]; then
pip install --update -r /code/requirements.txt
fi

# Install for debugging when appropriate
if [ "$(echo "${PYCHARM_REMOTE_DEBUG_ACTIVE:-false}" | tr '[:upper:]' '[:lower:]' | tr -d '[:space:]')" = "true" ]; then
_DEBUG_ARG="--pycharm-remote-debug"
fi

# Handle some things in any cases when there is debugging
if [ -n "${_DEBUG_ARG:-}" ]; then
# Append these as well if appropriate, though defaults are coded (and they are somewhat agnostic to the debug setup)
if [ -n "${PYCHARM_REMOTE_DEBUG_SERVER_HOST:-}" ]; then
_DEBUG_ARG="${_DEBUG_ARG:-} --remote-debug-host ${PYCHARM_REMOTE_DEBUG_SERVER_HOST}"
fi

if [ -n "${PYCHARM_REMOTE_DEBUG_SERVER_PORT:-}" ]; then
_DEBUG_ARG="${_DEBUG_ARG:-} --remote-debug-port ${PYCHARM_REMOTE_DEBUG_SERVER_PORT}"
fi
fi

# If we find this directory, and if there are wheels in it, then install those
if [ -d ${UPDATED_PACKAGES_DIR:=/updated_packages} ]; then
if [ $(ls ${UPDATED_PACKAGES_DIR}/*.whl | wc -l) -gt 0 ]; then
Expand Down Expand Up @@ -44,4 +61,4 @@ fi

#set +e
#export PYTHONASYNCIODEBUG=1
python3 -m ${SERVICE_PACKAGE_NAME:?} ${args}
python3 -m ${SERVICE_PACKAGE_NAME:?} ${_DEBUG_ARG:-} ${args}
2 changes: 1 addition & 1 deletion docker/py-sources/py-deps.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG REQUIRE="gcc g++ musl-dev gdal-dev libffi-dev openssl-dev rust cargo git proj proj-dev proj-util openblas openblas-dev lapack lapack-dev"
ARG REQUIRE="gcc g++ musl-dev gdal-dev libffi-dev openssl-dev rust cargo git proj proj-dev proj-util openblas openblas-dev lapack lapack-dev geos-dev"
################################################################################################################
################################################################################################################
##### Create foundational level build stage with initial structure
Expand Down
5 changes: 5 additions & 0 deletions example.env
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ TROUTE_BRANCH=ngen
## Python Packages Settings ##
########################################################################

## The "name" of the built client Python distribution package, for purposes of installing (e.g., via pip)
PYTHON_PACKAGE_DIST_NAME_CLIENT=dmod-client
## The name of the actual Python communication package (i.e., for importing or specifying as a module on the command line)
PYTHON_PACKAGE_NAME_CLIENT=dmod.client

## The "name" of the built communication Python distribution package, for purposes of installing (e.g., via pip)
PYTHON_PACKAGE_DIST_NAME_COMMS=dmod-communication
## The name of the actual Python communication package (i.e., for importing or specifying as a module on the command line)
Expand Down
2 changes: 1 addition & 1 deletion scripts/init_object_store_dataset_volumes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ while [ ${#} -gt 0 ]; do
DO_REMOVE_ALL='true'
;;
--sentinel|-S)
SENTINEL="/tmp/${2:?}"
SENTINEL="${2:?}"
shift
;;
--service-mode)
Expand Down