Skip to content
Snippets Groups Projects
Commit e362f5e9 authored by ranchodeluxe's avatar ranchodeluxe
Browse files

stuff

parent 23dc6ff1
Branches we_got_this
No related tags found
1 merge request!5Experiment
......@@ -28,17 +28,3 @@ dps-run:fire-atlas-western-us-nrt:
USERNAME: ashiklom
QUEUE: maap-dps-worker-8gb
dps-run:fire-atlas-western-us-nrt-build-command-test:
extends: .run_dps_job_base
only:
variables:
- $BUILD_CMD_TEST
variables:
MAAP_IMAGE_ENV: ubuntu
IMAGE_TAG: fire-atlas-${CI_COMMIT_SHORT_SHA}
ALGO_NAME: eis-fire-feds-nrt-dps-build-command
BRANCH_NAME: conus-dps-build-command
USERNAME: ashiklom
QUEUE: maap-dps-worker-8gb
FROM docker.io/ashiklom/maap-mamba
COPY . /
CMD ["tail", "-f", "/dev/log"]
......@@ -324,7 +324,7 @@ def WesternUSrunNRT():
ctime = datetime.now()
region = ('WesternUSNRT_gcorradini',[-125.698046875,31.676476158707615,-101.00078125,49.51429477264348])
region = ('WesternUSNRT_DPS',[-125.698046875,31.676476158707615,-101.00078125,49.51429477264348])
lts = FireIO.get_lts_serialization(regnm=region[0])
if lts == None:
......
# DO NOT DELETE
# THIS CONFIG IS AUTO-GENERATED BY ADE UI
algo_name: eis-fire-feds-nrt-dps
# Branch or tag
version: conus-dps
environment: ubuntu
repository_url: https://repo.ops.maap-project.org/eorland_gee/fireatlas_nrt.git
# Container used for running
docker_url: "mas.maap-project.org:5000/root/ade-base-images/vanilla:latest"
# queue chosen when registering
queue: "maap-dps-worker-8gb"
# fill out these fields
# explain what this algorithm does
description: "Map active fire perimeters."
# path to the wrapper script for running the algorithm
# Command starts with repository name
run_command: "fireatlas_nrt/run_dps.sh"
# build_command: my-build-script.sh
# set a storage value in GB or MB or KB, e.g. "100GB", "20MB", "10KB"
disk_space: "10GB"
inputs:
# remove below this line if no inputs
# rename and set algorithm input names accordingly
# - name: path-number
# download: False
# - name: file-to-copy-in
# download: True
# DO NOT DELETE
# THIS CONFIG IS AUTO-GENERATED BY ADE UI
algo_name: eis-fire-feds-nrt-dps-build-command
algo_name: eis-fire-feds-nrt-dps
# Branch or tag
version: conus-dps-build-command
version: conus-dps
environment: ubuntu
repository_url: https://repo.ops.maap-project.org/eorland_gee/fireatlas_nrt.git
# Container used for running
......@@ -17,7 +17,7 @@ description: "Map active fire perimeters."
# path to the wrapper script for running the algorithm
# Command starts with repository name
run_command: "fireatlas_nrt/run_dps.sh"
build_command: "fireatlas_nrt/maap_image_build_command.sh"
# build_command: my-build-script.sh
# set a storage value in GB or MB or KB, e.g. "100GB", "20MB", "10KB"
disk_space: "10GB"
inputs:
......
File moved
#!/bin/bash
set -euxo pipefail
basedir=$( cd "$(dirname "$0")" ; pwd -P )
mamba env create -f ${basedir}/env-feds.yaml
pushd ${HOME}
# required to get all the MAAP(y) things
/opt/conda/envs/feds/bin/pip install --user -e git+https://github.com/MAAP-Project/maap-py.git#egg=maappy
source activate feds
source activate $CONDA_PREFIX/envs/feds
......@@ -5,27 +5,28 @@ set -eo pipefail
basedir=$( cd "$(dirname "$0")"; pwd -P )
echo "Basedir: $basedir"
echo "Initial working directory: $(pwd -P)"
echo "conda: $(which conda)"
# Only create conda environment if it's not currently active. This allows for
# interactive testing of this script.
#if [[ $CONDA_PREFIX != "/projects/env-feds" ]]; then
# # Trying to resolve conda permissiosn issue
# # https://gitter.im/conda/conda?at=5dc427aa2f8a034357513172
# export CONDA_PKGS_DIRS="$basedir/.conda"
# mkdir -p "$CONDA_PKGS_DIRS"
# conda env create -f "$basedir/env-feds.yml" -p "$basedir/env-feds"
# source activate "$basedir/env-feds"
#fi
source activate feds
if [[ $CONDA_PREFIX != "/projects/env-feds" ]]; then
# Trying to resolve conda permissiosn issue
# https://gitter.im/conda/conda?at=5dc427aa2f8a034357513172
export CONDA_PKGS_DIRS="$basedir/.conda"
mkdir -p "$CONDA_PKGS_DIRS"
conda env create -f "$basedir/env-feds.yml" -p "$basedir/env-feds"
source activate "$basedir/env-feds"
fi
echo "Python: $(which python)"
python --version
echo "Starting algorithm in subshell"
(
cd "$basedir"
echo "Running in directory: $(pwd -P)"
#python -u -c "import FireRun; FireRun.CreekSamplerun()"
#python FireRun.py
python FireRun.py
)
echo "Done!"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment