-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2786: update install cold with site specific config
- Loading branch information
Katherine Tomkins
committed
Sep 13, 2022
1 parent
27bb2cd
commit dd2fe0c
Showing
5 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
14 changes: 13 additions & 1 deletion
14
...altool/utils/recipe_run_workflow/recipe_run_workflow/app/install_cold/bin/install_cold.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
#!/bin/bash | ||
# Send the output from 'set -x' to 'stdout' rather than 'stderr'. | ||
BASH_XTRACEFD=1 | ||
set -eux | ||
|
||
# Remove source directory, if it exists. | ||
if [[ -d ${SOURCE_DIR} ]]; then | ||
rm -rf "${SOURCE_DIR}" | ||
fi | ||
printf 'This is running.' | ||
|
||
# Checkout ESMValTool. | ||
#git clone -b "${BRANCH}" "${ESMVALTOOL_URL}" "${SOURCE_DIR}" | ||
|
||
# Install ESMValTool. | ||
#cd "${SOURCE_DIR}" | ||
#pip install . --prefix="${RRW_INSTALL_ROOT}" | ||
|
||
SOURCE_PATH="${CYLC_WORKFLOW_RUN_DIR}/site/${SITE}-env" | ||
TARGET_DIR="${CYLC_WORKFLOW_RUN_DIR}/bin" | ||
ENV_FILE="rrw-env" | ||
|
||
# Create the 'bin' directory in the installed workflow. | ||
mkdir "${TARGET_DIR}" | ||
|
||
# Copy the environment file to the 'bin' directory. | ||
cp "${SOURCE_PATH}" "${TARGET_DIR}/${ENV_FILE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ default = install_cold.sh | |
ESMVALTOOL_URL = [email protected]:ESMValGroup/ESMValTool.git | ||
BRANCH = main | ||
SOURCE_DIR = ${CYLC_SUITE_RUN_DIR}/src | ||
SITE=${SITE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
esmvaltool/utils/recipe_run_workflow/recipe_run_workflow/rose-suite.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[template variables] | ||
SITE="metoffice" | ||
MODULE_NAME="" |
Empty file modified
0
esmvaltool/utils/recipe_run_workflow/recipe_run_workflow/site/metoffice-env
100644 → 100755
Empty file.